How to generate report in Calabash-android

Sabrish picture Sabrish · Mar 8, 2013 · Viewed 7.8k times · Source

How do we generate reports in calabash android ? I looked in to "The cucumber recipe" book on how to generate report. But that didn't help me completely. I want to generate report on why login failed : For eg : 1) User enter valid credential and tries to Login 2) But, Login fails due to server_error/user_not_found or some exceptions . I get error xml/ statusCode from server when login fails.

How to generate report using that xml/status code in calabash ? Please help !!

Answer

Sanjay Joshi picture Sanjay Joshi · Mar 13, 2013

Use this command to execute your test:

calabash-android run <apkfile>.apk --format html --out reports.html