Groovy Scripting- TestRunner Property
I am reading column value from data source(.csv) and using string split function to capture a sub string value.
This substring value is stored in a property using :
testRunner.testCase.setPropertyValue("card_number", cardNum)
and then is passed to the request using ${#TestCase#card_number}
It works fine when there is only 1 loop in the test case. However in mine there are multiple test rows being run in loop and the property value is not getting reset instead value read first time from the property is being passed on to requests in subsequent loops.
I tried testRunner.testCase.setPropertyValue("card_number",null ) as well as testRunner.testCase.setPropertyValue("card_number","" ) but no luck..Need help from experts.
Hi sumit0609 ! Were you able to solve this issue? If not, please provide more info the Community is requiring and the community members will do their best to help!
Otherwise, you can raise a support ticket with our Customer Care team by this link.