Forum Discussion
SmartBear_Suppo
10 years agoSmartBear Alumni (Retired)
Hi,
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
Related Content
- 4 years agoSuperTester
- 3 years agoCata