DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
What's in store for DevOps in 2023? Hear from the experts in our "DZone 2023 Preview: DevOps Edition" on Fri, Jan 27!
Save your seat

5 Steps to Create a Realistic Load Test

Make your load test dreams a reality.

Canberk Akduygu user avatar by
Canberk Akduygu
·
Mar. 11, 19 · Presentation
Like (3)
Save
Tweet
Share
8.24K Views

Join the DZone community and get the full member experience.

Join For Free

Functional testing and non-functional testing of an application are slightly different from each other. In terms of ISTQB, functional testing has structured tests scenarios. But when it comes to non-functional ones, we have performance testing and usability testing where the user’s perspective comes into play. Then, we have uncertainty as stated below:

QA Engineer walks into a bar. Orders a beer. Orders 0 beers. Orders 999999999 beers. Orders a lizard. Orders -1 beer. Orders a sfdeljknesv. But the first customer comes in and asks where the toilet is? The bar bursts into flames and the customer kills everyone.

We all know that customers are different; they don’t do what we expect them to do in our mobile app or web apps. That’s why as Loadium service team we prefer to use 20 percent of manual testing scenarios and the rest are formed with complex scenarios gathered from the product, marketing, and business teams. This is because they know what the user is doing in the application.

No user enters a website, adds a product directly into a cart, and makes the payment. This is the scenario that we all want, but this is not the case, unfortunately.

So, How to Create a Realistic Load Test?

1. Geography

User’s geographic location plays a significant role when we do performance testing. Their distance to the data center, the number of hopes that requests do between the server, and the client plays an important role. During that transmission process, data will pass through locations with different backbone speeds. Therefore, distributing the load into different geolocations would be a good start for your performance tests.

2. Devices and Browsers

What difference can a device or browser make to a load test? Aren’t we simulating HTTP requests? Yes, we are, but a user’s think time depends mostly on a browser because of rendering time. Not every browser renders the pages at the same speed and the user takes an action on that page. A review of a browser’s rendering can lead to identifying how long the user must wait for the individual steps to become active.

3. User Behavior

No user buys the same shoes every time in your website. Nowadays, every web or mobile app is using a strong caching mechanism for performance issues. So, users mostly get the response from cache servers without actually going to the actual server. Then, randomize your test data. Don’t navigate to the second page on a search page. Navigate to the 10th page. Maybe your caching servers cache the first 20 results, then go the 21st. Force your server to process data during performance tests. If there’s no parameterization or randomization, we cannot talk about a good performance test.

Google Analytics can provide a good view on parameter variability as they are done by actual users. So you should be close friends with marketing and product teams.

4. User Paths

As we stated earlier, not every user behaves the same. Let’s think about a user who buys a movie.

Scenario 1: User searches for the movie via the search bar. Selects movie, adds it into the cart. Then he/she pays without being a member.  

Scenario 2: User logins to the website.Searches for the movie. Adds it to cart and buys it.

Scenario 3: User browses the categories. Finds the actor. Finds the movie. Adds it to the cart and leaves it like that.

Most of the scenario, the user reaches the same destination but each user performs different steps. So, you need to analyze every scenario according to its impact on application architecture. You need to find the most extensive CPU consuming scenario but maybe perform it with a small user group. Those correlations will define the quality of your performance test.

5. Network Behavior

Each user has different network speed each time the app is used. Think about someone on a train, they are using a mobile app with 5G speed, and then, it becomes EDGE connection in a tunnel. Therefore, the network should be taken into account seriously. You need to understand what happens to the user who has slow connections.

All those things are key factors of a performance test. Loadium offers you to generate load in different geolocations with different bandwidth types. All the rest (users path, user behavior) is up to your JMeter skills.

Happy load testing!

Testing mobile app

Published at DZone with permission of Canberk Akduygu. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • NEXT.JS 13: Be Dynamic Without Limits
  • Mr. Over, the Engineer [Comic]
  • Getting Started With JMS-ActiveMQ: Explained in a Simple Way
  • How ChatGPT Is Revolutionizing the World of Natural Language Processing

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: