Forum Discussion
- AnandKiranFrequent ContributorHi Sabersh,
Try the below code
def Count = context.expand('${#TestSuite#Count}');
and for setting a property
testSuite.setPropertyValue("abc",value);
Hope this helps.
Regards
Anand. - sabereshcpContributorHi Anand,
Thanks for your reply.
But, I am only able to get the value from testsuite property using the groovy script shared by you in "Script assertion" Step.
If i try to set the value back using the script
testSuite.setPropertyValue("abc",value);
It gives an error saying there is "no such propety testsuite for the script"
Can anyone let me know how to set the testsuite property value from the "Script assertion" Step.
Thanks in Advance,
Saberesh C P