量角器 - 如何生成执行报告或在输出文本文件中显示 console.log 消息 [英] Protractor - How to generate execution report or display the console.log messages in an output text file
本文介绍了量角器 - 如何生成执行报告或在输出文本文件中显示 console.log 消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 Protractor 来测试移动混合应用.我正在使用 Windows 环境.使用 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屋!
查看全文