A ui automated testing tool for SyberOS
Project description
元心智能移动操作系统UI自动化测试框架
- 适用与SyberOS5.0及以上版本,包括5.5及以上的安卓兼容版本。
- 推荐适用环境:python3.8+ubuntu1804/MacOS。python3版本过高或过低可能存在依赖安装失败的问题。
安装
1.更新pip工具至最新版本:
python3.8 -m pip install --upgrade pip
2.安装uitestrunner-syberos:
python3.8 -m pip install uitestrunner-syberos
如果在中国大陆下载太慢的话可以换源,在命令后面添加参数
-i https://mirrors.aliyun.com/pypi/simple/
快速开始
1.准备设备。确保设备已经连接至电脑,并开启USB调试模式。通过ssh或adb/cdb等方式登录设备。执行命令以开启UI自动化测试服务guiautotestd:
guiautotest-ctl enable
reboot
- ssh用户名密码默认为
developer,密码为system。- 每台设备只需要执行一次即可。执行后设备会自动重启。
2.连接及测试。SyberOS设备的USB端口一般默认为rndis模式,设备地址为192.168.100.100,guiautotestd服务端口为10008。通过浏览器访问http://192.168.100.100:10008,即可打开UIMonitor界面如下图:
- UIMonitor工具用于以可视化的方式查看设备上的UI元素的布局信息,以及各个元素的详细属性信息和定位信息等。同时也支持一定的远程控制功能,如屏幕的点击、滑动等操作。
- 部分SyberOS的设备可能根据项目要求的不同而使用了其它USB端口模式,如adb、cdb等。如果是此种情况应通过adb/cdb工具的端口转发功能将guiautotestd的服务端口映射到本地。命令示例如下:
adb forward tcp:10008 tcp:10008此时则改由通过http://127.0.0.1:10008访问UIMonitor。
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file uitestrunner_syberos-2.19.6.tar.gz.
File metadata
- Download URL: uitestrunner_syberos-2.19.6.tar.gz
- Upload date:
- Size: 61.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2958072070b1b051e8b491a0ec5d66431bcf3bdbacd8b3c999e0db496157bdc2
|
|
| MD5 |
dd3e5786f3fe9f906d6f89950f628eaf
|
|
| BLAKE2b-256 |
5ec369973a2729d94d15c61efa8d7083a6a3ec0c80cfcae18c42192b9859ce67
|
Provenance
The following attestation bundles were made for uitestrunner_syberos-2.19.6.tar.gz:
Publisher:
python-publish.yml on jinzhe0094/uitestrunner_syberos
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
uitestrunner_syberos-2.19.6.tar.gz -
Subject digest:
2958072070b1b051e8b491a0ec5d66431bcf3bdbacd8b3c999e0db496157bdc2 - Sigstore transparency entry: 1360860504
- Sigstore integration time:
-
Permalink:
jinzhe0094/uitestrunner_syberos@62a0535fe6c1bbc62a89381aac706f6ca08d3cb1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jinzhe0094
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@62a0535fe6c1bbc62a89381aac706f6ca08d3cb1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file uitestrunner_syberos-2.19.6-py3-none-any.whl.
File metadata
- Download URL: uitestrunner_syberos-2.19.6-py3-none-any.whl
- Upload date:
- Size: 61.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1babf87bc19b2d4a1673d7bcfd68b446ac0d5c180c414b99715495230d69730
|
|
| MD5 |
8132c22e906e4d1629feef918e256a64
|
|
| BLAKE2b-256 |
a37a6da387d0f54fec1846b7f95636623af23d5169897b6cef629ad4ae3d8800
|
Provenance
The following attestation bundles were made for uitestrunner_syberos-2.19.6-py3-none-any.whl:
Publisher:
python-publish.yml on jinzhe0094/uitestrunner_syberos
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
uitestrunner_syberos-2.19.6-py3-none-any.whl -
Subject digest:
e1babf87bc19b2d4a1673d7bcfd68b446ac0d5c180c414b99715495230d69730 - Sigstore transparency entry: 1360860671
- Sigstore integration time:
-
Permalink:
jinzhe0094/uitestrunner_syberos@62a0535fe6c1bbc62a89381aac706f6ca08d3cb1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jinzhe0094
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@62a0535fe6c1bbc62a89381aac706f6ca08d3cb1 -
Trigger Event:
push
-
Statement type: