This is a simple question - what is LoadRunner parameter?
I've reread LoadRunner VuGen User's Guide v9, trying to find the exact definition of LoadRunner parameter. That's strange, but LoadRunner Help does not contain the exact answer on this question.
In this article, I will answer basic questions, connected to LoadRunner parameters.
I think, LR beginners should study this article carefully :)
So, I recommend to read it, if you want to know:
I've recorded Web (HTTP/HTML) simple script on Web Tours demo web application. There are two first steps:
Please, notice that we use the following hard-coded username & password - jojo and jojo:
They are hard-coded in the script! This is important.
What should we do, if we want to execute our script sequentially for different users, for example for jojo/bean, then for bob/lcdm, dm/psswrd, and so on?
There are several solutions:
As you can see, our code is duplicated. Actually, this is not good idea (read this article to find out why it is).
So, what have I done?
I've reread LoadRunner VuGen User's Guide v9, trying to find the exact definition of LoadRunner parameter. That's strange, but LoadRunner Help does not contain the exact answer on this question.
In this article, I will answer basic questions, connected to LoadRunner parameters.
I think, LR beginners should study this article carefully :)
So, I recommend to read it, if you want to know:
- the definition of LoadRunner parameter
- LoadRunner parameter functions
- how to create parameter in LoadRunner VuGen script
- which types of LoadRunner parameter are available
- how LoadRunner processes parameters - gets and sets their values
- other key concepts, connected to LR parameters
I've recorded Web (HTTP/HTML) simple script on Web Tours demo web application. There are two first steps:
Please, notice that we use the following hard-coded username & password - jojo and jojo:
- "Name=username", "Value=jojo", ENDITEM,
- "Name=password", "Value=bean", ENDITEM,
What should we do, if we want to execute our script sequentially for different users, for example for jojo/bean, then for bob/lcdm, dm/psswrd, and so on?
There are several solutions:
- The simplest one is to record our script for each user.
In this case, our pseudocode will look like:
- Login as jojo/bean
- Perform other actions under jojo/bean
- Login as bob/lcdm
- Perform other actions under bob/lcdm
- Login as dm/psswrd
- Perform other actions under dm/psswrd
- so on...
- We can remake our code:
- Loop - perform next actions for each user name and password
- Read user name and password into {UserName} and {Password} variables
- Login as {UserName} and {Password}
- Perform other actions under {UserName} and {Password}
No comments:
Post a Comment