Groovy Script to Add New Property ?
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2017
04:31 PM
01-22-2017
04:31 PM
Groovy Script to Add New Property ?
Hi,
Is that possible to add a new property using groovy script?
I have added a "Properties(0)" test step without any property in it, is that possible to use groovy script to add a property and its value?
Thanks,
Ario
Solved! Go to Solution.
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2017
11:48 PM
01-22-2017
11:48 PM
A test case level property?
context.testCase.setProperty('PROP_NAME', 'string value')
To access the above value, use property expansion in other request steps such as ${#TestCase#PROP_NAME}
Regards,
Rao.
context.testCase.setProperty('PROP_NAME', 'string value')
To access the above value, use property expansion in other request steps such as ${#TestCase#PROP_NAME}
Regards,
Rao.
