cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
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
Community Expert

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

Yea. You want the script library.

2 REPLIES 2
Community Expert

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

Yea. You want the script library.

Contributor

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

Thank you.

New Here?
Join us and watch the welcome video:
Top Kudoed Authors