Forum Discussion
Alejandro21
12 years agoOccasional Contributor
Hi Jestha,
I tried what you suggested and it's working now. One question, I noticed that the value returned by
is different from the one returned by
could you please explain me the difference?
Regarding moving the teardown script to the groovy script teststep, I have one question. I use the teardown script to read the status of a certain test step using someting like this
I once read that this was only possible from within the testcase teardown script. Can I access the status of a certain test step from within another test step? If possitive, could you please tell me how to do it?
Thanks!!
Alejandro
I tried what you suggested and it's working now. One question, I noticed that the value returned by
testRunner.testCase.testSteps["Request name"].testRequest.getResponse().getContentLength()
is different from the one returned by
testRunner.testCase.testSteps["Request name"].testRequest.response.rawResponseData.length
could you please explain me the difference?
Regarding moving the teardown script to the groovy script teststep, I have one question. I use the teardown script to read the status of a certain test step using someting like this
for( r in testRunner.results )
{
//log.info "TestStep [" + r.testStep.name + "] finished with status " + r.status
if(r.testStep.name=="Request Name")
status=r.status
}
I once read that this was only possible from within the testcase teardown script. Can I access the status of a certain test step from within another test step? If possitive, could you please tell me how to do it?
Thanks!!
Alejandro