Before learning the LoadRunner agreement, I think we need to understand the basic concept of the agreement. First of all, we know that the communication between computer and computer is inseparable from the communication protocol, and then we say the concept of communication protocol. What is a communication protocol, a communication protocol is actually a set of rules and conventions. In a way, two or more computers must agree on what to do when communicating, such as file transfer or email, and then agree on how to communicate, what time to communicate and so on. Therefore, the communication between the two parties to comply with mutually acceptable protocol (the same or compatible protocol) to communicate, such as the current Internet widely used TCP/IP protocol, and so on, any computer connected to the network as long as the TCP/IP protocol to run, access to the Internet.
After understanding the basic concepts and functions of the Protocol, let's say LoadRunner's protocol choices. LoadRunner first is a test tool, followed by a performance testing tool, and then the tool is a protocol based, meaning that LoadRunner test objects need to use a communication protocol for software that does not use the communication protocol for local processing only, such as Microsoft Word,loadrunner is not applicable.
Speaking of communication protocols, let's familiarize ourselves with the protocol hierarchy, according to the OSI layered model, the hierarchy is as follows:
According to the TCP/IP protocol hierarchy, the hierarchy is as follows:
The first layer is developed by OSI but not practical, the latter is currently widely used and recognized by the industry as the established standard of the Protocol hierarchy, the following discussion of the LoadRunner protocol selection is based on the TCP/IP protocol layered model discussion.
Then the protocol classification in Loadrunnervugen, Vugen (LR8.1) in the Protocol classification as shown in the following table:
A careful study found that the protocols in the LoadRunner Vugen were different from the communication protocols mentioned at the beginning of the article, such as C templates, Visual Basic templates, Java templates, LoadRunner Vugen, Javascript. and VBScript. Type of script is the development language, non-communication protocol, but loadrunner that it is listed here, we will temporarily endorse.
After understanding the protocol in LoadRunner, we enter the protocol determination phase, the agreement is determined, usually has the following several methods:
1. This is usually the simplest and most straightforward way to ask developers about the protocols they use, because no one knows more about what communication protocols they are using than developers.
2, through the summary or detailed design manual to learn the protocol used, in the absence of developer support, through the outline design or detailed design to learn the protocol used is a second convenient way;
3, through the Protocol analysis tool to capture the package analysis, and then determine the object used by the test protocol. In the use of protocol analysis tools to analyze the protocol process must be excluded from the underlying protocol, not to be confused by the underlying protocol;
4, through the past Test experience to determine the object used by the agreement, of course, through this method to determine the agreement has a certain inaccuracy;
With all four of these methods, we basically determine what protocols we should choose to record. Light to determine the protocol is not used, the most important thing is to put into action, after confirming the agreement, we entered the Vugen to start recording the script, the recording completed to see whether the corresponding script, if the script content is empty may we choose the protocol is incorrect, We can try to choose another protocol.
Generally speaking, the choice of agreement has the following principles:
b/S structure, select Web (http/html) protocol;
The C/S structure can be selected according to the type of backend database, such as the Sybasectlib protocol used to test the backend database for Sybase application; The MSSQLSERVER protocol is used with the test backend database for SQL Server application;
For some Windows applications that do not have a database, you can choose the Windows Sockets underlying protocol, the ODBC Protocol for data that uses the database but uses ODBC connections;
For some use of pure Java written C/s structure Dongdong, using Java, and can not record can only hand-written code (workload and difficulty or some). The same can not be recorded also include C, VB Script, VB, vbnet user protocol.
For the Windows Sockets protocol, the most suitable applications for socket development, but since the bottom of the network communication is socket based, so almost all applications can be recorded through the socket, which one may ask, Since the socket can be recorded, and so much agreement to do what, the price is also a thief expensive, in fact, the main reason is that the socket recording code is less readable, if the socket script is more readable, the truth there is no other agreement to appear the necessity.
For the mail, first of all depends on the way you receive e-mail, if you send and receive mail through the Web page, there is no doubt that you choose the protocol to choose the HTTP protocol, if you through the mail client, such as Outlook, Foxmail and so on, you need to choose different protocols according to the operation, For example email you may want to choose SMTP, receive mail you may need to choose POP3.
Telnet, SSH Select RTE Protocol (SSH does not know is not, pending research).