Airtest installation, configuration, use tutorial

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.

img

Unzip the file, enter the installation directory, find AirtestIDE.exe, double-click to start.

img

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

insert image description here

Then install pip

insert image description here

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

insert image description here

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 .
insert image description here

1.4 Configuration environment

Open Airtest IDE and configure the corresponding python environment.

insert image description here

2. Tutorial

2.1 Connecting Devices

Open AirtestIDE, connect the device

img

2.2 run

"File" is mainly used for a series of script file operations, such as new, open, save and save, etc.

top01

We open the script we wrote, and "Run" is used to run a series of operations of the script

top02
We can also open the report directory here.
insert image description here

Guess you like

Origin blog.csdn.net/baobei0921/article/details/131779515