Forum Discussion
SmartBear_Suppo
Alumni
12 years agoHi,
If you want to share properties between TestCases within the same TestSuite I would suggest use TestSuite property, then you can also use property expansion to get the value but if that not feasible, here is the solution,
Thanks,
Jeshtha
If you want to share properties between TestCases within the same TestSuite I would suggest use TestSuite property, then you can also use property expansion to get the value but if that not feasible, here is the solution,
//To get
log.info testRunner.testCase.testSuite.getTestCaseByName("TestCase Name").getPropertyValue("PropertyName")
//To set
testRunner.testCase.testSuite.getTestCaseByName("TestCase Name").setPropertyValue(String name, String value)
Thanks,
Jeshtha