Basic usage and framework introduction of Automated Script AirTest

automation



Preface

Recently a friend asked me if I could help write a game automation script to free up his hands. I thought about it and found that there should be many auxiliary script production tools in my knowledge, such as button wizard, AutoJs, AirTest, etc. But I have never taken the time to seriously study an automated script framework. I looked through some information and planned to use AirTest to play with it. After all, it is implemented in Python and is easier to use.
I will post relevant learning materials below:
AirTest development documentation: link
AirTest IDE: link


1. What is Airtest?

At first I was skeptical about whether AirTest could meet my needs, until I read the development manual of AirTest. In the official document of Airtest, it is written that it is an automated testing tool based on image recognition: "We provide an open source framework Airtest, which can be very Intuitively find our target element on the current game screen through image recognition and operate it."

Some features that look cool:

Suitable for games and apps on Android and Windows.
Projects developed using Unity3d, Cocos2d or Android native App have great convenience in script production. Automated
script recording, you can achieve automated testing with just a sip of water.
Mobile phone clusters can be used for large-scale The supported platforms for automated testing
include Windows, Android and iOS.
The core members of the Airtest Project are Airtest and Poco, two major frameworks. They are both third-party libraries for Python, so scripts written using our tools are essentially ordinary Python. Scripts, you are free to introduce other Python libraries according to your needs.

2. Usage steps

https://i1bit.blog.csdn.net/article/details/105738212

Summarize

Guess you like

Origin blog.csdn.net/zyq880625/article/details/132544811