sukanya
7 years agoContributor
SoapUI Pro
Hi,
How can I run a request using groovy script without using testRunner.runTestStepByName("Request").
Is there any other alternate way?
Thanks
Hi,
How can I run a request using groovy script without using testRunner.runTestStepByName("Request").
Is there any other alternate way?
Thanks
Your topics would attract more viewers if you would name them more suggestive. The title 'SoapUI Pro' doesn't tell anything about what your problem is.
Nevertheless, why do you need to run a step (and not a request as you said btw...) by using another method?
I am having two test steps. I want to read the first response and run the second test step and read the response from there.
I want to do this under test step1 script assertion part.
Please do the needful on this.
Two Ways I am providing here depending upon your requirement you can pick any.
First way:
def tsbus=testRunner.testCase.testSuite.testCases["Business"]
tsbus.getTestStepByName("PortPsVerification").run(testRunner, context)
Second Way:
testRunner.runTestStep(pro.testSuites['Project Scripts'].testCases['Project Scripts'].testSteps['Soap Request Execution and Validation'])
I hope this is what you are looking for
Thanks,
Himanshu