Forum Discussion
deepesh_jain
14 years agoFrequent Contributor
Hi,
You can get the name of the test step by calling getName() method. testRunner has information about the currently running thread and you would be able to access the current running testStep or testCase like below:
tstep = testRunner.testCase.testStep.getName();
tcase = testRunner.testCase.getName();
You can now access any property from the test case/test step. For example:
response = tstep.getProperty("Response")
You can get the name of the test step by calling getName() method. testRunner has information about the currently running thread and you would be able to access the current running testStep or testCase like below:
tstep = testRunner.testCase.testStep.getName();
tcase = testRunner.testCase.getName();
You can now access any property from the test case/test step. For example:
response = tstep.getProperty("Response")