Why do you create parameters?

Answer Posted / chethana

1.Right click on a value we want to parameterize (in our
case this is a username - "load1") and select "Replace with
a parameter" menuitem

2.Name the new parameter as "UserName" and click OK btn

3.the value "load1" will be changed with a UserName
parameter

4.Right click on the just added parameter and
select "Parameter properties"
5.By the way, this menu allows others operations with
parameters. You can:

"Restore original value (load1)"
In other words, rollback your changes
"Replace more occurrences" This menuitem will find for the
initial string ("load1") in the script and will propose to
replace it with the new parameter ({UserName}).

Tips: Please, use this feature carefully. For example,
let's there is "http://server/load1.htm" link in the
script. Here, "load1.htm" is a name of page, but
user. "Replace All" will produce incorrect link -
"http://server/{UserName}.

6.Parameter properties" will be shown.This dialog is
a "heart" of any parameter. You can here:

specify the type of the parameter
create the pool of values for any parameter (add new values
for any parameter)
specify, how the parameter will be changed against
interations and users
and other different settings...



7.After that perform the similar procedure for "Password"
parameter

8.Parameterizing allows simplify load/performance testing:

Instead of writing a separate LoadRunner VuGen script for
each virtual user, we added parameters for specific
information (username & password) and used the one script
for all users.
Parameterizing allows decrease maintenance cost. If
application under test is changed, one test should be
updated for 100 (e.g.) users, but 100 tests for each user
Supporting of tests is a real pleasure :) To add new user,
a test has to update dat-files only.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hello Friends, Can anyone please let me know about Performance testing health care EDI ( 270,271, 835 ect). I need as detailed answer as possible. I am going to use LoadRunner for load testing. I would really really really appreciate your help. Thanks, Piyush

1898


What the host attributes determine?

855


Why do you create parameter?

731


You have an application which shows the exam results of the student. Corresponding to name of each student its mentioned whether he passed or failed the exam with the label of “pass” and “fail”. How will you identify the number of passed and failed student in vugen script?

978


How to configure yahoo cookies in load runner?

2667


What are all the components of loadrunner?

732


Explain the difference between automatic correlation and manual correlation?

807


How to identify what to correlate and what to parameterize?

813


What are the documents your using ,and how your distibute the users

1839


What is manual correlation?

854


What would be your recommendation to improve performance measure?

869


What do vuser_init and vuser_end action contain?

871


What is a difference between pacing and think time?

748


Why we insert the rendezvous point while running the scenario?

855


What are the section contain by the vugen while creating a vuser script?

876