Forum Discussion
nagoorkj
Contributor
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.
Radford
6 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
- 18 days ago