cancel
Showing results for 
Search instead for 
Did you mean: 

How to Create Properties in Test Steps using Groovy

Contributor

How to Create Properties in Test Steps using Groovy

Hi,

       How to create a Properties under Test Steps using Groovy Script in SOAP UI? I have a requirement that Groovy creates a Properties in Test Steps and Would store some Values. Would you please some help me out of this? I am new to Groovy with SOAP UI? Please find attached document that i have created Properties in Test Steps manually using SOAP UI. Same I wanted to do in Groovy Script.

 

 

Thanks

Sakthi

 

2 REPLIES 2
Highlighted
Super Contributor

Re: How to Create Properties in Test Steps using Groovy

To add step in existing test case

 

tc = context.testCase
ts = tc.addTestStep( 'properties', 'PropertiesStepName' )
ts.setPropertyValue( 'PropertyName', 'value' )

 

Contributor

Re: How to Create Properties in Test Steps using Groovy

Awesome. Thanks for your help. Again Lot of thanks. Smiley Happy. It is working for me

February News
Top Kudoed Authors