Continue after failed assertion

有些话、适合烂在心里 提交于 2019-12-18 19:01:42

问题


Once an assertion fails( typically API response ), the remaining test steps in a test case do not get executed. How do I get SoapUI to continue on and complete the rest of the test steps?
I am also looking for a way to retry that step again with the same set of data. If not possible, skip that and proceed to next set of items. Any idea on this ?


回答1:


1- Double click on the test case (not test step)

look at the provided picture and find the one shown below:




回答2:


To continue tests executing after failed test step you need disable "Fail on error" option in TestCase options.

To control test execution flow you can use "Conditional Goto" test step (the easiest way) or "Groovy script" test step if you need more complex logic.

Detailed instructions here: http://www.soapui.org/Functional-Testing/controlling-flow.html




回答3:


In Ready Api (Soapui pro) right click on Test Case and click on Option.

Abort test if an error occurs (Disable)




回答4:


In SOAPUI free version you can go to the test case and click on the gear or settings icon which opens up a pop up and uncheck the option "Abort test if error occurs"



来源:https://stackoverflow.com/questions/16341547/continue-after-failed-assertion

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!