Protocol Analysis of LoadRunner skills

Source: Internet
Author: User

 

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.

 

 

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.