First, open the HP virtual user Generator, create a dummy users script, select the Web (http/html) protocol;
Second, in the Start recording box, fill in (select) the following information:
Application Type::win32 Application
Program to Record:c:\program Files (x86) \hp\loadrunner\bin\wplus_init_wsock.exe
(Note: This is the file under the LoadRunner installation directory)
Working Directory:c:\program Files (x86) \hp\loadrunner\bin
Record into Action: Based on the test Business Scenario selection (vuser_init/action/vuser_end)
Third, click "Options ...", open the Recording Options page, click Network-port Mapping, click "New enty" to fill the network map port information;
Target Server: Fill in the IP or URL of the test system
Port: Fill in the ports of the test system
Service ID: Select http
Traffic Forwarding: Tick and fill in the local proxy port (just fill in, as long as there is no other program in the local occupied the port on the line)
Other information is good by default.
After filling out:
Four, the following work is the mobile phone configuration
- Mobile phone and computer side to connect a common WiFi or mobile phone connected to the computer-shared hotspot;
- Turn on your phone's connected WiFi, modify it as a manual agent, and configure the agent as follows:
HTTP proxy changed to manual;
The server is the IP address of the computer;
Traffic forwarding port set when the port is LoadRunner recording (to be consistent);
Note that after setting up the phone agent, the mobile phone should be able to access the app for testing;
Five, the above are set up, you can start LoadRunner start recording, click the Start Recording button, will pop up "LoadRunner Sockets Proxy Starter" window, at this time do not control it;
Six, then can operate the test on the mobile phone business, LoadRunner will crawl network packets, when the stop LoadRunner recording, will generate a script;
Seven, finally close the "LoadRunner Sockets Proxy Starter" window.
(Note: To stop recording before closing the window)
Recording mobile app scripts using the LoadRunner Web (http/html) protocol