1. Installation and configuration
1.1 Download AirtestIDE
Official website: https://airtest.netease.com/
Select the download version, and download the corresponding installation package according to your computer version.
Unzip the file, enter the installation directory, find AirtestIDE.exe, double-click to start.
1.2 Download Airtest third-party library
Install python first, and install the Airtest third-party library requires python version <3.7 , currently I am using 3.6.3
Then install pip
Install airtest and poco via pip
pip install airtest
pip install poco
After the installation is complete, you can check whether the installation is successful through the pip list
1.3 csv
Since it is necessary to read and write csv files through python, this third-party library is required. It can also be installed through pip, but python 3.6.3 supports csv by default.
You can check whether the installation is successful through pip list. For specific use, you can view this blog post .
1.4 Configuration environment
Open Airtest IDE and configure the corresponding python environment.
2. Tutorial
2.1 Connecting Devices
Open AirtestIDE, connect the device
2.2 run
"File" is mainly used for a series of script file operations, such as new, open, save and save, etc.
We open the script we wrote, and "Run" is used to run a series of operations of the script
We can also open the report directory here.