UI Test Automation Framework for Games and Apps on Android/iOS/Windows/Linux/Web
Project description
Airobots
整合了Airtest Project和RobotFramework框架的方法。
另外整合了HTTPRunner,实现一个框架同时支持Android、IOS、WEB、API的自动化测试及性能测试(HTTPRunner提供的基于Locust的压力生成器,不带资源监控)。
安装框架依赖包, 执行
pip install airobots -i https://mirrors.aliyun.com/pypi/simple
windows系统下, 如果安装失败, 可能需要安装C++编译工具: visualcppbuildtools_full.exe, 具体错误请留意控制台报错信息。
运行WEB测试,需要安装ChromeDriver,请自行下载安装,或安装node之后执行 npm install -g chromedriver 安装
执行测试
Allure 报告(推荐)
airobots -t api ./API/Case/Path/ --alluredir=Results # API测试
airobots -t web ./Web/Case/Path/ --alluredir=Results # Web测试
airobots -t android ./Android/Case/Path/ --alluredir=Results # Android测试
airobots -t ios ./IOS/Case/Path/ --alluredir=Results # IOS测试
HTML 报告
airobots -t api ./API/Case/Path/ --html=Results/report.html # API测试
airobots -t web ./Web/Case/Path/ --html=Results/report.html # Web测试
airobots -t android ./Android/Case/Path/ --html=Results/report.html # Android测试
airobots -t ios ./IOS/Case/Path/ --html=Results/report.html # IOS测试
查看Allure报告
allure serve ./Results
安装Allure
Linux
sudo apt-add-repository ppa:qameta/allure
sudo apt-get update
sudo apt-get install allure
Mac OS X
对于Mas OS,可通过Homebrew进行自动安装
brew install allure
Windows
对于Windows,可从Scoop命令行安装程序获得Allure。
要安装Allure,请下载并安装Scoop,然后在Powershell中执行
scoop install allure
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
airobots-1.1.3.tar.gz
(7.5 kB
view details)
File details
Details for the file airobots-1.1.3.tar.gz.
File metadata
- Download URL: airobots-1.1.3.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92bc56357666b2214f609d4fba8bf0fb00447a3101cd4c9c62d73e188af632c5
|
|
| MD5 |
d1c5c3020648d4b03ea612665d7d61c3
|
|
| BLAKE2b-256 |
1df049a83704ba02004309f7779e7e7e14c72cb31ba992134dadb4ebc1c05ad3
|