A must for advanced testing, these 5 automated testing tools for http interfaces are really delicious

There are many tools that can do interface automation testing on the market now, and there are a lot of them, which makes people dazzled. When we choose the corresponding implementation method, whether it is a framework system or a mature and stable tool, the core purpose is to expect the introduced technology to achieve the best effect with the lowest investment .

Then we choose based on:

  • One is the minimum investment.
  • The second is the best effect.

First, look at the best effect

To achieve this point, before doing interface testing, as testers, we need to be very clear about the core purpose of our choice of testing tools. Usually there may be the following:

This is not only a description of the full-process automated interface test implementation scheme, but also a list of conventional interface tests
  1. Developer debugging interface
  2. Testers intervene in testing in advance to discover program defects as early as possible
  3. Testers return to the system interface to ensure that the background logic is flawless and reduce the risk of version iteration

In cases 1 or 2, in the actual project development process, the free time is not fixed and scattered. According to this expectation, we expect the interface testing tool to be more convenient, and can quickly configure the interface test script or use case. Such interface automation testing tools include:

1、Postman

Advantages of Postman tools
  • clear graphical interface
  • Combined with interface operations, the interface request information can be quickly configured, and various types of interface configurations and data configurations can be provided.
  • There are rich response assertions to facilitate quick verification of the interface

Postman meets the basic common interface tests, but there are still some deficiencies, which will be discussed below.

Shortcomings of Postman tools
  • Can't connect to database
  • Cannot carry out common code encapsulation and introduce third-party plug-ins

2、J meter

Advantages of Jmeter Tools
  • C/S architecture, tools based on java implementation, easier to configure, more biased towards performance testing;
  • JMeter provides BeanShell programming capabilities, which can write more flexible test scripts;
  • JMeter provides more advanced extension capabilities, allowing you to define and extend new protocol support;
  • JMeter's community is relatively complete and provides rich protocol support;
Disadvantages of Jmeter:
  • The script lacks flexibility, and the test report is more biased towards performance;
  • Insufficient support for fully automated implementations.

3、SoapUI

Advantages of SoapUI tool
  • SoapUI supports REST and SOAP services;
  • Test scripts can be easily generated with one click using drag-and-drop and can lead to test cases in code form;
  • Powerful data-driven testing using data from files and databases;
  • Scripts can be easily reused;
  • mock services using RESTful mocks;
Inadequacies of SoapUI
  • Need to crack;
  • SoapUI takes up a lot of PC resources.

4、Airpost

Similar to postman, non-open source.

-------------------------------------------------- ---------Gorgeous dividing line------------------------------------- -------------------------

Finally, we come to situation 3: testers return to the system interface to ensure that the background logic is flawless and reduce the risk of version iteration.

In this case, we need to choose a relatively complete automated testing framework and execute it continuously. There are mainly the following requirements for this implementation form:

  • sustainable operation;
  • High maintainability;
  • Rich assertions and reports;

Here are some code forms to implement the interface automation testing framework or visual interface testing platform:

5. Code implementation form:

Requires code skills, flexible functions, and can be customized according to your own needs, so as to achieve a relatively complete test point coverage for the interface

Java:testng+git+jenkins+httpclient+maven+poi+jsonpath

Python:pytest+git+jenkins+requests

6. Visual interface automation test platform:

Testers can operate with simple training, just like using business function systems in general, it is convenient and flexible to organize, maintain and run test cases, and provide rich reports. Two open source tool platforms are provided here.

EasyTest:https://github.com/lixiaofeng1993/EasyTest

Visual interface automation testing platform implemented by Django: https://github.com/githublitao/api_automation_test

Second, look at the minimum investment

Through the explanation in the above part, I believe that everyone has a certain recognition of which tool can achieve the effect. Next, let's go back and see our other basis, the least investment.

The investment includes two parts: one is the learning cost investment, and the other is the capital investment of the tool itself.

1. From the perspective of learning costs

The learning cost of a complete interface automation testing system is definitely higher than that of independent tools such as Postman and jmeter.

However, independent tools such as Postman and jmeter are used for interface testing, and there is not much difference in learning difficulty between them.

At present, learning videos have been released for some testing tools, which further reduces everyone's learning costs. Please see:

Postman learning video Baidu network disk, I also share these learning videos at the end of the article

2. Judging from the capital investment of the tool itself

Some testing tools have relatively powerful functions, but they are not open source. In the selection process, personal suggestions are more inclined to use open source tools.

Third, use the table to finally summarize

Based on the above description, we use the following table to make a small summary, please see:

​Finally, combine the above table to choose the interface automation testing tool that suits your needs. Come on, I wish you a monthly salary of 10k+ even if you study by yourself.

If my blog is helpful to you, if you like my blog content, please "Like", "Comment", "Favorite" with one click!

Small effort: free sharing of supporting resources

Finally, I would like to thank everyone who has read my article carefully. Seeing the fans’ growth and attention all the way, there is always a need for reciprocity. Although it is not a very valuable thing, you can take it away if you need it:

加入我的软件测试交流群:110685036免费获取~(同行大佬一起学术交流,每晚都有大佬直播分享技术知识点)

Software testing interview applet

The software test question bank maxed out by millions of people! ! ! Who is who knows! ! ! The most comprehensive quiz mini program on the whole network, you can use your mobile phone to do the quizzes, on the subway or on the bus, roll it up!

The following interview question sections are covered:

1. Basic theory of software testing, 2. web, app, interface function testing, 3. network, 4. database, 5. linux

6. web, app, interface automation, 7. performance testing, 8. programming basics, 9. hr interview questions, 10. open test questions, 11. security testing, 12. computer basics

How to get it for free:

ÃÃÃÃÃá â€â€â€â€â áÃÃÃÃÃÃÃÃÃÃÃæÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃèÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃæÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃèÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÿÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃð

Guess you like

Origin blog.csdn.net/m0_60166861/article/details/131024481