mlison/protractor-jasmine2-screenshot-reporter

output of console.log is not being passed to the report

Opened this issue · 4 comments

hello,
don't know if that's intentional or not, but the output of console.log is not being captured in the html report, though time spent on it - does gets captured
i've described all here:
https://stackoverflow.com/questions/51414233/how-to-pass-console-log-value-to-protractor-jasmine2-screenshot-reporter

I can add all details here also.

Good question. The output of browser's console doesn't get captured by the reporter itself, but to my understanding you can indeed access it via Protractor directly (browser.manage().logs()).
The next question is how to get it to the report - I can't think of a way from top of my hat, but metadata builder comes to mind, perhaps you can use it to store the output.

@mlison , thank you for your comment. would you happen to have a similar code for the reference?
can Extra configuration summary items (optional) be used? where can I find examples of its use?

Not for this use-case, no, but there's a generic example on how to use metadata builder in the docs:
https://github.com/mlison/protractor-jasmine2-screenshot-reporter#metadata-builder-optional

i also wanted to be able to put console log in the report , leaving a comment here for now.