Guru
Guru

Reputation: 443

How to capture response time excluding images

In Our application there are images which are getting downloaded from different site.Our requirement is to capture the response time by ignroing the time taken for downloading the images.

Please suggest me how to achieve this using Loadrunner as well as JMeter.

Regards.

Upvotes: 0

Views: 549

Answers (5)

NaveenKumar Namachivayam
NaveenKumar Namachivayam

Reputation: 1202

You can comment out the requests which has images, css, js, png, and other resources. LoadRunner will not sent/measure those requests.

Upvotes: 0

vernjan
vernjan

Reputation: 371

Try SmartMeter Recorder - you can easily limit recorded domains or exclude any requests using regular expressions.

Upvotes: 0

James Pulley
James Pulley

Reputation: 5682

In LoadRunner, in your run time settings set a replay filter to not download from the third party domain/host/etc...

Upvotes: 1

Dmitri T
Dmitri T

Reputation: 167992

  1. Check "Retrieve All Embedded Resources" box
  2. Filter out external domains via "URLs must match" input field (it accepts Perl5-style regular expressions), something like:

    ^((?!<domain #1>|<domain #2>|<domain #3>).)*$
    
  3. The best option to configure this (to avoid changing all the HTTP Request Samplers) is HTTP Request Defaults configuration element, it will apply the configuration to all HTTP Request samplers in scope.

See Excluding Domains from the Load Test guide for more detailed explanation, use cases and real-life regular expression example.

Upvotes: 0

UBIK LOAD PACK
UBIK LOAD PACK

Reputation: 34516

Just uncheck :

  • Retrieve All Embedded Resources from HTML Files

Tell JMeter to parse the HTML file and send HTTP/HTTPS requests for all images, Java applets, JavaScript files, CSSs, etc. referenced in the file. See below for more details.

Also during recording, ensure you exclude embedded resources by using the "Recording" template.

Upvotes: 0

Related Questions