我们如何在calabash android中生成报告?我查阅了“黄瓜食谱”一书中关于如何生成报告的内容。但这并没有完全帮到我。我想生成登录失败原因的报告:例如: 1)用户输入有效凭据并尝试登录2)但是,由于server_error/ User _not_found或某些异常,登录失败。当登录失败时,我从服务器得到错误xml/ statusCode。
如何在calabash中使用xml/状态代码生成报告?请帮帮我!!
发布于 2013-03-13 20:33:44
使用以下命令执行测试:
calabash-android run <apkfile>.apk --format html --out reports.html发布于 2016-04-23 17:43:03
<%
date = Time.now.strftime('%m_%d-%H:%M:%S')
default_report = "./reports/output_#{date}.html"
default_rerun = "./rerun.txt"
%>
common: NO_STOP='1'
rerun_out: -f rerun -o <%= default_rerun %>
html_report: -f html -o <%= default_report %>
run: -p common -p rerun_out -p html_report这是我的calabash-android配置文件,您可以将其放入calabash android项目下的./.config/cucumber.yml文件中。使用以下命令会同时将测试结果导出到一个rerun.txt文件和一个./reports/output_#{date}.html文件中:
calabash-android run *.apk -p run发布于 2015-09-11 21:10:19
对于HTML报告
> calabash-android run <apkfile>.apk --format HTML --out对于JSON报告
> calabash-android run <apkfile>.apk --format JSON --out这些是黄瓜中的otehr格式,
点击此处阅读更多内容:https://cucumber.io/docs/reference#reports
https://stackoverflow.com/questions/15288219
复制相似问题