Webloadui Pro Load Testing 101
Webloadui Pro Load Testing 101
by SMARTBEAR
Load Testing 101: Essential
Tips for Testers and Developers
Contents
Introduction.............................................................................................3
Conclusion............................................................................................14
WebLoadUI Pro 2
by SMARTBEAR
Introduction
Over the last decade, the importance of load testing has skyrocketed.
What was once a simple pre-deployment exercise to ensure a web ap-
plication could handle the load of multiple users has become an intrinsic
part of software development and improvement.
We can trace this move to three main trends: the rising popularity of
Agile approaches, the interest in collaborative coding as a means of
software innovation, and the increasing use of software in all critical
domains like healthcare and security. As a result, load testing needs to
be done more frequently, more effectively, and more efficiently.
It’s also created a need to simply train more people in basics of load
testing. Given that our lives increasingly rest on software functioning
properly—whether it’s in medical devices, transportation, communica-
tions, defense, or entertainment—we really need it to work. After all,
who enjoys using software that doesn’t do what it’s supposed to do? No
one! So, that’s what this eBook is ultimately about—a sort of “Load Test-
ing 101” manual for new and aspiring testers.
This eBook is mainly based on the functions of our load testing tools,
WebLoadUI (free) and WebLoadUI Pro, but it also serves as a gen-
eral introduction to load testing. It’s broken down into four basic steps:
Prepare, Record, Test, Analyze. In the first chapter, you’ll learn how to
prepare your web application for load testing. The second chapter lays
out how to record scenarios, and the third section covers testing that
matches real-life circumstance. Finally, we cover the fundamentals of
understanding all the data collected with tests, and the best way to use
it. Enjoy!
WebLoadUI Pro 3
by SMARTBEAR
9 Tips to Prepare Your App for Optimal Load Testing
You’ve worked hard developing your Web application. Maybe it’s noth-
ing pioneering, but is one of the millions of unsung software heroes that
make our lives function everyday. Then again, maybe it will change the
world.
Either way, you know you need to test it - and not just once. Testing
should be performed at each step in the development cycle and should
continue after the application is live. While it can be frustrating that a
tester’s job is never done, it’s important to take consolation that with
each testing and remediation cycle, the application improves.
Note: If you must run a post-production load test for some reason, be
sure to schedule your tests for a time when actual users can be mini-
mized or eliminated.
WebLoadUI Pro 5
by SMARTBEAR
¿¿ Monitor their area of expertise.
¿¿ Provide balanced feedback.
¿¿ Gain a sense of ownership for the health and performance of
the application.
WebLoadUI Pro 7
by SMARTBEAR
to plan an Agile testing methodology, whereby performance testing is
baked into each step of the development cycle. Additional testing should
be performed:
It’s easy to get swept up in role-playing video games. Who can resist the
temptation to be anyone you want in a fictional world filled with unending
excitement? The problem is, you inevitably end up wondering whether
you’re involved in a cutting edge virtual
Creating scenarios in order
reality or something more akin to those
to perform load tests is a
speaking Old English at a Renaissance fair.
major aspect of both de-
You never really know, so it’s probably best
ploying and improving web
not to brag too much at work about your
applications.
adventures the night before.
However, there is one area where role-playing games are certain to win
you points in your career. Creating scenarios in order to perform load
tests is a major aspect of both deploying and improving web applica-
tions.
WebLoadUI Pro 8
by SMARTBEAR
If the tested site is a retail site, for example, you might have the follow-
ing roles:
PCT Role
95 Browse and Leave
05 Browse, add something to the cart and checkout
WebLoadUI Pro 9
by SMARTBEAR
Making it Real: Emulate Real-Life Conditions in Your Load Tests
In this chapter, we’ll discuss ways you can ensure your load tests match
reality.
Some of the best perks about our free load testing tool, WebLoadUI, are
the settings that aid the process of generating a realistic load test. Of
course, like all load testing tools, you can specify the number of virtual
users to be simulated, but you can also set certain conditions that eas-
ily create more powerful and reliable load tests. No matter which load
testing tool you choose, make sure it allows you to set some version of
these basic conditions.
WebLoadUI Pro 10
by SMARTBEAR
scenario might be executed five times by each virtual user. This func-
tion can be found under the “continuous load” tab of the load profile in
WebLoadUI. Merely check the enable box, and set a time.
Parameterizing tests
While recording a scenario, you may need to specify some parameters
that will be used for further test runs. For example, you can enter some
search terms, user names and so on in the application’s fields. How-
ever, it is not a good practice to play back a test with the same recorded
data for each user as it does not simulate the real-life conditions. To
solve the problem, WebLoadUI allows you to parameterize your load
test using special variables. A variable can store desired data and your
requests can use this data during test runs.
WebLoadUI Pro 11
by SMARTBEAR
exactly like your browser did when you recorded your scenario. This
makes the simulation closer to real-world conditions.
Most load testing tools collect exhaustive information for each load test
run. Traditionally (if we can say that about load testing), you needed
to have pretty extensive knowledge in order to interpret the majority of
load testing data in any kind of meaningful way. This, unfortunately, has
resulted in countless load tests that generated tons of useless data.
More often than not, developers and QA managers come away from a
trial of load testing software with little more than the number of users
that will crash their system. Unless
they have a professional load tester If you know what to look for,
on staff, most development teams improvements in graphics and user
don’t have the time, resources, or interfaces like those in WebLoadUI
knowledge to garner all they could have made interpreting data much
from their load tests. easier.
To think of all that data just sitting there, unable to fulfill its life purpose
of Web application betterment is sad. Luckily, improvements in graph-
ics and user interfaces like those in WebLoadUI have made interpreting
data much easier—if you know what to look for.
Here’s a list of the most important results in load testing and how you
should be working with them.
WebLoadUI Pro 12
by SMARTBEAR
Response load time
Just knowing page load time is not enough. If a page is slow, you need
to know why. Being able to look at average response times for each
response really gives you a detailed look into where the time is being
spent.
Hosts
Because so many of today’s websites call out to a plethora of additional
hosts for things like content delivery networks, ad servers, analytics
servers, social media and syndicated content, it is important for these
sites to be enumerated in your reports. It’s equally important to be able
to view all of the calls to a particular host. If a host is called from your
pages, the response time for those requests will add to the time it takes
your pages to render. You must be aware of and possibly take action in
the case where a certain call takes a long period of time to respond.
WebLoadUI Pro 13
by SMARTBEAR
Conclusion
SmartBear Software, Inc. 100 Cummings Center, Suite 234N Beverly, MA 01915
+1 978.236.7900 www.smartbear.com
©2012 by SmartBear Software, Inc. Specifications subject to change. SB-AQt-030513-WEB