nightwatch-html-reporter icon indicating copy to clipboard operation
nightwatch-html-reporter copied to clipboard

Screenshot not coming in other system

Open testkjl opened this issue 6 years ago • 1 comments

I am creating a zip file of the reports folder and sending it over email using nodemailer . But when the report is extracted and opened in other machine, it does not show screenshot. After verifying the path, i found it takes the path of local system. how can i configure screenshot path such that its accessible in other machine too. image

testkjl avatar Oct 18 '19 08:10 testkjl

Hi, there's an option to enable relative paths for screenshots. So, when creating the reporter pass the relativeScreenshots option as true, like this:

var reporter = new HtmlReporter({
    // ... other options here
    relativeScreenshots: true,
});

ricardo-devis-agullo avatar Nov 20 '19 15:11 ricardo-devis-agullo