mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-13 08:59:44 +08:00
change: remove unused UI APIs
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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("启动抖音").
|
||||
|
||||
Reference in New Issue
Block a user