cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to parameterize a Groovy step in Soap UI Pro?

SOLVED
Highlighted
Contributor

Is there a way to parameterize a Groovy step in Soap UI Pro?

Greetings,

 

We are using Soap UI Pro for the first time and would like to know if there is a best practice for re-using a groovy script across multiple test cases. We would like to call a single groovy script and provide different parameter values to get different results.

 

Right now, I am using Groovy to call another Groovy step using the code below:

 

testRunner.testCase.testSuite.getTestCaseByName("[Test Case Name]").getTestStepAt(0).run(testRunner, context);

The issue, however, is that I cannot provide a parameter value to the called step.

 

Any advice would be greatly appreciated.

 

Thank you.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Expert

Re: Is there a way to parameterize a Groovy step in Soap UI Pro?

2 REPLIES 2
Highlighted
Community Expert

Re: Is there a way to parameterize a Groovy step in Soap UI Pro?

Highlighted
Contributor

Re: Is there a way to parameterize a Groovy step in Soap UI Pro?

Thank you.