Hello, I am starting this blog to share my experience as a software tester. I wish to share the real time challenges in my job and current news about software testing. Thanks!!

Your Ad Here

Wednesday, July 23, 2008

Load Runner for Functionality Testing?

Load Runner is a Performance Testing Tool, but Load Runner allows us to parameterize the test scripts. By using Parameterization we can use Load Runner for Regression Testing.

In order to conduct Regression testing using Loadrunner you need to create a script and parameterize it.

Example: You want to check the functionality of login window using 10 different users. For this you will have to follow the following procedure:

1. Record the script using any valid user.
2. Open the script and create parameters for username and password.
3. Fill in the values for the parameters in the flat file.
4. Change the values of paramters on every iteration.
5. Run the script for 10 iterations.

How to Parameterize a test script in Load Runner?

Select the text to be parameterized->R-click on that text you will have a option called Replace with parameter(click)->Here you will be creating a new parameter . In this you will have to the parameter name and when you click on properties, you will get one more pop up window in which you can create a table and add rows so that you give as parameters(values to be substituted when script is run) as you want.

Notice that when this process is finished your selected text will be replaced with the parameter name you gave and that will be in a pair of flower brackets & also in some different color.
Next time onwards in the same script, if you want to parameterize another text, when you right click you will be able to see the option 'Use Existing Parameter'. And you can include as many parameters as you want also you can paramterize with the same parameter.

To view the parameter substitution while replaying go to RunTime Settings->Log->Enable->Extented Log->Parameter Substitution

This is how you will be able to do regression testing using loadrunner.

2 comments:

Anonymous said...
This comment has been removed by a blog administrator.
Anonymous said...
This comment has been removed by a blog administrator.
Your Ad Here