mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-02 14:29:44 +08:00
feat: integrage ios performance monitor
This commit is contained in:
@@ -6,6 +6,10 @@
|
||||
},
|
||||
"ios": [
|
||||
{
|
||||
"perf_options": {
|
||||
"sys_cpu": true,
|
||||
"sys_mem": true
|
||||
},
|
||||
"port": 8700,
|
||||
"mjpeg_port": 8800,
|
||||
"log_on": true
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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().
|
||||
|
||||
Reference in New Issue
Block a user