Forum Discussion
sanj
7 years agoSuper Contributor
This will get you the status of a test step
def result= testStep.run(testRunner,context).getStatus().toString()
OK means its pass
- st-pat7 years agoOccasional Contributor
sanj I had read this somewhere but when I paste this I get "missing property exception" for the 'testStep' do i need to fill in my testcase name with # ?!?
Furthermore I'd need it to work for the testcase- sanj7 years agoSuper Contributor
Do the following to get reference to tc and test step,
After that you should be able run using context and get status of the test step
tc = testsuite.getTestCaseByName("TC Name")
def testStep = tc.testSteps['TS name']
Related Content
- 4 years ago
Recent Discussions
- 7 days ago