Forum Discussion
SiKing
11 years agoCommunity Expert
You really should have a read through the documentation!
${=testRunner.testCase.testSuite.name}
- nagoorkj6 years agoContributor
Hi Team,
i need to access the test case level property from test suite tear down script.
Tried with test runner or context.expand but which is not accessible so please advice on this.
- Radford6 years agoSuper Contributor
The test suite tear down script provides a testSuite variable. Try something like this:
def testCaseProprty = testSuite.getTestCaseByName('Your TestCase name').getPropertyValue('Your Property Name') log.info(testCaseProprty)
Note: It's probably best to start a new topic with a new question rather than resurrecting a 5 year old thread, it makes it a lot less confusing for people trying to help you.
- nagoorkj6 years agoContributorThanks a lot for this... Using this I have completed my coding for html report preparation.
Related Content
- 6 years ago
Recent Discussions
- 5 days ago
- 9 days ago