change: remove unused UI APIs

This commit is contained in:
debugtalk
2022-12-25 19:05:14 +08:00
parent 287498f098
commit 53fbfd3ef0
24 changed files with 190 additions and 4497 deletions

View File

@@ -12,7 +12,7 @@ import (
func TestAndroidDouYinLive(t *testing.T) {
testCase := &hrp.TestCase{
Config: hrp.NewConfig("通过 feed 头像进入抖音直播间").
SetAndroid(uixt.WithAdbLogOn(true), uixt.WithSerialNumber("2d06bf70")),
SetAndroid(uixt.WithAdbLogOn(true)),
TestSteps: []hrp.IStep{
hrp.NewStep("启动抖音").
Android().
@@ -36,13 +36,6 @@ func TestAndroidDouYinLive(t *testing.T) {
},
}
if err := testCase.Dump2JSON("demo_android_douyin_live.json"); err != nil {
t.Fatal(err)
}
if err := testCase.Dump2YAML("demo_android_douyin_live.yaml"); err != nil {
t.Fatal(err)
}
runner := hrp.NewRunner(t).SetSaveTests(true)
err := runner.Run(testCase)
if err != nil {

View File

@@ -6,9 +6,16 @@
},
"ios": [
{
"perf_options": {
"sys_cpu": true,
"sys_mem": true,
"fps": true,
"network": true
},
"port": 8700,
"mjpeg_port": 8800,
"log_on": true
"log_on": true,
"xctest_bundle_id": "com.gtf.wda.runner.xctrunner"
}
]
},
@@ -63,8 +70,8 @@
"actions": [
{
"method": "tap_ocr",
"params": "购物",
"identifier": "点击购物"
"params": "商城",
"identifier": "点击商城"
},
{
"method": "sleep",

View File

@@ -24,6 +24,7 @@ func TestWDALog(t *testing.T) {
uixt.WithIOSPerfNetwork(true),
uixt.WithIOSPerfFPS(true),
),
uixt.WithXCTest("com.gtf.wda.runner.xctrunner"),
),
TestSteps: []hrp.IStep{
hrp.NewStep("启动抖音").