In performance testing, protocol analysis is a difficult problem for beginners, choosing the wrong protocol will cause the virtual User generator to not record the script, or the recorded script is incomplete, and some applications may need to select multiple protocols in order to fully record client and server-side requests.
The easiest way to go is to ask the developer what protocol our program communicates with. Of course, sometimes for the sake of face, embarrassed to ask (also for loading x), then you can only go to the test system to use the protocol.
Excellent Third-party protocol analysis tools are quite a lot, such as: Minisniffer, Wireshark, Ominpeek, and so on, but they help you analyze the agreement, but also provide more detailed information.
Well, we just want to know what protocol the system is supposed to use, so why not use LoadRunner's own protocol analysis tool?
First step
Open LoadRunner---Virtual User generator
File-----> Protocol Advisor (Protocol analysis software)----->analyze application ... (Profiling application)
Pop-up protocol Advisor is not finding it looks too much like the dialog box for the "Start recording" script.
Application Type: Select program types. Contains two options, the Internet applications generally refers to B/s system, that is, through the browser access to the system, WIN32 applications general C/s system, that is, local applications, such as QQ.
Programs to analyze: Select the path of the program, if the local program (c/s), find the program's startup program. such as the QQ Startup program path:
"E:\Program Files (x86) \tencent\qq\qqprotect\bin\qqprotect.exe";
If it is b/s decency to find the installation path of IE browser. Such as:
C:\Program Files (x86) \internet Explorer\iexplore.exe.
Program arguments: If it is b/s system, please enter the URL to visit (this URL do not add http://). If it is C/s, it is empty.
Working Directory: The tool directory, which is the save path for profiling information.
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/Programming/extra/
Second Step
Click OK to start the application, the application, LoadRunner will record your operation, and the recording script is the same.
Click the stop analyzing to stop recording.
Third Step
LoadRunner will return us the following information:
This is a typical Web application, so we can use the Web (http/html) protocol.