No project description provided
Project description
GAutomator Python Client
安装
支持python版本: 3.6+
-
方法1:使用pip从公司的pypi源安装
python3 -m pip install -U gautomator -i https://mirrors.tencent.com/pypi/simple/ --extra-index-url https://mirrors.tencent.com/repository/pypi/tencent_pypi/simple
-
方法2:直接从源码安装
git@git.woa.com:CloudTesting/automation/GA-Python.git cd GA-Python python3 -m pip install -U -e .
使用
初始化
Android
from gautomator.gautomator import GAutomator
# 仅连接一台设备
ga = GAutomator(device_type="android")
# 连接多台设备
ga = GAutomator(device_type="android", udid="your_android_serial_number")
iOS
from gautomator.gautomator import GAutomator
# 仅连接一台设备
ga = GAutomator(device_type="ios")
# 连接多台设备
ga = GAutomator(device_type="ios", udid="your_ios_udid")
端口转发
from gautomator.gautomator import GAutomator
# 通过adb forward或idb relay进行端口转发
$ adb forward tcp:<port> tcp:27029
ga = GAutomator(device_type="local", udid="127.0.0.1", port=<port>)
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file gautomator-1.0.10-py3-none-any.whl
.
File metadata
- Download URL: gautomator-1.0.10-py3-none-any.whl
- Upload date:
- Size: 25.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64207d2fb9c82870f1da7159ffc4c472e9bf063473980857b654ac2ad1d6e4af |
|
MD5 | a0184b93be2f245d4ff0a4493256319b |
|
BLAKE2b-256 | 65789d79f32aafb6f6a04409d89f3e4c68f0dac645ea25780bb67b8f0a9e74d5 |