Software testing _Loadrunner_ performance test script recording _ _ record multiple server requests script

Before we wrote a script using Loadrunner record APP basic process: software testing _Loadrunner_APP test performance test _ _ _ Basic script recording operation process, But it can only be used to request a single server port applicable

This is mainly written in multi-server server, how to record a script (APP, browser script recording apply)

Record multiple server-side scripting basic flow

工具:Loadrunner、fiddler

Method: proxy mode, use Loadrunner record fiddler capture all requests

A, fiddler settings

Click tools-> Options ... -> Connections check the following chart, monitor port is set to (consistent with the port settings below Loadrunner) 8888 click Save.

Two, Loadrunner set the proxy

1, the new script, select Web (HTTP / HTML) protocol;

 

2, select the menu tools-> Recording Options for Network-> Port Mapping configuration;

l Create New Entry

l Sever Entry-> Target Sever: server address (since we are recording a script capture With fiddler, fiddler on my native, so here is written 127.0.0.1)

           Port: The port number (8888)

           Traffic Forwarding: proxy port number (Loadrunner computer where the port number of unoccupied, any value).

Note: If you do not know which port is occupied too, can proceed as follows: Start -> Enter cmd-> command pop, enter netstat -ano, it will list all ports are occupied.

 

l Capture level: Socket level data provided

 

3、点击Start Recording->Application:Win32 Applications

                 Program to record: Select Loadrunner installation wplus_init_wsock.exe tools directory. 

 

 

 4, set to open over the fiddler.

5. After setting, click OK. Into the recording.

Third, the phone set up a proxy (proxy settings after the phone then click the Start Recording)

1, you can select a connected WIFI press -> Edit Network -> check Show advanced options;

    The first connection can enter the password -> check Show advanced options;

When checked, the agent selected line: Manual

Server hostname: consistent with the local computer IP address;

Server Port: Consistent Traffic Forwarding proxy port number when configuring filled with Loadrunner.

Note: If you do not know the local IP address, may be performed as follows: Start -> input CMD-> pop command in Type ipconfig, local IP address is displayed.

 

 Three: Scripting record

1, click OK to begin recording (direct recording after you set up the phone or proxy)

2, Loadrunner start the proxy server to start recording, APP to be recorded in the mobile phone functions can be operated after the operation is completed, in Loadrunner interface to end recording.

Note: After clicking OK after a while will pop up a warning window, as shown below. This is the start of a proxy server, do not turn off while recording, click Close to the end of the recording.

3, in this case, to complete the process of multi-server test script recording.

 

 

 

Please indicate the source, there are questions, please feel free to contact, thanks

 

Guess you like

Origin www.cnblogs.com/liu-Test/p/11819538.html