Joke Collection Website - Mood Talk - Tell me how to conduct interface testing in my work.

Tell me how to conduct interface testing in my work.

Hello, I'm Daejeon. Today, I will share with you how to conduct interface testing at work.

Protocols and tools

Interface testing generally uses HTTP protocol, but there are other protocols. This paper first introduces the interface test of HTTP protocol.

What tools are used for interface testing? Usually the postman or Jmeter. This tool is actually equivalent to a client, which can simulate various HTTP requests initiated by users, send the request data to the server, get corresponding results, and verify whether the results are consistent with expectations.

What are the core steps?

1, get the interface information

1, with interface documentation, very simple, just look at it.

2. For example, some companies don't have interface documents. What should I do at this time?

You need to use the bag grabbing tool to assist yourself, that is, the bag grabbing tool: Charles or Fiddler. Get the server address, access mode of each interface, input and output parameters. At this time, you need to pay attention to some details, the specific meaning of parameters, the scope of parameters, and what the return value means. Ask development if you should. Don't be shy.

Second, business scenario analysis

Proactively understand the direction of business processes and how data flows. In order not to miss the test, write the test case or test point of the interface, and finally test the interface on the tool.

This is the way I do interface testing at present, and I hope it will help you.