mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-09 22:44:05 +08:00
change: update tests
This commit is contained in:
@@ -13,6 +13,29 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"teststeps": [
|
"teststeps": [
|
||||||
|
{
|
||||||
|
"name": "查看时间戳",
|
||||||
|
"ios": {
|
||||||
|
"actions": [
|
||||||
|
{
|
||||||
|
"method": "home"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"method": "app_terminate",
|
||||||
|
"params": "com.apple.mobilesafari"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"method": "swipe_to_tap_app",
|
||||||
|
"params": "timestamp",
|
||||||
|
"max_retry_times": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"method": "sleep",
|
||||||
|
"params": 3
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "启动抖音",
|
"name": "启动抖音",
|
||||||
"ios": {
|
"ios": {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//go:build localtest
|
//go:build !localtest
|
||||||
|
|
||||||
package uitest
|
package uitest
|
||||||
|
|
||||||
@@ -16,6 +16,11 @@ func TestWDALog(t *testing.T) {
|
|||||||
}).
|
}).
|
||||||
SetIOS(hrp.WithLogOn(true), hrp.WithPort(8700), hrp.WithMjpegPort(8800)),
|
SetIOS(hrp.WithLogOn(true), hrp.WithPort(8700), hrp.WithMjpegPort(8800)),
|
||||||
TestSteps: []hrp.IStep{
|
TestSteps: []hrp.IStep{
|
||||||
|
hrp.NewStep("查看时间戳").
|
||||||
|
IOS().
|
||||||
|
Home().
|
||||||
|
AppTerminate("com.apple.mobilesafari").
|
||||||
|
SwipeToTapApp("timestamp", hrp.WithMaxRetryTimes(5)).Sleep(3),
|
||||||
hrp.NewStep("启动抖音").
|
hrp.NewStep("启动抖音").
|
||||||
IOS().
|
IOS().
|
||||||
Home().
|
Home().
|
||||||
|
|||||||
Reference in New Issue
Block a user