Add Windows and Linux presses in combat
Since the controller is the "heart" of the LoadRunner, the pressure is generated by it, and pressure is generated by the pressure machine to the system under test. General presses are divided into Windows and Linux. It is recommended to use Linux when the concurrency ratio is large.
1. Adding Windows Presses
The steps to add a Windows press are relatively simple, as follows.
1) Ensure that the LoadRunner Agent is installed on the press to be added and enabled (there will be a small satellite in the status bar).
2) Add the press and controller where the machine to be in the same network segment, it is recommended to shut down the firewall.
3) The RPC service on the local system is turned on (opens in Control Panel → administrative tools → services) and is recommended for self-booting.
4) then log in to the press from the machine on which the controller is located, and verify that connectivity is possible. Click on the Windows System Start menu, select "Run", enter "\ \ Machine Name" In the dialog box that pops up, and if you don't make an error, you will succeed.
It is recommended to close 360 and other types of management software, anti-virus software, at the same time to have sufficient permissions.
5) Enter controller, click Scenario→load Generators menu item, the interface appears 3-13, by default there will be a press, that is, the machine.
6) If you want to add another press, click the Add button and the interface appears 3-14.
The meanings of each of the options in Figure 3-14 are as follows.
Name: Many people here will enter the names of the machine, in fact, should enter the press IP address.
Platform: Default is Windows.
7) Click the OK button to complete the press Add, then click the Connect button on the right side of figure 3-13 to test connectivity and, if connected, display the ready status.
8) Finally, the press can be divided into the corresponding script, 3-15 is shown.
2. Add a Linux Press
Add Linux presses slightly more complex, need to have a certain Linux foundation, fortunately small white peacetime also often use Linux, so heart relieved. Add the steps below.
1) Download hp_loadgenerator to HP website, unzip to local and upload to Linux, file name is Linux.
2) Enter the Chmod-r +x linux/* command in the console to modify the permissions of the file.
3) Enter the CD Linux command in the console and enter the Linux directory.
4) Enter the./installer.sh command on the console to install and follow the instructions.
5) Enter the useradd-g 0-s/bin/bash besttest command in the console to add a new user named Besttest.
6) Enter the VI/ROOT/.BASHRC command in the console to edit the. bashrc file, adding the following.
- Export product_dir=/opt/hp/hp_loadgenerator
- Export m_lroot= $PRODUCT _dir
- Export Ld_library_path=${m_lroot}/bin
- Export path=${m_lroot}/bin: $PATH
7) Enter the Su-besttest command in the console and switch to the Besttest user.
8) Enter the cd/opt/hp/hp_loadgenerator/bin/command in the console to enter the default directory after installation.
9) Enter the./verify_generator command in the console to verify that the configuration is correct.
10) Enter the M_daemon_setup Start command in the console to start the service and, if successful, a prompt similar to the following is displayed.
- M_agent_daemon (22914)
11) Go back to the controller and repeat the steps to add the Windows presses. It is important to note that there is a little different from adding windows presses, 3-16, to tick the Don't use rsh checkbox.
Reprint: "LoadRunner performance Test Training Camp" 3rd Chapter LoadRunner Controller Combat
LR add windows and Linux presses in combat