Unanswered question

How to capture Page response time in a variable?

I have to send page response time as input for next request. example starttime before step starts then end time after step end then i have to pass this start and endtime in next step request. I am able to capture with getting currentdate and storing into temp var then after complition of the step again getting current date as "EndTime" and storing into another endtime variable. then further sending as request parameter.

But Problem starts here ...Neoload result actually displaying less time than what i am capturing using currentdate, that because its including think time, which is more that what actualy page took for respond,

is there any way to get Actual Response time into variable which is showing under details tab when one virtual user is running. i am attaching screenshot for more detail.

in first screenshot is what i am getting , second screenshot will explain what i want to get

Rashmi A.
Rashmi A.

Rashmi A.

Level
0
52 / 100
points

Answers

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

This page response time including think time is only specific to the check virtual user. It's just an information but it's not the page response time that you will get while running your test. NeoLoad does not include think time in the page response.

So if you run a test you should get more or less the same time duration between the page response time and your JS calculation time.

If you would like to see in the check virtual user the same response time you can put 0 as think time in that page. Again it does not impact the execution as it's only an information.

 

Rashmi A.
Rashmi A.

Rashmi A.

Level
0
52 / 100
points

But my next request is dependent on some parameter which i will get in 1st response. thats why i need to give think time otherwise it will give assertion error .
Note : i am running as normal test not as virtual user with one iteration one user