All too often, you may want to exclude certain domains from the load test.
For example, Google Analytics, Doubleclick, your CDN provider's domain Etc. There can be a number of reasons you might want to exclude these domains:
- These domains generally do not permit load testing
- They can block the traffic
- This traffic can distort your funnel measurements (e.g. you may not want to have the traffic appear as part of your Google Analytics data)
- Other (insert your reason here)
To exclude domains, you need to follow this procedure:
- In JMeter, in the 'HTTP request default' config element or in the HTTP request sampler, Go to the 'Advanced' tab and enable the checkbox for 'Retrieve All Embedded Resources'.
- Add the following RegEx to the edit box named 'URLs must match':
E.g.
^((?!google|facebook|pinterest|twimg|doubleclick).)*$
Want to learn more? You'll want to view our on-demand recording, How to Create Advanced Load Testing Scenarios with JMeter
0 Comments