UI test automation tool AirTest study notes

I. Introduction

Airtest Project is an internal tool Netease game development team and a Century of UI automated testing tools.

AirtestIDE is a cross-platform, multi-terminal (windows, web, Android, ios, game) UI Automation Test Editor.

Support Airtest framework based on image recognition, applies to all Android and Windows games.

Poco support framework based UI controls to search for Unity3d, Cocos2d and Android, ios, web

Second, build environment

(1), AirtestIDE download the installation package, download address: http: //airtest.netease.com/changelog.html, you can download the latest version

(2), start, start the required login account, you can skip directly

(3), plug the tester, the interface selection device ID is right, the CONNECT

 

 (4), provides shortcuts on the left bar to get started

 

Second, the engineering steps

(1), python install and configure the environment variables, engineering environment using python 2.7, Download: https://www.python.org/downloads/release/python-2713/ select Windows x86-64 MSI installer, check the installation the "pip"

(2), python install and configure the environment variables, engineering environment using python 2.7, Download: https://www.python.org/downloads/release/python-2713/ select Windows x86-64 MSI installer, check the installation the "pip"

Check the python is installed successfully, execute the command cmd: python --version pip --version
 

 

 (3), adb environment:

Sdk full version of Android https://developer.android.google.cn/studio download sdk tools; and the platform-tools, tools adding environment variables;

 

(4), and installation airtest pocoui, open command line command

pip install airtest
Under python2.7, numpy installation may be a problem, you can install pip install numpy == 1.16.0 Manual
pip install pocoui
Or specify the installation version
pip install airtest==1.0.27
pip install pocoui==1.0.77
Address or select the image to install
1.16.0 -i install numpy == PIP https://pypi.douban.com/simple (if installed numpy problem, manually install version)
pip install airtest==1.0.27 -i https://pypi.douban.com/simple
pip install pocoui==1.0.77 -i https://pypi.douban.com/simple
(5), python editor crack tutorial: https://www.cnblogs.com/pupilheart/p/9734124.html
(6) to get the code works
New Folder, cmd command to execute the designated path: T clone [email protected] : test_group / AutoTest / airtestUI.git

 

6, single-step debugging

Poco by the IDE and airtest acquisition element, completion of step debugging

 

 

 

Guess you like

Origin www.cnblogs.com/guaijieya/p/11731315.html