- AirtestIDE download and install
AirtestIDE have to help you integrate all the environmental, comes with recording script column, automatically generated script editor also comes with built simulator.
Download the official website address is Airtest: http://airtest.netease.com/
AirtestIDE use the tutorial documentation: http://airtest.netease.com/docs/docs_AirtestIDE-zh_CN/index.html
Airtest want to use the API, develop more advanced features, you can download airtest the first third-party dependencies python:
install Airtest PIP
# Airtest python download third-party dependencies
PIP install poco
# Download Android app ui test library pocoui Airtest provided by
BREW Cask install Android-sdk
# install Android-sdk, details link: https://www.cnblogs.com/ summary-2017 / p / 8073225.html
- The use airtest
Application testing Android, Windows and iOS AirtestIDE currently supported.
- Connect your Android phone
Connect your computer and Android phone via ADB, you can start to debug Android applications. ADB is the official Google Android debugging tools provided. AirtestIDE dependent Andrews devices to communicate with ADB.
Open AirtestIDE, connection by following these steps:
-
Open the phone
设置-开发者选项-USB调试
switch, reference Andrews official documents . ( Developer mode, tap the phone number several times version ) -
Click in the AirtestIDE equipment panel
Refresh ADB
button to see the device on the connection. -
If the device does not show, try
Restart ADB
, if not, with reference to the FAQ . -
Click on the corresponding device
Connect
button to initialize. -
After the phone connection is successful, you can see a mirror image of your phone display, and real-time operation in AirtestIDE in.
-
Windows connection window
For testing Windows desktop applications, we usually test a window. AirtestIDE can embed test window, script recording and convenient debugging.
- Click in the AirtestIDE device panel
Windows-框选游戏窗口
button. - Move the mouse over to the window of the program under test, a green side of the corresponding window frame.
- Clicking the left button of the window corresponding to the embedded AirtestIDE.
-
Connected iOS devices
IOS now supports connection, you can view the operation documentation for more information.
-
Record automated scripts
- After connecting the equipment, now we can start to record automated test scripts.
- First analog input, starting with the most commonly used to simulate a click ---- based on image recognition begins.
- Click on Airtest auxiliary window
录制
button, and then as you operate the phone on the device window, will automatically generate the code in the code window.