Interface common sense understanding

1. network protocol refers to a collection between computers in a network communicate with each other to comply with the rules. You must use the same network protocol between different computers to communicate. There are common protocols: TCP / IP protocol, IPX / SPX protocol,
the NetBEUI protocol, which is the protocol of the transport layer, the interface is not a common measurement test protocol.
2. Protocol differentiated application-layer protocol and transport layer protocol like. HTTP protocol is an application layer object-oriented protocol.
About 3.http protocol:
HTTP protocol is the Hyper Text Transfer abbreviation Protocol (Hypertext Transfer Protocol) is used for the World Wide Web (WWW: World Wide Web) transmission between the server and local browser hypertext transfer protocol.
http protocol is a protocol based on object-oriented TCP / IP application layer protocol, due to its simple, fast way for distributed hypermedia information system.
HTTP protocol works on the client - server architecture on. Browser as an HTTP client URL that is WEB server sends all requests to the server via HTTP. Web server according to the received request, transmits the response information to the client.
HTTP protocol that a request sent from the client, the server responds to the last request and returns.
HTTP protocol includes data sent by the browser to the protocol request protocol sent by the server to follow the data server to the browser to follow. HTTP is believed to be as HTTP packets. Requester (client) HTTP packets
do request packet, the responder (server side) made in response message. HTTP word text message itself is composed of multiple rows of data.
4. The client sends a request to the server, to comply with different protocols such as: http / soap, if it is the http protocol, the request is http request.
When you enter this address in your browser http://example.com, "http" rule tells the browser and server communicate using HTTP
5.http protocol request method: get and post request
after the GET data submitted will be placed URL, in order? Segmentation URL and transmit data between the parameters & linked as: EditBook name = test1 & id = 123456 POST method is the data submitted in a HTTP packet body in?.
Data size GET submitted limited (because the browser to a URL length limited), and the data submitted by the POST method does not limit the
gET and POST request method request for acquiring data on the server different
when the gET method to submit data, will bring security problems, such as a login page to submit data via gET, the user name and password will be exposed in the URL, the page can be cached or if the other person access to this machine, you can remember from history
to get the user's account password record.
5. Interface understood:. A interfaces are typically two ways: one is the internal interface program, and the method of interaction between the main method between modules and the module, the internal program interfaces thrown. Another is the external interface, the program package to interface to an external system call.
b Test Interface API interface appreciated: between external systems and subsystems within the system, and the content of each interactive communication through the interface. Common data exchange. Stress test is to check the data exchange, transmission and control management process, and based
mutual dependency relations between the logical system.
6. Interface Test: mainly used to detect the point of interaction between the system and the system between the external and internal subsystems. Stress test is to check the exchange data, and control transfer process management, and the like each logical dependencies between systems
7.API tests usually involve: functional testing, load testing, run / error detection, security testing
8.API Some common protocols used in the test: HTTP, REST, SOAP, THRIFT and other
interface testing is recommended:
interface test code to be run in the integration and uat up, the code can continue to run up, that data is not dead
Interface and operating system service database is in operation, the database account permissions and code-independent. Own query interface inserted into the data in the database to write their sql, sql write their own process involves user permissions. uat user may have to apply for permission to
interface testing is important that the data assembled sustainable and run automated verification assertion here, and other functional tests as

 

Guess you like

Origin www.cnblogs.com/wbsbxh/p/12418872.html