Forum Discussion
Cizo89
11 years agoFrequent Contributor
Oh ok, try this script:
Regards,
Marek
//Get properties from all TestSteps in current TestCase
for (testStep in testRunner.testCase.getTestStepList()){
if (testStep.getPropertyCount() > 0){
for (prop in testStep.getPropertyList()){
log.info(testStep.getName() + " has property " + prop.getName())
}
} else{
log.info(testStep.getName() + " doesn't have properties!")
}
}
//Get properties from one specific TestStep
def testStep = testRunner.testCase.testSteps["XXX"]
if (testStep.getPropertyCount() > 0){
for (prop in testStep.getPropertyList()){
log.info(testStep.getName() + " has property " + prop.getName())
}
} else{
log.info(testStep.getName() + " doesn't have properties!")
}
Regards,
Marek
Related Content
- 8 years ago
Recent Discussions
- 9 days ago