Contributions
Help Me: Creating a Groovy Script for Representation data
Can someone help me figure out how to get the information returned in the response Representation tab??? I am trying to use RestRepresentation but that does work: import com.eviware.soapui.impl.rest.RestRepresentation x = RestRepresentation.getMediaType() log.info(x) This gives me a: No Signature of Method: static com.eviware.soapui.impl.rest.RestRepresentation.getMediaType() is applicable for argument types: () values: [] Possible solutions: getMediaType(), getMediaType(java.lang.String), getSchemaType(), getType()1KViews0likes0Comments- 13KViews0likes0Comments
Re: Running TestSteps
It worked, which confuses me. I'm actually running Soapui in an enclosed environment. Let me try this sample test case there and see if works. UPDATED:------------------ So I tired the sample in the enclosed space and it worked. the only differences I can see with your script is mine is that you use "def" and ";" in your script I will add those to mine and see if it works.13KViews0likes0CommentsRunning TestSteps
Hello, I am trying to setup Rest Test Cases. The problem I am having is verifying Post request correctly. I need to run the Post test then run the Get Request step to pull the new response. The problem I am having is running a test step through Groovy. The testRunner.runTestStepByName( "nameofteststep" ) is giving me an error. I was wondering how do I run a test step from an assertion step? If this as already been answered I sorry for the repeat question. If the thread exist can someone point me to it, thanks.16KViews0likes11Comments