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

放肆的年华 提交于 2019-12-11 18:39:19

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!