cancel
Showing results for 
Search instead for 
Did you mean: 

Running test step with context

SOLVED
sparrowenclave
Occasional Contributor

Running test step with context

I have Soap Request test step name as Add and Groovy Script test step name as Run

 

In Run test step I have following code which is responsible to run Add test step

 

def stored = testRunner.testCase.testSteps["Add"]
stored.run(testRunner,context)

 

Can someone explain me what is the use of testRunner and Context in run method?

 

Note: I have got 2 line of code from internet.

1 ACCEPTED SOLUTION

Accepted Solutions
ZDGN
Contributor

Re: Running test step with context

Hi @sparrowenclave 

 

According to the documentation,

 

 

It's a bit more complex but it's the idea 😉

 

David.

 

View solution in original post

2 REPLIES 2
ZDGN
Contributor

Re: Running test step with context

Hi @sparrowenclave 

 

According to the documentation,

 

 

It's a bit more complex but it's the idea 😉

 

David.

 

View solution in original post

nmrao
Community Hero

Re: Running test step with context

The run method requires those as arguments, as per SOAPUI's API. And David gave references to two in his reply.

Here is java doc for test step where run method can found

https://www.soapui.org/apidocs/5.5.0/com/eviware/soapui/impl/wsdl/teststeps/WsdlTestRequestStep.html


Regards,
Rao.
New Here?
Join us and watch the welcome video:
Top Kudoed Authors