mlison/protractor-jasmine2-screenshot-reporter

dynamic destination folders

Closed this issue · 2 comments

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?

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.

Thanks for the solution.