How to get all the properties and its values at the test step level using groovy script?
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2023
05:37 AM
04-14-2023
05:37 AM
How to get all the properties and its values at the test step level using groovy script?
Solved! Go to Solution.
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2023
05:52 AM
04-14-2023
05:52 AM
//It is the working code
def testStep = testRunner.testCase.testSteps["***Enter your testStepName***"]
if (testStep.getPropertyCount() > 0)
{
for (prop in testStep.getPropertyList())
{
log.info( prop.getName()+" = "+prop.getValue())
}
}
else
{
log.info(testStep.getName() + " doesn't have properties!")
}
