Actions
An Action is a function in LoadRunner which contains the scripts generated after a recording is done. In Vugen, for any new script, there will be 3 actions –
- vuser_init
- vuser_end
- Action
1. vuser_init
Execute only once at the beginning
2. Run - Action
Execute number of times (iterations) specified.
3. vuser_end
Execute only once at the end.
Please note that vuser_init and vuser_end can be executed only once. Whereas Actions can be executed any number of times.
To give an example for this,
A single user will login once (vuser_init) and can perform multiple transactions like Open Mail, Read Mail, Write Mail (Actions) and will logout once ( vuser_end).
Transactions
As I have given an example about the Transactions i.e. Login, Read Mail, etc and Logout, it is important to know about the timing information about these transactions. This is the point where LoadRunner helps.
LoadRunner Provides us with following function which helps us to find the exact timings information about the transactions. How much time spend by the transaction to process.
1. lr_start_transaction
2. lr_end_transaction
Everything that happens in between these functions will be counted in the Response time.
Note: The user think time should not be placed in between these two function otherwise it will be counted in the End-to-End Response Time.
Run Time Settings
Run Time Settings will helps us to emulate the behavior of user like in the production environment. Following are the Run Time Settings with the help of which we can achieve this.
1. Run Logic
- Decides on the number of iterations and the various actions to be included
- Controls the Time Delay between iterations
- Decides on the type of messages that needs to be sent to the output log
- Decides on the pause time between step executions to simulate real time user activity
- Provides options on Error Handling, Multithreading and Automatic Transactions.
- Decides on the Speed simulation
- To Emulate Browser activities and Cache
- Proxy Settings for the Run
0 comments:
Post a Comment