我們如何在calabash android中生成報告?我查閱了關於如何生成報告的「黃瓜食譜」一書。但那完全沒有幫助我。 我想生成爲什麼登錄失敗的報告: 例如: 1)用戶輸入有效憑證並嘗試登錄 2)但是,由於server_error/user_not_found或一些例外,登錄失敗。登錄失敗時,服務器會收到錯誤的xml/statusCode。如何在Calabash中生成報告 - android
如何在calabash中使用該xml /狀態碼生成報告? 請幫忙!!
我們如何在calabash android中生成報告?我查閱了關於如何生成報告的「黃瓜食譜」一書。但那完全沒有幫助我。 我想生成爲什麼登錄失敗的報告: 例如: 1)用戶輸入有效憑證並嘗試登錄 2)但是,由於server_error/user_not_found或一些例外,登錄失敗。登錄失敗時,服務器會收到錯誤的xml/statusCode。如何在Calabash中生成報告 - android
如何在calabash中使用該xml /狀態碼生成報告? 請幫忙!!
使用此命令來執行測試:
calabash-android run <apkfile>.apk --format html --out reports.html
對於HTML報告
> calabash-android run <apkfile>.apk --format HTML --out
對於JSON報告
> calabash-android run <apkfile>.apk --format JSON --out
這些都是黃瓜otehr格式,
<%
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
這裏是我的葫蘆,Android的輪廓配置,你可以把它放在你的calabash android項目下的./.config/cucumber.yml文件中。 使用以下命令將測試結果導出到在同一時間rerun.txt文件和文件./reports/output_#{date}.html:
calabash-android run *.apk -p run
對於HTML報告使用以下:
葫蘆,Android上運行$ {} APKFile -f HTML -o測試result.html
感謝分享,還有不在身邊的這些選項傳遞語法多文檔。如果可以,我會將其標記爲「已回答」。 – lux 2014-07-17 14:11:38
每當我用這些標誌運行calabash-android時,出現「無效選項」錯誤。任何人都知道修復或解決? – 2016-07-12 01:08:03