Forum Discussion

Waltinho76's avatar
11 years ago

Recording Test Step Result and Response Time

Hi

I have built a test that comprises of a DataSource (of type - Date Connection), a (soap) Test Request and finally a DataSource Loop. I'd like to output various pieces of info from the responses, ideally using the DataSink test step:
(1) Response Time of the test step
(2) Response Bytes from each test step
(3) Status of the test step (ie Passed or Failed)

So far, I've tried using the following combination of steps in a basic test to achieve (1)....
- Soap Request called "Request1"
- Groovy Script containing the following script:
log.info "Time taken" + testRunner.testCase.testSteps["Request1"].testRequest.response.timeTaken
- Property Transfer
- DataSink (SubReport)

I can see output from the script, showing the reponse time in the Log Output window. The Property Transfer is configured as Source = Result and Target = ResponseTime property in the DataSink step.

However, it's not passing through the Response Time.

Any idea how I can achieve the above?

Many thanks