Skip to main content

No project description provided

Project description

Wetest OS Platform

Group WeTest PRs Welcome python>=3.7 release (latest version)

简介

Wetest OS Platform是一种创建跨设备连接的轻量化python框架,目前支持Android和iOS设备。在Wetest OS Platform的帮助下,您无需再手动管理设备到本机的端口资源,可以有效避免端口冲突、端口被清理等情况。

可以轻松与Wetest的其他仓库联合使用:

使用

安装

pip3 install wetest-osplatform --upgrade --extra-index-url https://mirrors.tencent.com/repository/pypi/tencent_pypi/simple

Android连接

# 以往与Android设备连接,需要使用adb forward进行端口映射
$ adb forward tcp:<port> tcp:<port>
sock = socket.socket()
sock.connect(("127.0.0.1", port))

# 本项目的连接无需进行端口映射
from wetest.osplatform import android_conn
sock = android_conn(addr=port)

iOS连接

# 以往与iOS设备连接,需要使用tidevice relay进行端口映射
$ tidevice relay <port> <port>
sock = socket.socket()
sock.connect(("127.0.0.1", port))

# 本项目的连接无需进行端口映射
from wetest.osplatform import ios_conn
sock = ios_conn(port=port)

更多示例

更多示例请参考测试文件

pytest -s ./tests/test.py

项目结构

os-platform
├── tests
│   └── test.py             # test cases
└── wetest
    └── osplatform
        ├── __init__.py
        └── conn.py         # Android/iOS/local connection

版本记录

本项目的版本变更记录详见CHANGELOG

作者信息&致谢

Tencent WeTest Team

特别感谢以下开源项目的启发:

Project details


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

wetest_osplatform-0.0.1.dev1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file wetest_osplatform-0.0.1.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for wetest_osplatform-0.0.1.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 7c0b6d011209884bad644a317547bb774a6fe94c294681d0c8494a1f1a35ffe6
MD5 ba1118084819366e35726d67db8333d2
BLAKE2b-256 2347bc9bc3257cfd1cd9dc324998459316d5f9b02f3fe554364d4a49926b771e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page