robvandehel
5 years agoOccasional Contributor
SoapUI 5.5.0: conditional perform step using Groovy (previous response has mtom content type)
Snippet response teststep: signDocuments: <soap:Reason> <soap:Text xml:lang="nl">13 - De transactie is nog niet ondertekend.</soap:Text> </soap:Reason> <soap:Detail> <ns1:Validatiefout xmlns:ns1...
- 5 years ago
Hi HimanshuTayal richie that worked!
Thanx for helping.So the groovy script now is:
soapResponse = testRunner.testCase.getTestStepByName("signDocuments").getPropertyValue("Response");
//log.info(soapResponse)
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context);if(soapResponse.contains("13 - "))
testRunner.gotoStepByName("signDocuments")else
testRunner.gotoStepByName("getTransaction")testRunner.testCase.getTestStepByName("Get status afgerond").getPropertyValue("Response")