In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail what components of loadrunner, Xiaobian thinks it is quite practical, so share it with you for a reference, I hope you can gain something after reading this article.
Loadrunner has three 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.
Loadrunner has three main components:
1. Script user script (Virtual user generator): recording, debugging script
The tester is replaced by the LoadRunner's Vuser, and the actions performed by the tester are fixed in Vuser Script. A computer can run multiple Vusers, so LoadRunner reduces the hardware requirements for performance testing.
The actions performed by Vuser in the scenario are described in Vuser scripts. Each Vuser executes the Vuser script while running the scene. The Vuser script records user actions and contains a series of functions that measure and record server performance, making it easy to calculate performance metrics. It's like a real user holding a stopwatch to record time while doing something.
2. Console (controller): Set scene parameters and manage virtual users
Controller is responsible for generating performance test scenarios, managing and coordinating multiple virtual users. In actual operation, Controller runs tasks assigned to each Load generator, and also monitors the performance of each node of the software system online, and collects the result data to provide to LoadRunner's Analysis.
①Load generator: PC, to use the resources of each PC, such as a virtual machine can simulate the number of users for 1000 people, if you want to test 5000 people online, you can connect other PCs, enter their IP address.
In Controller, click "Add" in Load Generators of Scenario Scripts, enter IP address; then click load generator in toolbar, click connect to connect, and you can use the resources of this physical machine. (The new physics machine has load generator software)
Load generator, popularly speaking, is the "subordinate" of controller, Controller sends commands, Load generator is responsible for implementation. Usually after installing LoadRunner on a machine, the Load generator is automatically installed, and a Controller can control the Load generator on the polymorphic machine, so that they agree to obey the command and complete the task together.
Agent: deployed on each client, collaborates to get virtual users in step
In the load generator, we know that the Controller can issue commands to it, and each physical machine can hear it, so we use the agent program, so we have to start the program.
agent is responsible for real-time listening instructions from the controller 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 agent: All programs->HP LoadRunner->Advanced Settings->LoadRunner Agent Process
3. Result analyzer (analysis): generate test report
Monitor: During performance testing, monitor all important server resources.
When you open Controller as an administrator, Select Scenario Type.
Manual Scenario Type (create Vuser groups, specify the scripts, load generators, number of Vusers)
-Use the Percentage mode...: Defines the total number of virtual users, assigning a percentage of virtual users to each script. For example: the total number of virtual users is 20, there are two scripts 001_login 40% and 002_lookFlight 60%(if you modify one of the proportions, the other proportion will automatically 1-this proportion)
Senario->Convert Scenario to the Vuser Group Mode
- If you do not select the above, it will be counted by number, for example: the total number of virtual users is 20, there are two scripts 001_login 8 and 002_lookFlight 16 (if you modify one of the numbers, the other number will be automatically changed)
- In the enterprise, the general concurrent test reaches hundreds of users, so the percentage is less
Global-Oriented Scenario: Define a goal to be achieved in the test, and LR will automatically create the scenario. This way will implicitly automatically set some content, so the operation process is prone to errors, errors have to find their own errors, not as convenient as manual settings.
About "loadrunner what components" this article is shared here, I hope the above content can be of some help to everyone, so that you can learn more knowledge, if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.