Search code examples
javascriptandroidjasmineprotractorappium

Protractor - How to generate execution report or display the console.log messages in an output text file


I am using Protractor to test the Mobile hybrid app. I am using windows env. with javascript.

I want to display the console.log messages in a separate text file after execution.

or is there any way to generate the execution logs? I tried resultJsonOutputFile and http://eitanp461.blogspot.in/ or console.push message, but did not get the expected output.


Solution

  • If you just want all protractor outputs, simply redirect the output:

    protractor --option1=x --options2=y conf.js > /path/you/want/to/save/your/file.txt