Save response of GET request in READYApi
Hello Members, I have stucked at a place where i need to save the request of GET Service, as i have checked after successful run, the request or RawRequest Property is blank. I want to save the request and response to the external file but that property is blank. Any help on this? Thanks, Himanshu1.4KViews0likes0CommentsGroovy - Fail and Abort the test execution for 500 ISE and continue to run on 4x error codes
I am new to SOAPUI & Groovy. I am trying to run from the TestSuite level.. I need to set a Script Assertion on each Test step to make sure the execution should be aborted if the service returns 500 error code. This groovy should continue to run in case we get 400, 404 etc and should not bother about these 4x error codes. i.e. only if we get 500 ISE on any step within the test case, then execution should not proceed. I tried this below Groovy. But it still proceeding the next steps and also I'm getting the message "No such property: testRunner for class" import java.io.*; import java.util.*; import com.eviware.soapui.model.testsuite.* import com.eviware.soapui.impl.wsdl.teststeps.assertions.* import com.eviware.soapui.SoapUI def alert = com.eviware.soapui.support.UISupport; def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ) def httpResponseHeaders = context.testCase.testSteps["Request"].testRequest.response.responseHeaders def httpStatus = httpResponseHeaders["#status#"] def httpStatusCode = (httpStatus =~ "[1-5]\\d\\d")[0] if (httpStatusCode == "200") { testRunner.testCase.cancel() } else log.info("HTTP status code: " + httpStatusCode) I even tried the below piece of code. testRunner.testCase.fail() testRunner.testCase.cancel() testRunner.testCase.testSuite.fail() Please help out with this2.3KViews0likes5CommentsDifferences between Ready API and SoapUI NG (Free)
Hello, I have a project. I tried the SOAPUI NG and get java.net.connection reset Socket error. So, I went to the trial version of ReadyAPI. The same project worked there. No changes. No setting changes. I have compared between both and the settings were the same. What do I need to to to get the project to work in SOAPUI NG? (BTW: The free version trail of ReadyAPI expired.) Any advice is appreciated? Thank you. pnorm5.6KViews0likes3Comments