Jay R.
Jay R.

Reputation: 5

Loadrunner: Capturing the response times of document downloads?

I have a Loadrunner script, and I want to capture the response times of 3 document files that I download through the web-application. In my current recording, these documents are shown as "Extrares" and therefore their response times are not being calculated individually.

Here's the pertinent part of the recording (I've used vague domains/paths to not risk any ability to identify the customer/application):

web_url("2367_5", 
    "URL=https://web-application-domain/", 
    "Resource=0", 
    "RecContentType=application/json", 
    "Referer=https://web-application-domain/", 
    "Snapshot=t110.inf", 
    "Mode=HTML", 
    EXTRARES, 
    "Url=/Document/Document1/", "Referer=", ENDITEM, 
    "Url=/Document/Document2/", "Referer=", ENDITEM, 
    "Url=/Document/Document3/", "Referer=", ENDITEM, 
    LAST);

I want the response times of Document 1, Document 2, and Document 3, as separate transactions.

How can I achieve this?

Thank you.

Upvotes: 0

Views: 583

Answers (2)

twinge
twinge

Reputation: 75

just remove the extrares from the first url call and make 3 separate calls one for each document after that:

web_url("Document1", 
    "URL=https://web-application-domain/Document/Document1/", //put the correct path here
    "Resource=0", 
    "RecContentType=application/json", // edit according to the content type of the doc
    "Referer=https://web-application-domain/",  // probably useless, just comment it
    "Snapshot=t110.inf", 
    "Mode=HTML", 
    LAST);

Upvotes: 0

James Pulley
James Pulley

Reputation: 5682

Turn on time-taken in your HTTP logs and then parse the logs after your test for this data.

Upvotes: 1

Related Questions