Welcome!

Agile Computing Authors: LeanTaaS Blog, Liz McMillan, Pat Romanski, Yeshim Deniz, Elizabeth White

Related Topics: @DevOpsSummit, Java IoT, Agile Computing

@DevOpsSummit: Article

How to Create the Most Realistic Load Tests | @DevOpsSummit #DevOps

The whole point of performance testing is to know that your app can handle whatever is thrown at it

You may have heard the phrase, "You've got to fake it till you make it."

Not with load testing.

Performance testing is one of the most important things you can do when building a web or mobile app, and it's only becoming more vital as the expectations of users are going up. People demand access to anything, anywhere, anytime, and they'll switch to a competitive solution if the app they're trying to use is slow or clunky.

Performance is critical to the success of your web and mobile apps - and will be for a long time in the future. It's not a matter of if you have to do it. It's about how to do it best.

So, how do you do it best? You make your test scenarios as real as possible. If you have ever listened to the performance testing horror stories from Brad Stoner, you've heard the importance of realistic testing scenarios

Why Is Realism So Important?
The whole point of performance testing is to know that your app can handle whatever is thrown at it. But application architecture, and in particular application delivery, is very complex. There are a lot of variables that impact the user's ultimate experience. Some are more obvious, like the specific device in use, or the task the user is trying to accomplish. Others are less apparent, hidden under abstraction layers or deep in the network layer.

You'll also want to consider the impact of other software running on the platform, the local environment, the ISP, and more. Not to mention the effect of 3rd-party services integrated with the app.

The list goes on. If your performance tests are overly simple, it means you aren't testing places that could impact the experience. It's like only testing a car on an empty highway and not taking the realities of street driving into account: potholes, traffic, other drivers, or suddenly-appearing pedestrians. Without realistic tests, you are not preparing for scenarios that are likely to happen and will be detrimental to your users (and your business). Plus you will be wasting a ton of time, effort, and money on useless tests.

So we've decided to put together a few ways that will show you how you can make your performance testing more realistic.

Don't Fake It - Realistic Load Test Scenarios Should Include...
Geography

Geographically speaking, where are your users? What are the predominant regions and how are people distributed between then? A user's geographic location plays a very important role in the experience they have and includes many factors that allow you to simulate load. The number of hops and the backbone speeds in the path between the website and the client system are just a couple of attributes involved in determining how fast packets will travel and how many packets are dropped.

Geographic diversity also shows you a range of user experience patterns, since people around the world may behave differently, especially when it comes to how people use desktops versus phones. Another important benefit of geographically dispersed load testing is the ability to distribute load across lots of places so your servers are handling traffic from a broader range of endpoints. Finally, using 3rd party locations forces you to execute your load tests outside of your data center, so they exercise the full data pathway from device to server.

Devices and Browsers
The web browser is the key blind spot for gaining true end-to-end visibility into application performance. Increased usage of client-side scripting means you must monitor the processing that takes place within the browser. It's the only way to get full visibility into performance. Browser test cases measure events that happen in the rendered page and are visible to the user. They can even measure things like: "After the user does A, how long does it take for button B to become enabled?"

Furthermore, you should monitor devices. Why? Because the variability in devices is growing rapidly. You need to look for software changes in each device and monitor their evolution and updates, which also impact performance. Here's the bottom line: With a little effort and maintenance, you can accurately find out if any clients are reacting poorly to your code, and work flexibly with your product to fix browser- or device-specific issues.

User Behavior
Accurately recreating the way users interact with your site is a key part of building realistic load tests. This usually starts with how you record scenarios in the first place. As users traverse through the app, you'll capture their clicks and form submissions and use this stream as the basis for future load tests. When you do this, you need to make sure the recording is parameterized in a way so that variables are randomized and represent what happens most often for people. All scenarios must be designed to be representative, replaying scenarios accurately with all the elements of users experience like popups or interruptions. So for example, if the user you are recording waits 10 seconds to click a button, you could turn this into a parameter that randomly waits between 5 and 20 seconds.

For even more realism, use Google Analytics to get a sense of the variability of parameters in actual users. While recording a scenario, you may need to specify some parameters that will be used for further test runs to help with repeatability. It is not a good practice to play back a test with the exact same recorded data for each user because it does not simulate real-life conditions. You should load test using special variables and store the desired data. Your requests can use this data during test runs.

User Paths
Sometimes, testers only test a limited set of paths through the application. This is often due to a limitation of the load testing software they are using. Take, for example, a chat window. This is small component on a typical web-based application, and as such, it's a part of the app that rarely gets tested. Other examples include infrastructure packages like Java Messaging Service or 3rd-party services like ad networks. If your load testing software doesn't help you incorporate these elements, you may have no idea how long those ads are making your users wait.

From the developer perspective, these experiences are somewhat separated from the application. But, this is not the case from the user's perspective. Think comprehensively about the way a user navigates through the app. Also talk to users. Ask about frustrations. This may lead to insights about how to build your performance tests with more realism.

Network Behavior
Knowledge about network latency and bandwidth is needed for any application that isn't local, because bumps and burps in the network can have a real adverse impact on your users. Monitoring network bandwidth and web application performance from multiple locations helps isolate problems in the network tier.

Bandwidth bottlenecks cause network queues to develop and data to be lost, impacting the performance of applications. This is especially true for mobile and cloud apps. High jitter, increased latency, and packet loss all work to degrade application performance. Use emulators and other monitoring functions to get a picture of the range of network characteristics. Then build that behavior directly into your load tests. Use your load testing platform to actually introduce network problems that users typically encounter, so you know what happens when they do.

Connection Parameters
Modern web browsers send requests to the server using several simultaneous connections. These parallel requests download images, scripts, CSS files and other resources located on the page. Different devices and browsers maintain different policies about how many concurrent requests are allowed. For example, phones generally restrict more than desktops or laptops do. You'll need to simulate an appropriate number of parallel requests during your tests. For example, if you are running an emulated mobile test from a server-based load simulator, make sure to set up some connection limitations. Try to send requests exactly like your browser did when you recorded your scenario. This makes the simulation all the more closer to real-world conditions.

Welcome to the Real World
It all boils down to one thing: keeping it real is paramount to load testing. We've given you a list of attributes to consider so that you can represent what actually happens for most users. If you can simulate what a user is most likely to experience, you'll be a step ahead of the game. With the rising demand for perfection in web application performance, there's no replacement for realistic load testing.

Image Credit: Jean-Etienne Minh-Duy Poirrier

More Stories By Tim Hinds

Tim Hinds is the Product Marketing Manager for NeoLoad at Neotys. He has a background in Agile software development, Scrum, Kanban, Continuous Integration, Continuous Delivery, and Continuous Testing practices.

Previously, Tim was Product Marketing Manager at AccuRev, a company acquired by Micro Focus, where he worked with software configuration management, issue tracking, Agile project management, continuous integration, workflow automation, and distributed version control systems.

@ThingsExpo Stories
Nordstrom is transforming the way that they do business and the cloud is the key to enabling speed and hyper personalized customer experiences. In his session at 21st Cloud Expo, Ken Schow, VP of Engineering at Nordstrom, discussed some of the key learnings and common pitfalls of large enterprises moving to the cloud. This includes strategies around choosing a cloud provider(s), architecture, and lessons learned. In addition, he covered some of the best practices for structured team migration an...
Recently, REAN Cloud built a digital concierge for a North Carolina hospital that had observed that most patient call button questions were repetitive. In addition, the paper-based process used to measure patient health metrics was laborious, not in real-time and sometimes error-prone. In their session at 21st Cloud Expo, Sean Finnerty, Executive Director, Practice Lead, Health Care & Life Science at REAN Cloud, and Dr. S.P.T. Krishnan, Principal Architect at REAN Cloud, discussed how they built...
In his session at 21st Cloud Expo, Raju Shreewastava, founder of Big Data Trunk, provided a fun and simple way to introduce Machine Leaning to anyone and everyone. He solved a machine learning problem and demonstrated an easy way to be able to do machine learning without even coding. Raju Shreewastava is the founder of Big Data Trunk (www.BigDataTrunk.com), a Big Data Training and consulting firm with offices in the United States. He previously led the data warehouse/business intelligence and B...
In his Opening Keynote at 21st Cloud Expo, John Considine, General Manager of IBM Cloud Infrastructure, led attendees through the exciting evolution of the cloud. He looked at this major disruption from the perspective of technology, business models, and what this means for enterprises of all sizes. John Considine is General Manager of Cloud Infrastructure Services at IBM. In that role he is responsible for leading IBM’s public cloud infrastructure including strategy, development, and offering m...
With tough new regulations coming to Europe on data privacy in May 2018, Calligo will explain why in reality the effect is global and transforms how you consider critical data. EU GDPR fundamentally rewrites the rules for cloud, Big Data and IoT. In his session at 21st Cloud Expo, Adam Ryan, Vice President and General Manager EMEA at Calligo, examined the regulations and provided insight on how it affects technology, challenges the established rules and will usher in new levels of diligence arou...
The 22nd International Cloud Expo | 1st DXWorld Expo has announced that its Call for Papers is open. Cloud Expo | DXWorld Expo, to be held June 5-7, 2018, at the Javits Center in New York, NY, brings together Cloud Computing, Digital Transformation, Big Data, Internet of Things, DevOps, Machine Learning and WebRTC to one location. With cloud computing driving a higher percentage of enterprise IT budgets every year, it becomes increasingly important to plant your flag in this fast-expanding busin...
Smart cities have the potential to change our lives at so many levels for citizens: less pollution, reduced parking obstacles, better health, education and more energy savings. Real-time data streaming and the Internet of Things (IoT) possess the power to turn this vision into a reality. However, most organizations today are building their data infrastructure to focus solely on addressing immediate business needs vs. a platform capable of quickly adapting emerging technologies to address future ...
No hype cycles or predictions of a gazillion things here. IoT is here. You get it. You know your business and have great ideas for a business transformation strategy. What comes next? Time to make it happen. In his session at @ThingsExpo, Jay Mason, an Associate Partner of Analytics, IoT & Cybersecurity at M&S Consulting, presented a step-by-step plan to develop your technology implementation strategy. He also discussed the evaluation of communication standards and IoT messaging protocols, data...
22nd International Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, and co-located with the 1st DXWorld Expo will feature technical sessions from a rock star conference faculty and the leading industry players in the world. Cloud computing is now being embraced by a majority of enterprises of all sizes. Yesterday's debate about public vs. private has transformed into the reality of hybrid cloud: a recent survey shows that 74% of enterprises have a hybrid cloud ...
22nd International Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, and co-located with the 1st DXWorld Expo will feature technical sessions from a rock star conference faculty and the leading industry players in the world. Cloud computing is now being embraced by a majority of enterprises of all sizes. Yesterday's debate about public vs. private has transformed into the reality of hybrid cloud: a recent survey shows that 74% of enterprises have a hybrid cloud ...
DevOps at Cloud Expo – being held June 5-7, 2018, at the Javits Center in New York, NY – announces that its Call for Papers is open. Born out of proven success in agile development, cloud computing, and process automation, DevOps is a macro trend you cannot afford to miss. From showcase success stories from early adopters and web-scale businesses, DevOps is expanding to organizations of all sizes, including the world's largest enterprises – and delivering real results. Among the proven benefits,...
@DevOpsSummit at Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, is co-located with 22nd Cloud Expo | 1st DXWorld Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The widespread success of cloud computing is driving the DevOps revolution in enterprise IT. Now as never before, development teams must communicate and collaborate in a dynamic, 24/7/365 environment. There is no time to wait...
Cloud Expo | DXWorld Expo have announced the conference tracks for Cloud Expo 2018. Cloud Expo will be held June 5-7, 2018, at the Javits Center in New York City, and November 6-8, 2018, at the Santa Clara Convention Center, Santa Clara, CA. Digital Transformation (DX) is a major focus with the introduction of DX Expo within the program. Successful transformation requires a laser focus on being data-driven and on using all the tools available that enable transformation if they plan to survive ov...
SYS-CON Events announced today that T-Mobile exhibited at SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. As America's Un-carrier, T-Mobile US, Inc., is redefining the way consumers and businesses buy wireless services through leading product and service innovation. The Company's advanced nationwide 4G LTE network delivers outstanding wireless experiences to 67.4 million customers who are unwilling to compromise on qua...
SYS-CON Events announced today that Cedexis will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Cedexis is the leader in data-driven enterprise global traffic management. Whether optimizing traffic through datacenters, clouds, CDNs, or any combination, Cedexis solutions drive quality and cost-effectiveness. For more information, please visit https://www.cedexis.com.
SYS-CON Events announced today that Google Cloud has been named “Keynote Sponsor” of SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Companies come to Google Cloud to transform their businesses. Google Cloud’s comprehensive portfolio – from infrastructure to apps to devices – helps enterprises innovate faster, scale smarter, stay secure, and do more with data than ever before.
SYS-CON Events announced today that Vivint to exhibit at SYS-CON's 21st Cloud Expo, which will take place on October 31 through November 2nd 2017 at the Santa Clara Convention Center in Santa Clara, California. As a leading smart home technology provider, Vivint offers home security, energy management, home automation, local cloud storage, and high-speed Internet solutions to more than one million customers throughout the United States and Canada. The end result is a smart home solution that sav...
SYS-CON Events announced today that Opsani will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Opsani is the leading provider of deployment automation systems for running and scaling traditional enterprise applications on container infrastructure.
SYS-CON Events announced today that Nirmata will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Nirmata provides a comprehensive platform, for deploying, operating, and optimizing containerized applications across clouds, powered by Kubernetes. Nirmata empowers enterprise DevOps teams by fully automating the complex operations and management of application containers and its underlying ...
SYS-CON Events announced today that Opsani to exhibit at SYS-CON's 21st Cloud Expo, which will take place on October 31 through November 2nd 2017 at the Santa Clara Convention Center in Santa Clara, California. Opsani is creating the next generation of automated continuous deployment tools designed specifically for containers. How is continuous deployment different from continuous integration and continuous delivery? CI/CD tools provide build and test. Continuous Deployment is the means by which...