autool/utils_ios/scripts/runtest.sh
2026-06-17 19:44:18 +08:00

26 lines
991 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# go-ios 常用命令
# 启动Fastbot
ios runtest --bundle-id=com.tpshos.FastbotRunner.xctrunner \
--test-runner-bundle-id=com.tpshos.FastbotRunner.xctrunner \
--udid=00008101-0016601022C0001E \
--xctest-config=FastbotRunner.xctest \
--env BUNDLEID=com.apple.AppStore \
--env duration=10 \
--env throttle=1000
# 启动WebDriverAgent
ios runtest --bundle-id=com.tpshos.WebDriverAgentRunner.xctrunner \
--test-runner-bundle-id=com.tpshos.WebDriverAgentRunner.xctrunner \
--udid=00008101-0016601022C0001E \
--xctest-config=WebDriverAgentRunner.xctest \
--env USE_PORT=8100 \
--env USE_IP=127.0.0.1
# pcap制定bundle抓包
# ios pcap [options] [--pid=<processID>] [--process=<processName>] [--bundle=<bundleID>] \
# [--allmark] [--direction] [--debug] [--output=<dir>] [--udid=<udid>]
# go-ios所有命令不指定udid时默认使用第一个设备多个设备时务必指定udid
ios pcap --bundle=com.apple.AppStore --udid=00008101-0016601022C0001E