Roll up your sleeves: what to do when Performance Test Plan is missing

We've all been there.  Working with a performance testing tool and suddenly finding that you don't have all the information you need to acurately configure LoadRunner to simulate  You get the call that you're going to be thrown into the lab next week for performance testing.  This email came to me today and it was a perfect opportunity to explain how to quickly get a simple test plan together, even when the stakeholders for the project are pressuring you.

 

_____________________________________________________________
From: Narayanan, Kathiresan 
Sent: Thursday, February 18, 2010 3:46 AM
To: loadrunner @ hp.com
Subject: (HP LoadRunner and Performance Center Blog) : Multi threading in java vuser loadrunner protocol

  

Hi,

 

I have to design a scenario, where i am using just one user in controller. The scenario is like this, first create a company under company create multiple users.This entire process is in one script. what i did is first created a company then i created user one by one using for loop, but what stakeholders want is , create a company then create users under it in parallel, simultaneously they should be created so we can expect a high load.

 

Could anyone please give me suggestion/program that creates a user simultaneously.

 

 

_____________________________________________________________
From: Tomlinson, Mark
Sent: Thursday, February 18, 2010 12:45 PM
To: Narayanan, Kathiresan
Subject: RE: (HP LoadRunner and Performance Center Blog) : Multi threading in java vuser loadrunner protocol

 

Hi Kathiresan,

 

There are 2 things you should work on before modifying any scripts or scenarios in LoadRunner.

 

First, you need to figure out if you can have a single script for both adding Companies and Users  Your goal is to align your test/script design with the way your stakeholders are thinking and talking about the business. Your test design should easily make sense to the stakeholders.   

 

  •  if they are thinking more like: "We have someone adding a Company and 50 Users in one session" - then you probably could do well to combine the Company and User actions into a single script.

 

  •  if they are thinking more like: "We need to simulate 100 New Companies per hour.  And also 5000 Users per hour across those new Companies." - then separate scripts are probably better. 

 

Next, create a table showing the activities and quantities of each activity for 1 hour.  For instance, how many companies need to be created in a single hour?  How many users need to be created for each company in 1 hour?  Also – how many SIMULTANEOUS Real Users will be doing each of these activities?  This will help you to figure out the maximum quantity of transactions for your test run.  This table will help describe to the stakeholders exactly what the 1 hour test run will do.

 

Activity Trans per User per Hour Total # of Real Users Total Trans/hour
Adding a Company

1

150 150

Adding Users to a Company

150 150 7500

 

And now you are ready to go back to LoadRunner and implement the test…and let’s assume you are going to have the combined activities in one virtual user script:

 

Script Name:  Add Company and Users
Actions:  Init, Action 1, Action 2, End
                Init: Login to the System

                Action 1: Add Company
                Description:  adds a single company to the system and writes the company name, duration 5 minutes
                Test Data:  requires no staged data, but will create a single User login and Company record

                Action 2: Add User to Company
                Description:  adds 50 Users (in a loop) to a single Company…with 55 second delay between each User
                Test Data:  requires a Company record, from Action 1 (above) to which the User will be added

                End:  Logout of the System

Scenario Configuration: 
           
Iteration Pacing:       No iterations configured – script will start and run until completed
            Real World Comparison:  1 virtual user simulates 1 real users in 1 hour (Concurrency Factor = 1)

 

Here are a couple other questions for you to consider about this suggested scenario:      

  • What will be the maximum # of running virtual users?
  • During the test run, when will the Company records be updated?
  • How would you make the test run twice as many transactions in the same 1 hour?

Good luck!!  Smile

 

-mt

Comments
| ‎07-01-2010 04:36 AM

HI Mark,

 

i have see most of you blogs most of them are very much informative. if you publish blog on web services performcne testing it will more help full.

 

Thank you.

Cherry.

grkrish2704 | ‎05-23-2011 08:21 AM

Hi,

I am Kirshna. New to this blog and also to Load Runner.

 

I have some questions as below.

 

1) When I replay a recorded script and see my test results which shows the time taken to ran the test, it is showing different time duration value when I ran it in different times. Could you please advise which value i need to take.

 

2) I want to know the formula and inputs needed to calculate think time and pacing time for the test i am goin to run. What are the inputs that needs to be gathered from the business team/development team to calculate these values?

Leave a Comment

We encourage you to share your comments on this post. Comments are moderated and will be reviewed
and posted as promptly as possible during regular business hours

To ensure your comment is published, be sure to follow the Community Guidelines.

Be sure to enter a unique name. You can't reuse a name that's already in use.
Be sure to enter a unique email address. You can't reuse an email address that's already in use.
Type the characters you see in the picture above.Type the words you hear.
Search
Showing results for 
Search instead for 
Do you mean 
About the Author
Mark Tomlinson is a software tester and test engineer. His career began in 1992 with a comprehensive two-year test for a life-critical trans...
Featured


Follow Us
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.