Two laws of choosing LoadRunner protocol
determining the type of protocol used when recording a performance test script is often a problem that can cause misunderstanding. Many peers who have just come into touch with performance testing often take the decision to determine the protocol based on the language of development, resulting in a script that cannot be replayed successfully.
Two laws of choosing LoadRunner protocol
Before choosing the LoadRunner protocol, we must first understand the architecture of the software system under test, know which nodes the system consists of, and how each node communicates. Then choose the LoadRunner protocol according to the principle.
1. The client and its direct connection to the server communication method prevail.
Because LoadRunner's vuser simulates the client, VUser, like the real client, deals with the server closest to it, regardless of the functionality of the system as a whole. For example, a Web mail system, although it is the implementation of the mail function, but as the client's IE directly connected to the Web server instead of mail server, in this case we only consider the IE and Web server communication mode, that is, the HTTP protocol.
2. The matching principle consists of high protocol to low Protocol.
After determining the network protocol of the system under test, the choice of LoadRunner VUser should be better than the actual network protocol matching, such as cannot match, LoadRunner VUser will drop a protocol layer again match.
For example, if you encounter a network application, its application protocol is very special, in the LoadRunner do not find the right protocol, then lower a level, with Winsock to record, it is certainly no problem. Since almost all network transmissions are based on TCP protocol or UDP protocol, the socket Protocol is the protocol at this level. But because the socket protocol level is too low, the recorded things are difficult to understand, are sockets, Port, data and other things. So, try to use high-level protocols to record, so you can read.
Two laws of choosing LoadRunner protocol