Airobots
全端自动化测试框架Airobots,整合了Airtest、RobotFramework、Selenium、Appium、HTTPRunner、Locust框架的方法,从而实现一套框架,能够进行全端的测试,统一执行入口和报告的输出。
本质上,Airobots可看成是以上优秀开源测试框架的集成库,整合后以实现方法的共用,比如在Selenium和Appium中使用Airtest的图像识别功能。实现一个框架同时支持Android、IOS、WEB、API的自动化测试及性能测试(HTTPRunner提供的基于Locust的压力生成器),并且统一了测试报告输出格式,使用美观大气的Allure作为测试报告,可详细记录测试过程日志、测试步骤和截图。
安装框架依赖包, 执行
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
Metadata
Release files for airobots 1.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| airobots-1.2.2.tar.gz | 8.4 kB | Without provenance | Details for airobots-1.2.2.tar.gz |
Release files / airobots-1.2.2.tar.gz
| Download URL | airobots-1.2.2.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d4062de540ab404f55f07b11f0a886f02459e0e4b764b67b28bbd2d5c3b520c
|
|
BLAKE2b-256 checksum How to use checksums |
c30950147e9fb68aac14ba8c5b788af06be2c75d4fb4cc4e954257476cade9b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2
|
Security for airobots 1.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.