Understanding interface test

This section's get to know about the interface test, first of all look at some definitions of terms

1, the server program.

Modern software development, mostly development network program. Network program and is usually divided into server and client programs. Like we often use search engines, search engine we open the browser live phone APP, the browser or mobile phone APP is a client program, when we enter a search keyword in the client, this information will be sent to service the end of the program, and then do the server program to retrieve information, search results and then sent back to the client program so that we can see the search results, the goal is to test interface test server program.

2, graphical interface

This is a client application available to users in the interface. Standard name for a user interface (ui, user interface) and graphical user interface (GUI, Graphical User Interface). The difference is the interface to the UI refers to a variety of users, such as the Linux operating system command line interface is also a kind of UI, and refers to the graphical interface GUI

3, data

When we operate UI, the client program will want us to send commands to the server program encapsulated packet data. Encapsulated into what type of packet, depending on the data network in which a layer of the package, we will explain in detail later in the hierarchical and network data packets. When the server or the data processed instruction completes, the server will give the user looks into the data packets also closed, back to the client. The client then unlock the package, the user data to see inside. Then the packet process of reconciliation package.

4, tools and scripts

When we use a graphical interface to do manual testing, you can not script or tool, the client program will complete packet data. Do the test, so the test object is the entire program, that is, we put together client server program as a black box. And the interface test is different, we want to test an object into a server program. In other words, we put the server program as a black box. Then, and then work tools or scripts to simulate a client program, like the client to do the same work and data packet transmission work, and then after receiving the information returned from the server, the client program like the same to the bag to untie , the data presented. This code is used to simulate a part of what we do not measure the practice, we usually referred MOCK

Guess you like

Origin www.cnblogs.com/wangxing8282/p/11469010.html