Home> Common Problem> body text

What are the three major components of loadrunner?

coldplay.xixi
Release: 2020-10-23 10:30:53
Original
15130 people have browsed it

Loadrunner has three major components: 1. Script user script, mainly used for recording and debugging scripts; 2. Console controller, which sets scene parameters and manages virtual users; 3. Result analyzer analysis, which generates test reports.

What are the three major components of loadrunner?

The three major components of loadrunner:

1. Script user script (Virtual user generator): recording , Debugging script

The tester is replaced by the Vuser (virtual user) of LoadRunner, and the operations performed by the tester are fixed in the form of Vuser Script (virtual user script). A computer can run multiple Vusers, so LoadRunner reduces the hardware requirements for performance testing.

The operations performed by Vuser in the scenario are described by Vuser scripts. When running the scenario, each Vuser executes the Vuser script. The Vuser script records user actions and contains a series of functions that measure and record server performance to facilitate calculation of performance indicators. It's like a real user holding a stopwatch to record time while performing operations.

2. Console (controller): Set scene parameters and manage virtual users

is the headquarters for running performance tests. The Controller is responsible for generating performance test scenarios, managing and Coordinate multiple virtual users. During actual operation, the Controller assigns running tasks to each Load generator. It also monitors the performance of each node of the software system online, collects result data, and provides it to LoadRunner's Analysis.

①Load generator : It’s PC. You need to use the resources of each PC. For example, a virtual machine can simulate 1,000 users. If you want to conduct an online test with 5,000 people, you can connect other PCs and enter their IP addresses. Can.

In the Controller, click "Add" in the Load Generators of "Scenario Scripts" and enter the IP address; then click the load generator on the toolbar, click connect to connect, and you can use the resources of the physical machine. (New physical machines must have load generator software)

Load generator, in layman’s terms, is the “subordinate” of the controller. The Controller issues commands, and the Load generator is responsible for implementation. Usually, after LoadRunner is installed on a machine, the Load generator is automatically installed, and a Controller can control the Load generator on the polymorphic machine, allowing them to agree to obey the command and complete the task together.

②Agent: Deployed on each client, collaboratively obtains a consistent virtual user

In the load generator, we know that the Controller can issue commands to it, and each physical mechanism If you can hear it, you are using an agent program, so you need to start the program.

The agent is responsible for listening to the instructions from the controller in real time to coordinate the virtual users in each pressure generator

③When doing online testing, the online machine must meet two conditions :

1) Install the load generator

2) Start the agent: All Programs—>HP LoadRunner—>Advanced Settings—>LoadRunner Agent Process

3. Result analyzer (analysis): Generate test report

④Monitor: During the performance test process, all important resources of the server must be monitored.

⑤ After opening the Controller as an administrator, there is Select Scenario Type

①Manual Scenario Type to manually set the scene (create Vuser groups, specify the scripts, load generators, number of Vusers)

–Use the Percentage mode…: Define the total number of virtual users and allocate a certain proportion of virtual users to each script. For example: the total number of virtual users is 20, and there are two scripts 001_login 40% and 002_lookFlight 60% (if one of the ratios is modified, the other ratio will automatically be 1-this ratio)

Because the Controller starts slowly, if you want to proceed To convert the mode, use Senario–>Convert Scenario to the Vuser Group Mode and then introduce the script.

-If you do not select the above, it will be based on the number. For example: the total number of virtual users is 20, and there are two scripts 001_login 8 and 002_lookFlight 16 (if one of the numbers is modified, the other number will automatically Change)

– In enterprises, the general concurrent test reaches hundreds of users, so the percentage is used less

②Global-Oriented Scenario: Define a goal that needs to be achieved during the test, lr will Automatically create scenes. This method will automatically set some contents implicitly, so the running process is prone to errors. When errors occur, you have to find the errors yourself, which is not as convenient as manual setting.

The above is the detailed content of What are the three major components of loadrunner?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!