Unanswered question

I want to capture duration of an request in my script. Can Customer_Measurement help my req? Pls share sample code

When I do a test run for 250 users, I want to capture the duration time for a specific request into a variable and later I can write that variable in to a external file.

Note: I know how to write a variable to external file. I am not sure how to capture the duration. Can Custom_Measurement action help ? if so can anyone share sample code to achieve same. Thanks

Harish K.
Harish K.

Harish K.

Level
0
12 / 100
points

Answers

Christophe M.
Christophe M.

Christophe M.

Level
3
3338 / 5000
points
Team

It's not possible yet to capture the duration of a request (or a Transaction).

Why do you need it so that I can check if a coming feature may help you? What is the goal of having this external file?

Harish K.
Harish K.

Harish K.

Level
0
12 / 100
points

"It's not possible yet to capture the duration of a request (or a Transaction).

Why do you need it so that I can check if a coming feature may help you? What is the goal of having this external file?"

Harish: Thanks for your reply. The reason I need this as we run for more users say 250, I wanted to make sure the request is run for all 250, coz I noticed a pattern where Neoload is not completing the test for all users. Also having this duration and write it to a csv file would help me to find out under which scenario(which virtual user), the request is taking a long time. This would help us to pass on information to our devs.

Also please share an example on how to use Custom_Measurement miscellaneous action.