量角器-如何生成执行报告或在输出文本文件中显示console.log消息 [英] Protractor - How to generate execution report or display the console.log messages in an output text file
本文介绍了量角器-如何生成执行报告或在输出文本文件中显示console.log消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用量角器来测试移动混合应用程序.我正在使用Windows env.使用javascript.
I am using Protractor to test the Mobile hybrid app. I am using windows env. with javascript.
我想在执行后在单独的文本文件中显示console.log
消息.
I want to display the console.log
messages in a separate text file after execution.
还是有什么方法可以生成执行日志?
我尝试了resultJsonOutputFile
和 http://eitanp461.blogspot.in/或console.push
消息,但是没有获得预期的输出.
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.
推荐答案
如果只需要所有量角器的输出,只需重定向输出:
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
这篇关于量角器-如何生成执行报告或在输出文本文件中显示console.log消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文