When performing performance tests, protocol analysis is a problem for beginners. Choosing an incorrect Protocol will leadVirtual user GeneratorThe script cannot be recorded; or the recorded script is incomplete. Some applications may need to select multiple protocols to completely record client and server requests.
The simplest way is to go and ask the developers about ourProgramProtocol used for communication. Of course, sometimes I am embarrassed to ask (also to install x)The protocol used by the tested system can only be used by the user.
There are still many excellent third-party protocol analysis tools, such:Minisnifer,Wireshark,Ominpeek and so on; of course, they not only help you analyze the protocol, but also provide more detailed information.
Okay, we just want to know what protocol should be used for the tested system, so why not?LoadRunnerThe built-in protocol analysis tool.
Step 1
OpenLoadRunner --- virtual user Generator
File(File)-----> Protocol Advisor(Protocol analysis software)-----> Analyze application...(Analysis Application)
Protocol advisor is displayed.Is it too similar to the dialog box of "Start recording" script.
Application Type: Select the program type. There are two options,Internet applicationsGenerallyB/SSystem, that is, the system accessed through a browser;Win32 applicationsAverageC/SSystem, that is, local applications, suchQq.
Program to analyze : Select the program path. If it is a local program (C/S) To find the program Startup Program. For exampleQqThe Startup Program path:
"E: \ Program Files (x86) \ Tencent \ QQ \ qqprotect \ bin \ qqprotect.exe ";
If yesB/SSystem discoveryIEThe installation path of the browser. For example:
C: \ Program Files (x86) \ Internet Explorer \ iw.e.exe.
Program arguments: If yesB/SSystem, enter the URL to visit (this URL does not containHttp ://). If yesC/SIt is null.
Working directory: Tool directory, that is, the storage path of the analysis information.
Step 2
ClickOKStart to create an application and operate the application,LoadRunnerRecord your operations in the same way as the recording script.
ClickStop AnalyzingStop recording.
Step 3
LoadRunnerThe following information is returned:
This is a typical exampleWebApplication, so we useWeb (HTTP/html)The Protocol is enough.