I'm currently in the process of scraping data from an android app using WDIO and APPIUM. After successfully storing the scraped data in an array, I now aim to automatically output this array data to a .json file, rather than manually copying and pasting it from the console. Despite coming across WDIO's JSON reporter, the lack of clear information on how to customize the test results has left me struggling. I attempted returning the array within my afterTest hooks, but to no avail.
reporters: [
'dot',
['json',{
outputDir: './Results'
}]
],
If anyone could provide some assistance, that would be greatly appreciated!