Experience with airTest testing tools

introduction

Due to historical reasons, the company does not have relevant professional testers. Our test is basically the legendary human flesh test. This kind of testing is easy to find obvious bugs, but it is easy to let go of some hidden bugs. Most of these bugs will appear during the user's use, causing certain user experience problems, and even loss of user trust. We need to conduct automated and repeated tests on the page in order to expect more feedback and find those hidden bugs to a greater extent. Specially recommend a test tool

The automated test of the page is actually to let the machine simulate the human to conduct repeated tests.
My accumulation in this area is limited, so I started looking for information. After looking for a lot of information, I found [ AirTest ], and was attracted by his function introduction video introduction. You can experience it.
It really confirms the sentence: Netease produced, must be a boutique. This is produced by NetEase. Its original intention is for game UI and function testing. Now it has developed into a tool that can perform various tests. It is quite convenient to use, even for those who don’t understand it at all. Just read the beginner’s guide and follow the steps. It is also possible to get started. Directly connected to the entrance -----> Quick Start

Get AirTest
  1. The function of automatically recording the screen to identify and generate test codes. When I am an entry-level novice, after a certain period of time, I can cooperate with the automatically generated test codes and write some of my own code logic. A complete copy can be written by myself. The test code that is willing to run is hotly released. But one thing, if you need partners who can add your own logic more conveniently, you need to be familiar with python3. Airtest's webpage test is realized by integrating selenium function. The schematic diagram is as follows
    airtest-selenium schematic diagram
    .

  2. The following is the functional code that I tested the webpage 300 times and realized clicking and sliding the page. During this process, pay attention to turn off the browser's caching function (open the debugging tool in chrome, switch to the network tab, check the Disable Cache function, and disable the cache), so that the meaning of the simulation test can be more realistically revealed.
    Local test case code

Experience after use

This tool produced by NetEase brings us closer to automated testing, and can easily write some automated tests to help our programmers obtain UI-related self-test capabilities. It can make us more confident in the code we write and enhance the ability to analyze problems. It is worth recommending.

Guess you like

Origin blog.csdn.net/qinmin1/article/details/88996777