Recording mobile app scripts using the LoadRunner Web (http/html) protocol

Source: Internet
Author: User

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

    1. Mobile phone and computer side to connect a common WiFi or mobile phone connected to the computer-shared hotspot;
    2. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.