如何在Calabash-android中生成报告

Sab*_*ish 5 android cucumber calabash

我们如何在calabash android中生成报告?我查看了如何生成报告的"黄瓜食谱"一书.但那并没有完全帮助我.我想生成登录失败原因的报告:例如:1)用户输入有效凭证并尝试登录2)但是,由于server_error/user_not_found或一些例外,登录失败.登录失败时,我从服务器收到错误xml/statusCode.

如何在calabash中使用xml/status代码生成报告?请帮忙 !!

小智 18

使用此命令执行测试:

calabash-android run <apkfile>.apk --format html --out reports.html
Run Code Online (Sandbox Code Playgroud)