Airtest applet UI automation

1. Download and install AirtestIDE-win-1.2.14, official download address: Airtest Project

Two, airtest is mainly divided into

  1. Airtest auxiliary window (based on image recognition)
  2. Poco auxiliary window (based on application UI structure hierarchy)
  3. Selenium auxiliary window (operation browser)
  4. Script editing and log viewing window
  5. Device window (can be connected to Android/iOS real machine or emulator and windows window, etc.)

3. Use steps

Connect the mobile phone to the computer with a data cable, and the device information will appear in the device window

Click connect to connect to the phone, and the phone page will appear

Use the Airtest auxiliary window to edit the foot, click the touch on the left, and perform "screenshot operation" on the part you want to operate 

The following display will appear:

Four,

Run the airtest script in pycharm:

pip install airtest and poco library

pip install airtest

pip install pocoui

Open the written script file in pycharm, and paste the code in the script editor into pycharm

At this time, if you want to run the code in pycharm correctly, you need to copy the picture to the folder of the pycharm code, otherwise you cannot find the corresponding path

 

Guess you like

Origin blog.csdn.net/Joyce_xiaobaibai/article/details/131192625