Contributions
Re: SoapUI 5.5.0: conditional perform step using Groovy (previous response has mtom content type)
HiHimanshuTayalrichiethat 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")2.7KViews0likes3CommentsSoapUI 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="https://schemas.knb.nl/css/2.0"> <ns1:code xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">13</ns1:code> </ns1:Validatiefout> </soap:Detail> Next step: groovy script: try { soapResponse = testRunner.testCase.testSteps['signDocuments'].testRequest.response.responseContent; def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context); if(soapResponse.contains("soap:Fault") && soapResponse.contains("13 - ")) { sleep(100) testRunner.gotoStepByName("signDocuments") } } catch(Exception e) { } Goal: perform teststep 'signDocuments' as often as needed until the response doesn't contain message '13'. I've tried a lot of different ways (including runStepByName, using property transfer, other code using for loop), but still it doesn't seem to iterate over the teststep and groovy script. Does anyone have a clue?Solved2.9KViews0likes10CommentsRe: SoapUI 5.5.0: conditional perform step using Groovy (previous response has mtom content type)
Hirichie, Thanx for your reply. Your code is more simple and seems to work too. But I still get the same error: groovy.lang.MissingPropertyException: No such property: responseContent for class: com.eviware.soapui.impl.wsdl.submit.transports.http.support.attachments.WsdlMimeMessageResponse Possible solutions: responseContent The content type of the response is: Content-Type multipart/related; type="application/xop+xml"; boundary="uuid:<some UUID>"; start="<root.message@cxf.apache.org>"; start-info="application/soap+xml" I'm starting to think if this has something to do with that. I tested the script in combination with a request which response has content type: Content-Type application/soap+xml;charset=utf-8 That works just fine. So I have to figure out how to alter the script so it also understands the multipart (mtom) content type.2.7KViews0likes6CommentsRe: SoapUI 5.5.0: conditional perform step using Groovy (previous response has mtom content type)
Hi HimanshuTayal, Thanx for your reply, but that didn't do the trick. I copied your code in the Groovy script and now get the following error: Tue Jun 16 15:59:14 CEST 2020:INFO:Exception occurs : groovy.lang.MissingPropertyException: No such property: responseContent for class: com.eviware.soapui.impl.wsdl.submit.transports.http.support.attachments.WsdlMimeMessageResponse Possible solutions: responseContent I've searched the internet and tried a couple of things, but without any result.2.7KViews0likes8CommentsCan't resolve dependencies: soapui-maven-plugin:5.3.0
Since a couple of days we cannot download the soapui-maven-plugin: Failed to retrieve plugin descriptor for com.smartbear.soapui:soapui-maven-plugin:5.3.0: Plugin com.smartbear.soapui:soapui-maven-plugin:5.3.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.smartbear.soapui:soapui-maven-plugin:jar:5.3.0 When i go to 'https://rapi.tools.ops.smartbear.io/nexus/content/groups/public/com/smartbear/soapui/soapui-maven-plugin/' i get a http 504 Gateway time-out. It seems that Smartbear artifacts are not availale.1.5KViews3likes4Comments