protractor-jasmine2-screenshot-reporter icon indicating copy to clipboard operation
protractor-jasmine2-screenshot-reporter copied to clipboard

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

Open AlexLevel opened this issue 6 years ago • 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.

AlexLevel avatar Jul 19 '18 22:07 AlexLevel

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 avatar Jul 20 '18 06:07 mlison

@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?

AlexLevel avatar Jul 23 '18 20:07 AlexLevel

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

mlison avatar Jul 24 '18 06:07 mlison

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

himawan-r avatar May 31 '19 06:05 himawan-r