Illustration: LoadRunner stress test and loadrunner stress test
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.
How to Use Loadrunner for stress testing
Easy to use. Look at 51testing.
How does LoadRunner perform stress testing?
This question is a bit generic. LoadRunner also has a standard process for stress testing. Of course, this depends on your goals and scenarios for stress testing. The goal and scenario should start with the pressure test requirement. For example:
Requirement research and summary;
Test Strategy and scenario formulation;
Test Environment deployment;
Write test cases;
Test data preparation;
Script recording and debugging;
Scenario running settings
Scenario pressurization test
Test Data Analysis and Optimization
Optimize regression testing
Of course, the above is only the main process of writing out the test. The details and the knowledge to be mastered are not a little bit clear. I hope this point can explain your doubts.