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

What is the process for developing a vuser script?

652


What is a correlation?

826


What is the think time? What is the threshold level for think time and how can be this changed?

670


How to handle the encrypted values in correlation. please send me example with explanation

1242


What are the four selection methods when choosing data from a data file?

836






What is parameterizion?

783


How do you identify which values need to be correlated in the script? Give an example.

652


What is the load runner testing process?

671


What is the configuration of systems when using load runner?

606


What is script list?

873


What is the difference between overlay graph and correlate graph?

751


What can I monitor with loadrunner?

719


What is the difference between hits/second and requests/second?

619


What are the vuser components in loadrunner?

780


What is the purpose of selecting ‘show browser’ during replay in the general options settings?

694