LR uses proxy settings to record scripts

1. Proxy recording is mainly to solve: script recording problems caused by browser compatibility issues, including the browser cannot be opened during recording, and the recording script is empty.

2. The principle of using LR proxy recording : start the LR proxy server to monitor the set port number to see if there is a request sent to the server. When there is a request, the proxy server receives the request and forwards it to the corresponding system server, and LR obtains the requested information. With the data, generate the script.   

3. The early stage of using the agent:

● Browser setting proxy: local IP and server IP are in the same network segment. (Use the proxy of IE to select the 32-bit IE browser to set the proxy)

● Proxy settings for the mobile app: the mobile phone and the local computer must be in the same network segment of the same LAN

4. The main steps of proxy recording are:

● lr recording option setting proxy;   

● lr records the exe of the selected agent;

● Enable the browser proxy, the port number of the proxy is the same as the proxy port number set in loadrunner;

5. The detailed steps of proxy recording are as follows:

1) Click [Options] in the Start Recording window

 

2) Select [Network--Port Mapping] in the Recording Options window, and click [New Entry]

     Click the Recording Settings button, select Network---"Proxy Settings menu, and click the Add button

3) Fill in the IP, port, protocol, proxy, proxy port of the server to be recorded, and click [Update]

Click the Add button to pop up the new proxy server setting page, enter the address of the system server (IP or domain name does not need to write http://) and port number, select http for Service Id, and enter the browser or mobile phone proxy for the listening port number below The port number set on the above (the port number should not be occupied if the port number is larger)

 

4) Select the newly added agent, click [ok], and the LR agent setting is completed

5) Click [Program to record --...], select the exe of the recording agent

 

6) Select [wplus_init_wsock.exe] under the bin directory under the loadrunner installation directory

7) Browser proxy settings

Open and start the browser to set the proxy (take IE as an example), the port number of the proxy must be consistent with the proxy port number set in loadrunner, click [OK], and the browser proxy setting is completed

 

8) Mobile phone proxy settings

When connecting to wifi, enter the account password page, click the advanced option, you can see the proxy setting information, enter the IP address of the machine, port number (the port number setting is consistent with the port number of LR's monitoring).

   

9) After setting the browser/mobile proxy, go back to the loadrunner--Start Recording page and click the [ok] button.

 After the LR proxy and browser or mobile phone settings are set, click the record button, and a recording dialog box will pop up, and select the proxy server of LR for the IE path

(D:\Program Files (x86)\HP\LoadRunner\bin\wplus_init_wsock.exe) In the wplus_init_wsock.exe file under the bin directory under the LR installation directory, the URL address can be omitted.

 

10) After successful startup, the recording interface and proxy server will pop up, as shown in the following window:

Note: You cannot close the prompt box, nor click the Shutdown button, otherwise you cannot record

 

11) Manually open the IE browser, enter the URL of the website to be recorded and press Enter to record the desired content

 

12) After the recording is completed, click [shutdown] in step 10 to close the proxy

 

13) Click to end the recording, and the script will be automatically generated

 

 

Guess you like

Origin blog.csdn.net/weixin_37600187/article/details/82872529