ContributionsMost RecentMost LikesSolutionsContinue Assertions in Groovy Step when one assertion failsWe are using SoapUI Pro with Test Cases where we write assertions inside Groovy Steps. Test Step: Groovy Script Step //Assertion 1 def ProductOfferingCode = context.expand(...something...) assert ProductOfferingCode == 'something' //Assertion 2 def productOfferingSource = context.expand(...something...) assert productOfferingSource == 'something' //Assertion 3 def isSubscription = context.expand(...something...) assert isSubscription == 'something' When Assertion 1 fails, SoapUI Pro will "Exit" the Groovy Step, and go to next step in Test Case. How can I force SoapUI to continue with Assertion 2 and Assertion 3, even when Assertion 1 fails. Also, I already know about the "Abort on Error" option, which continues to the next step when one step fails. But what I need is to continue with other assertions in the same Groovy step. Regards, Jatin KumarRe: mockResponse groovy script - modifying context with map/listI tried preparing the xml using groovy. now I send a string as response which I modify using groovy. But now i get "java.lang.ClassFormatError: Invalid method Code length" ... code length being 76222. guess my xml response is way over JVM limit. Is there a way to get around it?Re: mockResponse groovy script - modifying context with map/listThanks Ole! And sorry for the delayed response. Actually this is what I was looking for but not sure how to do it. Is it possible to build entire mockResponse xml using groovy. We are trying to migrate from SOATest and with SOAtest we were using python scripts to build the response. trying to do the same with groovy and SoapUI. cheers, devy.Soap UI reporting.Hi, We are currently writting the test scripts for automating the soap test cases. SoupUI supports generating the reports after the test script is exceuted, however this does not capture the assertions that are added. Is there any way to add the additional report statements to include the assertion results and also how do we include additional log statements to reports for better understanding of the steps executed in that test case.mockResponse groovy script - modifying context with map/listHi, I have a mockService running with few mockResponses. I am using groovy inside mockResponse to update the context and retun the response with data updated from a flat file/csv file. Doing so I have hit few blockers. 1. I don't know how to update an array type in the response context. 2. I am also not sure how to update the context variables in an iteration with different values. For example, consider the following as the mockResponse, <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Body> ...... <tag1>${value1}</tag1> <tag2>${value2}</tag2> .... .... now there cane be more than 1 rows/values for each of tag1 and tag2. For instance if I have say 2 rows/values then my response to any request should be something like: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Body> ....... <tag1>${value1}</tag1> <tag2>${value2}</tag2> <tag1>${value3}</tag1> <tag2>${value4}</tag2> Just wondering how can I modify my response based on the number of rows/tuples in my csv/flat file. 'would be wonderful if I can get some help from the forum. cheers devy