Contributions
Re: How to abort test case in SoapUI ONLY if all two assertions failed? Some groovy script?
Hi. I run a test in a loop with help of Groovy script. Here is simple script if( context.loopIndex == null ) context.loopIndex = 0 if( ++context.loopIndex < 10 ) testRunner.gotoStepByName( "Name of first TestStep in loop" ) Testcase has to steps: 1. SOAP request 2. Groovy script which loop step 1 I have two assertions 1. Contains text - Error 20. If text IS presented than it sVAILD 2. Xpath-if the value of the nod presented than it s VAILD During making request sometimes service give me another wrong response, which I don't need to catch. When I receive "Error 20" I want to ignore that response and continue looping my request until I catch assertion number 2. Problem is, that when service returns "Error 20", assertion 2 fails. because server return completely wrong response. That's why I wanted to create conditions like that test case stopped only if both assertions failed, not only one of them. OR If you can recommend how to create conditions with one assertion, but which will have something like "If I see Error 20 response, ignore it and continue loop until assertion 2 failed"2.3KViews0likes3CommentsHow to abort test case in SoapUI ONLY if all two assertions failed? Some groovy script?
I have very simple test case. I send request to service, this request in loop. And I need to make this loop until catch bad response. I have two assertions which have to FAIL and only then stop test case execution. If fail only one of them - continue execution in loop.2.4KViews0likes5CommentsRe: Updated to Sierra and SOAPUI 5.2.1 does not load
I have faced with EXACTLY the same problem. I tried everything mentioned here. Maybe if it can help, I use on my Mac jenv tool to setup several java environments. Maybe it can influence somehow? I you will have some solution how to fix SoapUI problem please let me know1.3KViews0likes1Comment