Forum Discussion
SmartBear_Suppo
Alumni
14 years agoHello!
It's expected, and you are right regarding that you should use name instead of label (depending on what you want to achieve of course).
To clarify, this code in a Groovy Script TestStep:
...will give this in the script console (when an empty Properties TestStep first in the TestCase):
Regards
Henrik
SmartBear Software
It's expected, and you are right regarding that you should use name instead of label (depending on what you want to achieve of course).
To clarify, this code in a Groovy Script TestStep:
log.info testRunner.testCase.getTestStepAt(0).label
log.info testRunner.testCase.getTestStepAt(0).name
...will give this in the script console (when an empty Properties TestStep first in the TestCase):
Thu Oct 13 08:53:48 CEST 2011:INFO:Properties (0)
Thu Oct 13 08:53:48 CEST 2011:INFO:Properties
Regards
Henrik
SmartBear Software