Forum Discussion
wiseAcre ,
There is no more complex business logic, so no need to let a problem complication.
you are able to debug your code line by line since it is simple to run your scripts.
from your code snippet, run set method to setup a property (note: only string value would be saved in properties), if it is ok, then using getPropertyValue() to retrieve your value. there is no magic method for set/get.
After you retrieve value from properties, it treated as string as well, then you may need to convert it type (i.e string to integer).
using context.expand ('${#TestCase#ReferenceID}') to parse value in groovy script step or using testRunner.testCase.getPropertyValue('ReferenceID').
Non case-sensitive for properties. If you would like to set property: testRunner.testCase.setPropertyValue("xxxx", context.expand('${#TestCase#ReferenceID}')) //LINE 5 Error
Thanks,
/Aaron
Related Content
Recent Discussions
- 6 days ago
- 11 days ago