问题
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.
回答1:
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
来源:https://stackoverflow.com/questions/27919698/protractor-how-to-generate-execution-report-or-display-the-console-log-message