We field a lot of questions about load testing websites with 3rd party components on the pages containing advertisements or user tracking mechanisms. For many of our users, we recommend leaving these out of the load test entirely. For some users this causes some concern over maintaining the realism of the load test. In this post, I’m going to discuss the advantages and disadvantages of dealing with these in a load test – and then provide some quick instructions for easily keeping these services out of your load test.
I’ll start by looking at the possible advantages of including these services in your load test:
That first one seems pretty compelling: Surely a thorough test should measure the capabilities of these important 3rd party services, right? There are several reasons this may not be realistic, depending on your situation:
As for the reality of the test – there are varying degrees of realism in load testing. If your page architecture has been well-optimized, then the end-user should not experience noticeable changes in the page render time even when these 3rd party systems are slow. Note that page render time refers to when enough of the page is visible for the user to start interacting with it. This is distinctly different than the total page load time. Most load-testing tools (including ours) will measure total page load time, rather than the page render time (which can be very subjective) – so in many cases the tests will better reflect reality when these 3rd party servers are excluded from the test.
Now lets talk about the disadvantages:
If you agree with me up to this point, you probably want to know how to easily keep these factors out of your load test. From the Window menu in Load Tester, choose Preferences > Web Performance > Recording > Transaction Blocking. You will see this:
Press the Add Host button to add more hosts to the list. Note that wild-carding is supported, so if the 3rd party system has many hosts, such as server1.adsRus.com, server2.adsRus.com, etc, you can simply enter .adsRus.com to block them all.
After entering these hosts, record your testcase and you will find that they have been automatically left out of the testcase.
If you have any questions about this topic or load-testing in general, please use our support system or give us a call!
Chris