Loadrunner (mostly known as LR) is a kind of software that helps you test your applications from the perspective of performance, stress and load.
The software consists of 3 main applications:
What you do with LR is basically like following:
This is just a brief explanation, details of each step will be posted when i am available.
The software consists of 3 main applications:
- Vugen: With this application you record, parametrize and verify your scripts (does not require license).
- Controller: By using Controller you create Load Test Scenarios by making use of the scripts you've already created (license is required).
- Analysis: After running the load test you need to anayse the results. By using Analysis tool you can check the run result reports (does not require license).
This is just a brief explanation, details of each step will be posted when i am available.
- Create your manual testcases and scenarios (from QC is optional).
Right click on design step and select Generate Script -> Vugen
- Optionally convert them to LR scripts.
- Open the test script by using Vugen (Vugen -QC connectivity described here).
- Click Record button. For the recording options generally i am using following settings.
My preferred recording options for HTML/HTTP protocol
- While recording do not forget to add "Start Transaction" and "End Transaction" flags. The transaction markers are very important while running the real test. Because LR Controller is going to measure elapsed times of the transactions. If you do not set them correctly you won't be able to render the results correctly.
Label the user actions by using Start-End Transaction A small part of the generated script - After recording of the scenario finishes you have to verify it by pressing F5. After execution of the script you recorded completes successfully. You can progress to the LR Controller part. If the replay fails you need to open the Tree View and compare the recorded and replayed requests and responses. And try to find on which request the problem is.
- When everything is OK about the LR Script open the LR Controller application and create new scenario by selecting Manual Scenario and adding the script that you saved with Vugen.
- In the Design tab of the Controller you can set number of users, their ramp up and ramp down setings and how much time you want to run the test, etc...
- When the load test completes you can open the result with Analysis and check the execution time of each transactions and impact of the quantity of the virtual users to the transaction times.