Interface pass-through


Interface test is to change the configuration file corresponding to real external business systems
can actually call interface requests we
look at the last business right, a failure a success


Normal real need to go over the FBI, but sometimes some of the interface can not finish, some of the test cases just need to keep block on the line


Some interfaces are passed directly through an external system
if we go through the processing system to give an external system, we generally give values external systems are only passing the normal value

 

Question: What is the pass-through?

Generally refers to the top of our data in the form of buf module to transmit through the bottom, the bottom only guarantee this will spread out buf, buf in particular not to care about what kind of data do not have to parse the specific content of buf.

       Specific point to two QQ chat client, for example

QQ represents a UI layer defines the structure of chat messages (including structural body text, text color, text font and character size information, etc.), when the QQ client sends information to the structure of the padding information, and then structure "to pressure" in buf, go to the bottom of the transfer, the underlying buf do not know what is in store, they do not care about is what, as long as the buf will be sent to the peer QQ on it. After receiving the peer buf QQ, the content of buf is converted to the structure, and then to resolve the UI layer structure can be obtained the specific chat information, thereby to display chat messages to the interface.


Network passthrough: Suppose s data through a network, this network is a inlet, an outlet is b, a data arrival at the s, s by the responsible for encapsulating a, such as the ip s data, a format to use Layer encapsulated throughout the network, all the Layer 2 for transmission to the B outlet, untied in the package, is reduced to the original ip s structure. For s, the adoption of this network, it does not change any of the structures and data, so for s, through this network is "transparent", this is the pass-through

paper transferred from the original article CSDN bloggers "lzx1216405192", following the CC 4.0 by-sa copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/lzx1216405192/article/details/90412506

Guess you like

Origin www.cnblogs.com/mlan/p/11417061.html