LoadRunner Usage Techniques: protocol analysis

Source: Internet
Author: User
Tags generator

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.

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.