AirtestProject/Airtest

★ 9,676⑂ 0

UI Automation Framework for Games and Apps

About AirtestProject/Airtest

AirtestProject/Airtest is an open-source project on GitHub, mainly written in Python. UI Automation Framework for Games and Apps It currently holds 9,676 stars and 0 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

Git Homed tracks it on the Automation Agent Trending board and on the AI Automation Agent Trending list.

GitHub Repository Details

Repository AirtestProject/Airtest · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

Airtest · Build status

Cross-Platform UI Automation Framework for Games and Apps

跨平台的UI自动化框架,适用于游戏和App (中文版点这里)

image

Features

Get started from airtest homepage

Supported Platforms

Installation

Use pip to install the Airtest python library.

pip install -U airtest

On MacOS/Linux platform, you need to grant adb execute permission.

# for mac
cd {your_python_path}/site-packages/airtest/core/android/static/adb/mac

for linux

cd {your_python_path}/site-packages/airtest/core/android/static/adb/linux

chmod +x adb

Download AirtestIDE from our homepage if you need to use the GUI tool.

Documentation

You can find the complete Airtest documentation on readthedocs.

Examples

Airtest aims at providing platform-independent API so that you can write automated cases once and run it on multiple devices and platforms.

1. Using connect_device API you can connect to any android/iOS device or windows application. 1. Then perform simulated input to automate your game or app. 1. DO NOT forget to make assertions of the expected result.

from airtest.core.api import *

connect an android phone with adb

init_device("Android")

or use connect_device api

connect_device("Android:///")

install("path/to/your/apk") start_app("package_name_of_your_apk") touch(Template("image_of_a_button.png")) swipe(Template("slide_start.png"), Template("slide_end.png")) assert_exists(Template("success.png")) keyevent("BACK") home() uninstall("package_name_of_your_apk")

For more detailed info, please refer to Airtest Python API reference or take a look at API code

Running `.air` cases from CLI

Using AirtestIDE, you can easily create automated cases as `.air` directories. Airtest CLI provides the possibility to execute cases on different host machines and target device platforms without using AirtestIDE itself.

# run cases targeting on Android phone connected to your host machine via ADB
airtest run "path to your .air dir" --device Android:///

run cases targeting on Windows application whose title matches Unity.*

airtest run "path to your .air dir" --device "Windows:///?title_re=Unity.*"

generate HTML report after running cases

airtest report "path to your .air dir"

or use as a python module

python -m airtest run "path to your .air dir" --device Android:///

Try running provided example case: `airtest/playground/test_blackjack.air` and see Usage of CLI. Here is a multi-device runner sample.

Contribution

Pull requests are very welcome.

Thanks

Thanks for all these great works that make this project better.

GitHub Stars & Activity

9,676Stars
0Forks
0Open issues
PythonLanguage

GitHub Popularity

GitHub stars9,676
Forks0
Open issues0
Primary languagePython
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related GitHub Projects

1

langgenius / dify

Python★ 162,246⑂ 0
→
2

harry0703 / MoneyPrinterTurbo

Python★ 147,111⑂ 0
→
3

Panniantong / Agent-Reach

Python★ 116,468⑂ 0
→
4

D4Vinci / Scrapling

Python★ 107,481⑂ 0
→
5

mvanhorn / last30days-skill

Python★ 78,936⑂ 0
→
6

apache / airflow

Python★ 47,789⑂ 0
→
7

feder-cr / Jobs_Applier_AI_Agent

Python★ 32,712⑂ 0
→
8

FujiwaraChoki / MoneyPrinterV2

Python★ 32,647⑂ 0
→

More Trending Repositories