Am using cucumber-extentreports....Struck with scenario.embed(..) method...
Am using scenario.embed(data, "image/png"); to stick screenshot into report.Now few queries sir:
1>Can i specify path where the screenshot above is saved?
2>Can i specify the screenshot file name ?
3>Can i embed this screenshot in html report[So that its directly embedded into report [like static html] & does not point to any path of screenshot externally?
Referred some links:
https://groups.google.com/forum/#!topic/cukes/EwOmLFtAFzs
Refer code for comment:
The snippet I pasted doesn't save the image on disk - it embeds it straight into the page as a base64-encoded png. That allows you to move the html around (email, scp etc) without having to drag along additional image files.===============> [b:23gq6u09]This is the PROBLEM I NEED TO ADDRESS.[/b:23gq6u09]
[quote:2r61ofei]1>Can i specify path where the screenshot above is saved?
2>Can i specify the screenshot file name ?
3>Can i embed this screenshot in html report[So that its directly embedded into report [like static html] & does not point to any path of screenshot externally?[/quote:2r61ofei]
yes on all 3 question. use extent reports. or watch module 20 2016.