Software testing is required after the project coding stage ends. As an indispensable part of the software development process, automated testing will gradually replace complicated manual testing. Stress testing is an aspect of software testing's performance evaluation. The following describes some situations when I use LoadRunner.
LoadRunner Introduction
This software is a load tool that can predict system behavior and performance. Concurrent load and performance observation can be performed by simulating tens of millions of users.
Composition
1. Script Generator
LoadRunner provides a visual recording environment, similar to recording Macros in the office. The operations performed by the current user are recorded as scripts for subsequent tests.
2. Monitoring
You can monitor the load running status of the entire system during monitoring of the specified system.
3. Stress Testing Generator
This is used to run and generate virtual users who test the specified system and monitor the system.
4. Result Analysis
After the test is completed, sort and analyze the test data.
General steps
Example
Three common components
After LoadRunner is installed, the above interface is displayed. This is the effect after the Chinese version.
Create script
Click Create script to go to this interface. Because the testing system follows the Web protocol, select the option in the black box. We can see a lot of options. Corresponding.
Recording
Select the recording script, enter the system address to be tested in the URL, and select the bin folder in the LoadRunner installation folder as the working directory. By default.
Parameterized virtual user
The code segment formed after recording. Then, you can set parameters based on the changes you need. Set parameters for the user name and password to be logged on. Right-click the specified username and choose parameter settings.
Right-click the parameter attribute after setting the parameter. Go to the following page.
Open it in notepad, and enter the value of the parameter you want to change. After parameterization, as shown in figure
We can see that many groups of users are formed. Here we select random and in order.
After the virtual parameters, You can execute the script.