Skip to main content

GAutomator Python Client

安装

支持python版本: 3.6+

  1. 使用pypi从公网pypi源安装
python3 -m pip install -U gautomator
  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 
  1. 直接从源码安装
git clone 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>)

Metadata

Release files for gautomator 1.0.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for gautomator 1.0.13
File Interpreter ABI Platform
gautomator-1.0.13-py3-none-any.whl Python 3 none any Details

Release files / gautomator-1.0.13-py3-none-any.whl

Download URL gautomator-1.0.13-py3-none-any.whl
Size 26.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e3debe05a9e7dbe4298140452f847bea29d2cec289ecdd9df3bc6c650c8c4a0b
BLAKE2b-256 checksum
How to use checksums
5308a29bcea45813d7baf3b6905865ef4766a771ea661d7700b2f2b26b2b9b8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.13

Release history Release notifications | RSS feed

This release

1.0.13 This release

1 release file

1.0.12

1 release file

1.0.11

1 release file

1.0.10

1 release file

1.0.9

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page