feat: integrage ios performance monitor

This commit is contained in:
debugtalk
2022-10-10 14:06:31 +08:00
parent 405f9fb553
commit ae49259eff
14 changed files with 150 additions and 19 deletions

View File

@@ -6,6 +6,10 @@
},
"ios": [
{
"perf_options": {
"sys_cpu": true,
"sys_mem": true
},
"port": 8700,
"mjpeg_port": 8800,
"log_on": true

View File

@@ -3,7 +3,10 @@ config:
variables:
app_name: 抖音
ios:
- port: 8700
- perf_options:
sys_cpu: true
sys_mem: true
port: 8700
mjpeg_port: 8800
log_on: true
teststeps:

View File

@@ -14,7 +14,15 @@ func TestIOSDouyinLive(t *testing.T) {
WithVariables(map[string]interface{}{
"app_name": "抖音",
}).
SetIOS(hrp.WithLogOn(true), hrp.WithWDAPort(8700), hrp.WithWDAMjpegPort(8800)),
SetIOS(
hrp.WithLogOn(true),
hrp.WithWDAPort(8700),
hrp.WithWDAMjpegPort(8800),
hrp.WithPerfOptions(
hrp.WithPerfSystemCPU(true),
hrp.WithPerfSystemMem(true),
),
),
TestSteps: []hrp.IStep{
hrp.NewStep("启动抖音").
IOS().