We usually use LoadRunner vugen When recording scripts LR The installation machine calls the client of the software under test on the local machine. by monitoring the communication between the client and the server and generating the corresponding test script, this is the most common usage, in general, it can also meet the test requirements. However, sometimes the client of the tested system is not necessarily installed on LR On the testing machine, if LR It can be used as a third party to record the communication between the other two machines, which makes the application more flexible. In addition, the currently used LR Most of them are Windows Version. If the client and server of the system under test are both Linux/Unix Normally, script recording is not possible unless we have LR Version, but LR Of Port mapping In theory, the function can also achieve script recording (this has not been tried yet, but I think it is acceptable ).
The setting of the recording process is relatively simple.LR 8.1Script.
Configuration
ToWeb(HTTP/htmlFor example,Win32 applicationsAnd specify the recording object as"D: \ Program Files \ mi \ LoadRunner \ bin \ wplus_init_wsock.exe", And thenRecording options-Network-Port mappingAnd configure the target server, port, and service.IDAnd thenTraffic forwarding", Select"Allow forwarding to target server from local portAnd enter an unused port (for example1234), ClickOKThen you can record it. A listener port configured for you will be started.
Recording
During recording, the system does not directly access the server on the local machine, but connects to the server through the client of the tested system on another machine.LRStart the recording machine name and add the listening port.LRAnd connect to the Real Server.
For more detailed instructions, refer17 TestingForumWilyWritten 《LoadRunnerA special recording script method. PDF"
Others
1,RememberProxyserverOtherwise, the port will continue to be used. When you record it again, the port will be occupied.
2,The preceding operations are available inLr8.1Can be recorded normally, but inLr8.0The client under test cannot passTraffic forwardingThe reason for accessing the Real Server is unknown.
3,If two or more different address mappings are configuredDisable, SecondEnableBut the first listener port is actually started. It seems to beBug. My first practice at the time was:POP3Ing, the second isHTTPService ing, only the second one is activated. ResultWebThe connection fails, but the email can be normally received. This is the case if you try it multiple times.