![](/img/trans.png)
[英]Uni<Void> how to get failure or success response at REST call
[英]How to restart serenity scenario at failure and get success in the report in case of success result
我正在嘗試添加一個方法,以避免jenkins運行中的誤報。
所以我有許多測試在Jenkins運行,其中一些是隨機失敗的,我想找到一種方法告訴跑步者重新啟動該特定場景,並在成功更新報告/結果的情況下
我找到了一些關於:RestartingScenarioFailure但是並沒有真正按照我的意願工作,我的意思是它給我一個例外,我不想要。
我和JBehave和Junit一起使用寧靜
如果您正在使用Maven,請查看Maven Failsafe插件重新運行失敗測試功能:
http://maven.apache.org/surefire/maven-failsafe-plugin/examples/rerun-failing-tests.html
max.retries = 1 junit.retry.tests = true
這是一個快速的解決方案......不是最好的,但至少是開箱即用,你只需要在serenity.properties里面這兩行
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.