Knowledge and skills that interface testers need to master

One, first understand what the interface is

The software interface refers to the classes or functions that are specifically responsible for transmitting or receiving data between different modules and processing them. (Rather than referring to the transmitted data!!)

Two, what is the interface test

Interface testing is to test whether the interface is correct by passing data to the interface. For example: a QQ login function interface, we need to pass the QQ number and password to verify whether the login interface is correct and can be used.

Three, what knowledge should be mastered for interface testing

1. Understand the business logic interaction between the system and various internal components;

2. Understand the I/O of the interface (input/output: input and output);

3. Understand the basic content of the protocol, including: communication principles, three-way handshake, commonly used protocol types, message composition, data transmission methods, common status codes, URL composition, etc.;

4. Commonly used interface testing tools, such as: apipost, jmeter, loadrunner, soapUI, etc.;

5. Basic database operation commands (check data storage, extract test data, etc.);

6. Common character types, such as char, varchar, text, int, float, datatime, string, etc.;

4. How to learn these skills?

1. Business interaction logic between systems: through many channels and methods such as demand documents, flowcharts, mind maps, and communication;

2. Protocol: Recommend the book "Illustrated http", the content is vivid, and it can be regarded as an entry-level book. Others include "Illustrated TCP, IP", etc.;

3. Interface testing tools: these tools from Baidu, and then you will find a lot of teaching blogs, related problem solutions, and some tool-based books. Of course, choosing the right book is very important;

4. Database operation commands: learning websites (W3C, rookie tutorials), teaching blogs, and some database-related books, entry-level recommendations: "mysql must know must know", "oracle PL/SQL must know must know", etc.

5. Zhihu, major technical forums such as Baidu and csdn are good helpers for you to learn

Five, interface testing is divided into two categories

1. Test with tools manually

The commonly used tools are apipost, jmeter, postman, etc. The bloggers use the domestic interface testing tool apipsot.

Knowledge and skills that interface testers need to master

Manual test method: Prepare the input data package by capturing the package or other methods (such as looking at the document), and then use the package sending tool to send the data to the server interface, and then verify the return value.

2. Automated interface testing

Above, everyone has understood the process of manual interface testing.

Then the next step is to write some interface tests into scripts, place them locally (on your own computer), manually trigger them to execute these tests in batches, and automatically verify the returned results.

Here is the recommended tool.

Knowledge and skills that interface testers need to master

If you are a zero foundation, it is recommended that you use apipost or jmeter, neither of which can be used without you having any code knowledge.

I generally use the process test function of apipost. After the written interface, click to start, and then the interface can be automatically tested.

If you have a programming foundation, you can consider using python+requests+pytest/robotframework for interface testing. If python+requests is used, python+locust can be used for performance testing. You can also not use locust, as long as you have mastered the data-driven ideas mentioned above and cooperated with some automation framework development foundations, you can also make the interface test reusable in other performance testing tools. Of course, this is complicated, and I will talk about it later. Right.

Download link of interface test tool apipost:https://www.apipost.cn/?dt=20201101

Guess you like

Origin blog.51cto.com/12246704/2546123
Recommended