Use
LR Proxy recording principle
Enable the LR proxy to listen for a set port number if there is a request message sent to the server, when requested, the proxy server receives the request, and forwards it to the corresponding system server, LR thereby acquiring the requested information with the data, generating the script.
Use
the premise of the agent
Browser settings proxy: The native IP is in the same network segment as the server IP. (Use IE proxy to select the Internet Explorer settings Agent)
Mobile App Settings agent: The phone and the computer to the same LAN in the same network segment.
LR Proxy Server
Set
1) Click the Record Settings button, select the network---"Proxy settings menu, click the New button.
2) Click the Add button, pop up the new Proxy Server Settings page, enter the address of the system server (IP or domain name does not have to write HTTP://) and port number, Service Id select HTTP, The following listening port number enter the port number set on the browser or mobile agent (the port number is not occupied)
3) When the settings are complete, click the OK button and the LR proxy settings are complete.
One
Browser
Proxy Settings
Take Firefox for example:
1) Open the tools----Options menu and select the Advanced tab. Select the Network option and click the Settings button.
2) Select the Network options, click the Settings button, open the proxy settings, select manually configure the agent, enter the IP address of the machine , and the port number (port number set by the LR monitoring port number consistent)
3) When the settings are complete, click the OK button, and the browser proxy settings are complete.
Two
Mobile Phone
Proxy Settings
1) when connected to the WiFi, enter the account Password page, click Advanced Options, you can see the proxy settings information, enter the IP address of the machine , port number (port number set with the LR monitoring port number consistent).
6. recording scripts
1) After the LR proxy and browser or phone settings are set, click the Record button, pop up the recording dialog,IE path Select LR proxy Server (D:\Program Files (x86) \hp\ Loadrunner\bin\wplus_init_wsock.exe) in the LR installation directory under The bin directory of the Wplus_init_wsock.exe file, theURL address can not be entered.
2) Click the Record button when the settings are complete, and the recording screen and proxy server pop up.
3) Then you can do the relevant operation in the browser or phone, record the script, after recording, click End Recording, close the proxy server.
"LoadRunner recording phone-side feature" uses LR proxy recording principle