mlison / protractor-jasmine2-screenshot-reporter

Protractor screenshot reporter for Jasmine2
https://www.npmjs.com/package/protractor-jasmine2-screenshot-reporter
MIT License
81 stars 79 forks source link

dynamic destination folders #99

Closed Harish247 closed 7 years ago

Harish247 commented 7 years ago

Can we load the files into different destinations? For Example, I am running tests on some URL: https://abs.com. and I want to save the result in target/abs/ how can we do this?

I am trying to get the browser.baseUrl but we are defining reporter before browser launch. so, it is not possible.

Any Suggestions?

mlison commented 7 years ago

In theory this may be somehow possible if you use custom pathBuilder method.

You will most likely need to implement all the necessary details (directory creation, file naming, etc), but I think it could work.

Harish247 commented 7 years ago

Thanks for the solution.