JMeter - How to build a Realistic Test Plan?

Rupesh Garg

August 3, 2023

3 mins

The Proxy Server allows JMeter to record all the actions while user browses web/mobile application. The recorded actions are stored under the test plan in JMeter.

JMeter script should be prepared in a realistic way i.e. by adding delay between each user action which we call it as Think time. Think time allows the virtual users/threads to pause between the business flows, while moving from one to another transaction. As in real scenario users will never login, search, place order, payment and logout within few seconds as the user needs some time to think and do next action.

So including a Think time in the test plan makes the performance test more realistic as it represents user's actual behaviour in the system.

Steps for a Realistic test plan

  1. Create a new test-plan and switch to WorkBench and add HTTP(s) Test Script Recorder.
  2. Now, add Constant Timer to HTTP(S) Test Script Recorder and set Thread Delay (in milliseconds) in Constant Timer as. It tells the proxy server to record your delay time while you browse rather than adding a constant time.
FrugalTesting constant timer jmeter
  1. Now configure your browser to use the JMeter Proxy and record the user actions of web/mobile application.
  2. You can see the requests are recorded with Constant Timer with the exact time delay.
FrugalTesting constant timer with exact time jmeter

Note:

1. We need to remove the first sampler's generated timer manually, since the first sampler usually does not need one.

2. Thus timer recorded the user think time in realistic scenario through Proxy Server.

3. Depending upon the application context, the think time would vary.

4. It's not advisable to have the default think time for all applications under test.

Rupesh Garg

✨ Founder and principal architect at Frugal Testing, a SaaS startup in the field of performance testing and scalability Possess almost 2 decades of diverse technical and management experience with top Consulting Companies (in the US, UK, and India) in Test Tools implementation, Advisory services, and Delivery. I have end-to-end experience in owning and building a business, from setting up an office to hiring the best talent and ensuring the growth of employees and business.

Our blog

Latest blog posts

Discover the latest in software testing: expert analysis, innovative strategies, and industry forecasts
Software Testing

Getting Started with Azure Test Plans: A Step-by-Step Guide

Rupesh Garg
Rupesh Garg
February 27, 2025
5 min read
Testing Tools

Setting Up Jenkins With GitHub For Automated Workflows

Rupesh Garg
Rupesh Garg
February 27, 2025
5 min read
DevOps
Software Testing

Step‑by‑Step Gatling Load Testing: Accelerate Your DevOps Pipeline

Rupesh Garg
Rupesh Garg
February 26, 2025
5 min read