mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-07 15:31:23 +08:00
change: update docs
This commit is contained in:
@@ -8,7 +8,13 @@
|
||||
"android": [
|
||||
{
|
||||
"serial": "$device",
|
||||
"log_on": true
|
||||
"log_on": true,
|
||||
"adb_server_host": "localhost",
|
||||
"adb_server_port": 5037,
|
||||
"uia2_ip": "localhost",
|
||||
"uia2_port": 6790,
|
||||
"uia2_server_package_name": "io.appium.uiautomator2.server",
|
||||
"uia2_server_test_package_name": "io.appium.uiautomator2.server.test"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -16,6 +22,7 @@
|
||||
{
|
||||
"name": "启动抖音",
|
||||
"android": {
|
||||
"os_type": "android",
|
||||
"actions": [
|
||||
{
|
||||
"method": "app_terminate",
|
||||
@@ -33,7 +40,7 @@
|
||||
"params": "抖音",
|
||||
"options": {
|
||||
"max_retry_times": 5,
|
||||
"offset": [
|
||||
"tap_offset": [
|
||||
0,
|
||||
-50
|
||||
]
|
||||
@@ -57,6 +64,7 @@
|
||||
{
|
||||
"name": "点击放大镜",
|
||||
"android": {
|
||||
"os_type": "android",
|
||||
"actions": [
|
||||
{
|
||||
"method": "tap_xy",
|
||||
@@ -64,9 +72,7 @@
|
||||
0.9,
|
||||
0.08
|
||||
],
|
||||
"options": {
|
||||
|
||||
}
|
||||
"options": {}
|
||||
},
|
||||
{
|
||||
"method": "sleep",
|
||||
@@ -78,13 +84,12 @@
|
||||
{
|
||||
"name": "输入账号名称",
|
||||
"android": {
|
||||
"os_type": "android",
|
||||
"actions": [
|
||||
{
|
||||
"method": "input",
|
||||
"params": "$ups",
|
||||
"options": {
|
||||
|
||||
}
|
||||
"options": {}
|
||||
},
|
||||
{
|
||||
"method": "sleep",
|
||||
@@ -96,13 +101,12 @@
|
||||
{
|
||||
"name": "点击搜索",
|
||||
"android": {
|
||||
"os_type": "android",
|
||||
"actions": [
|
||||
{
|
||||
"method": "tap_ocr",
|
||||
"params": "搜索",
|
||||
"options": {
|
||||
|
||||
}
|
||||
"options": {}
|
||||
},
|
||||
{
|
||||
"method": "sleep",
|
||||
@@ -113,14 +117,16 @@
|
||||
},
|
||||
{
|
||||
"name": "端到端采集",
|
||||
"loops": 5,
|
||||
"android": {
|
||||
"os_type": "android",
|
||||
"actions": [
|
||||
{
|
||||
"method": "tap_ocr",
|
||||
"params": "直播中",
|
||||
"options": {
|
||||
"ignore_NotFoundError": true,
|
||||
"index": -1
|
||||
"index": -1,
|
||||
"ignore_NotFoundError": true
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -139,8 +145,7 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"loops": 5
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -10,8 +10,14 @@
|
||||
"android": [
|
||||
{
|
||||
"serial": "$device",
|
||||
"log_on": true,
|
||||
"adb_server_host": "localhost",
|
||||
"adb_server_port": 5037,
|
||||
"uia2": true,
|
||||
"log_on": true
|
||||
"uia2_ip": "localhost",
|
||||
"uia2_port": 6790,
|
||||
"uia2_server_package_name": "io.appium.uiautomator2.server",
|
||||
"uia2_server_test_package_name": "io.appium.uiautomator2.server.test"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -19,6 +25,7 @@
|
||||
{
|
||||
"name": "app_launch 以及 ui_foreground_app equal 断言",
|
||||
"android": {
|
||||
"os_type": "android",
|
||||
"actions": [
|
||||
{
|
||||
"method": "app_launch",
|
||||
@@ -42,6 +49,7 @@
|
||||
{
|
||||
"name": "home 以及 swipe_to_tap_app 默认配置",
|
||||
"android": {
|
||||
"os_type": "android",
|
||||
"actions": [
|
||||
{
|
||||
"method": "home"
|
||||
@@ -61,6 +69,7 @@
|
||||
{
|
||||
"name": "处理弹窗 close_popups 默认配置 以及 ui_ocr exists 断言",
|
||||
"android": {
|
||||
"os_type": "android",
|
||||
"actions": [
|
||||
{
|
||||
"method": "close_popups",
|
||||
@@ -80,6 +89,7 @@
|
||||
{
|
||||
"name": "【直播】feed头像或卡片进房 swipe_to_tap_texts 自定义配置",
|
||||
"android": {
|
||||
"os_type": "android",
|
||||
"actions": [
|
||||
{
|
||||
"method": "swipe_to_tap_texts",
|
||||
@@ -112,6 +122,7 @@
|
||||
{
|
||||
"name": "sleep 10s",
|
||||
"android": {
|
||||
"os_type": "android",
|
||||
"actions": [
|
||||
{
|
||||
"method": "sleep",
|
||||
@@ -123,9 +134,10 @@
|
||||
{
|
||||
"name": "【直播】swipe 自定义配置 以及 back",
|
||||
"android": {
|
||||
"os_type": "android",
|
||||
"actions": [
|
||||
{
|
||||
"method": "swipe",
|
||||
"method": "swipe_coordinate",
|
||||
"params": [
|
||||
0.5,
|
||||
0.7,
|
||||
@@ -141,8 +153,7 @@
|
||||
"params": 5
|
||||
},
|
||||
{
|
||||
"method": "back",
|
||||
"options": {}
|
||||
"method": "back"
|
||||
},
|
||||
{
|
||||
"method": "sleep",
|
||||
@@ -154,6 +165,7 @@
|
||||
{
|
||||
"name": "【搜索】点击放大镜 tap_xy 自定义配置",
|
||||
"android": {
|
||||
"os_type": "android",
|
||||
"actions": [
|
||||
{
|
||||
"method": "tap_xy",
|
||||
@@ -175,6 +187,7 @@
|
||||
{
|
||||
"name": "【搜索】输入query词 input",
|
||||
"android": {
|
||||
"os_type": "android",
|
||||
"actions": [
|
||||
{
|
||||
"method": "input",
|
||||
@@ -193,6 +206,7 @@
|
||||
{
|
||||
"name": "【搜索】点击搜索按钮 tap_ocr 自定义配置",
|
||||
"android": {
|
||||
"os_type": "android",
|
||||
"actions": [
|
||||
{
|
||||
"method": "tap_ocr",
|
||||
@@ -211,6 +225,7 @@
|
||||
{
|
||||
"name": "选择直播页签 tap_ocr 默认配置",
|
||||
"android": {
|
||||
"os_type": "android",
|
||||
"actions": [
|
||||
{
|
||||
"method": "tap_ocr",
|
||||
@@ -227,6 +242,7 @@
|
||||
{
|
||||
"name": "【生活服务】进入直播间 tap_xy",
|
||||
"android": {
|
||||
"os_type": "android",
|
||||
"actions": [
|
||||
{
|
||||
"method": "tap_xy",
|
||||
@@ -246,6 +262,7 @@
|
||||
{
|
||||
"name": "【生活服务】点击货架商品 tap_ocr 自定义配置",
|
||||
"android": {
|
||||
"os_type": "android",
|
||||
"actions": [
|
||||
{
|
||||
"method": "tap_cv",
|
||||
@@ -267,6 +284,7 @@
|
||||
{
|
||||
"name": "app_terminate 以及 ui_foreground_app not_equal 断言",
|
||||
"android": {
|
||||
"os_type": "android",
|
||||
"actions": [
|
||||
{
|
||||
"method": "app_terminate",
|
||||
@@ -290,6 +308,7 @@
|
||||
{
|
||||
"name": "home 以及 swipe_to_tap_app 自定义配置",
|
||||
"android": {
|
||||
"os_type": "android",
|
||||
"actions": [
|
||||
{
|
||||
"method": "home"
|
||||
@@ -300,7 +319,7 @@
|
||||
"options": {
|
||||
"max_retry_times": 5,
|
||||
"interval": 1,
|
||||
"offset": [
|
||||
"tap_offset": [
|
||||
0,
|
||||
-50
|
||||
]
|
||||
@@ -316,6 +335,7 @@
|
||||
{
|
||||
"name": "处理弹窗 close_popups 自定义配置 以及 ui_ocr exists 断言",
|
||||
"android": {
|
||||
"os_type": "android",
|
||||
"actions": [
|
||||
{
|
||||
"method": "close_popups",
|
||||
@@ -338,6 +358,7 @@
|
||||
{
|
||||
"name": "返回主界面,并打开本地时间戳",
|
||||
"android": {
|
||||
"os_type": "android",
|
||||
"actions": [
|
||||
{
|
||||
"method": "home"
|
||||
@@ -366,7 +387,9 @@
|
||||
},
|
||||
{
|
||||
"name": "screeshot 以及 sleep_random",
|
||||
"loops": 3,
|
||||
"android": {
|
||||
"os_type": "android",
|
||||
"actions": [
|
||||
{
|
||||
"method": "screenshot",
|
||||
@@ -380,8 +403,7 @@
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"loops": 3
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
{
|
||||
"name": "启动抖音",
|
||||
"harmony": {
|
||||
"os_type": "harmony",
|
||||
"actions": [
|
||||
{
|
||||
"method": "app_terminate",
|
||||
@@ -24,9 +25,7 @@
|
||||
{
|
||||
"method": "swipe_to_tap_app",
|
||||
"params": "com.ss.hm.ugc.aweme",
|
||||
"options": {
|
||||
|
||||
}
|
||||
"options": {}
|
||||
},
|
||||
{
|
||||
"method": "home"
|
||||
@@ -36,7 +35,7 @@
|
||||
"params": "抖音",
|
||||
"options": {
|
||||
"max_retry_times": 5,
|
||||
"offset": [
|
||||
"tap_offset": [
|
||||
0,
|
||||
-50
|
||||
]
|
||||
@@ -60,6 +59,7 @@
|
||||
{
|
||||
"name": "点击放大镜",
|
||||
"harmony": {
|
||||
"os_type": "harmony",
|
||||
"actions": [
|
||||
{
|
||||
"method": "tap_xy",
|
||||
@@ -67,9 +67,7 @@
|
||||
0.9,
|
||||
0.08
|
||||
],
|
||||
"options": {
|
||||
|
||||
}
|
||||
"options": {}
|
||||
},
|
||||
{
|
||||
"method": "sleep",
|
||||
@@ -81,13 +79,12 @@
|
||||
{
|
||||
"name": "输入账号名称",
|
||||
"harmony": {
|
||||
"os_type": "harmony",
|
||||
"actions": [
|
||||
{
|
||||
"method": "input",
|
||||
"params": "$ups",
|
||||
"options": {
|
||||
|
||||
}
|
||||
"options": {}
|
||||
},
|
||||
{
|
||||
"method": "sleep",
|
||||
@@ -99,13 +96,12 @@
|
||||
{
|
||||
"name": "点击搜索",
|
||||
"harmony": {
|
||||
"os_type": "harmony",
|
||||
"actions": [
|
||||
{
|
||||
"method": "tap_ocr",
|
||||
"params": "搜索",
|
||||
"options": {
|
||||
|
||||
}
|
||||
"options": {}
|
||||
},
|
||||
{
|
||||
"method": "sleep",
|
||||
@@ -116,14 +112,16 @@
|
||||
},
|
||||
{
|
||||
"name": "端到端采集",
|
||||
"loops": 5,
|
||||
"harmony": {
|
||||
"os_type": "harmony",
|
||||
"actions": [
|
||||
{
|
||||
"method": "tap_ocr",
|
||||
"params": "直播中",
|
||||
"options": {
|
||||
"ignore_NotFoundError": true,
|
||||
"index": -1
|
||||
"index": -1,
|
||||
"ignore_NotFoundError": true
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -142,8 +140,7 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"loops": 5
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
{
|
||||
"name": "启动应用程序 app_launch",
|
||||
"ios": {
|
||||
"os_type": "ios",
|
||||
"actions": [
|
||||
{
|
||||
"method": "app_launch",
|
||||
@@ -35,6 +36,7 @@
|
||||
{
|
||||
"name": "home 以及 swipe_to_tap_app 默认配置",
|
||||
"ios": {
|
||||
"os_type": "ios",
|
||||
"actions": [
|
||||
{
|
||||
"method": "home"
|
||||
@@ -54,6 +56,7 @@
|
||||
{
|
||||
"name": "处理弹窗 close_popups 默认配置 以及 ui_ocr exists 断言",
|
||||
"ios": {
|
||||
"os_type": "ios",
|
||||
"actions": [
|
||||
{
|
||||
"method": "close_popups",
|
||||
@@ -73,6 +76,7 @@
|
||||
{
|
||||
"name": "【直播】feed头像或卡片进房 swipe_to_tap_texts 自定义配置",
|
||||
"ios": {
|
||||
"os_type": "ios",
|
||||
"actions": [
|
||||
{
|
||||
"method": "swipe_to_tap_texts",
|
||||
@@ -105,6 +109,7 @@
|
||||
{
|
||||
"name": "sleep 10s",
|
||||
"ios": {
|
||||
"os_type": "ios",
|
||||
"actions": [
|
||||
{
|
||||
"method": "sleep",
|
||||
@@ -116,9 +121,10 @@
|
||||
{
|
||||
"name": "【直播】swipe 自定义配置 以及 back",
|
||||
"ios": {
|
||||
"os_type": "ios",
|
||||
"actions": [
|
||||
{
|
||||
"method": "swipe",
|
||||
"method": "swipe_coordinate",
|
||||
"params": [
|
||||
0.5,
|
||||
0.7,
|
||||
@@ -134,8 +140,7 @@
|
||||
"params": 5
|
||||
},
|
||||
{
|
||||
"method": "back",
|
||||
"options": {}
|
||||
"method": "back"
|
||||
},
|
||||
{
|
||||
"method": "sleep",
|
||||
@@ -147,6 +152,7 @@
|
||||
{
|
||||
"name": "【搜索】点击放大镜 tap_xy 自定义配置",
|
||||
"ios": {
|
||||
"os_type": "ios",
|
||||
"actions": [
|
||||
{
|
||||
"method": "tap_xy",
|
||||
@@ -168,6 +174,7 @@
|
||||
{
|
||||
"name": "【搜索】输入query词 input",
|
||||
"ios": {
|
||||
"os_type": "ios",
|
||||
"actions": [
|
||||
{
|
||||
"method": "input",
|
||||
@@ -186,6 +193,7 @@
|
||||
{
|
||||
"name": "【搜索】点击搜索按钮 tap_ocr 自定义配置",
|
||||
"ios": {
|
||||
"os_type": "ios",
|
||||
"actions": [
|
||||
{
|
||||
"method": "tap_ocr",
|
||||
@@ -204,6 +212,7 @@
|
||||
{
|
||||
"name": "选择直播页签 tap_ocr 默认配置",
|
||||
"ios": {
|
||||
"os_type": "ios",
|
||||
"actions": [
|
||||
{
|
||||
"method": "tap_ocr",
|
||||
@@ -220,6 +229,7 @@
|
||||
{
|
||||
"name": "【生活服务】进入直播间 tap_xy",
|
||||
"ios": {
|
||||
"os_type": "ios",
|
||||
"actions": [
|
||||
{
|
||||
"method": "tap_xy",
|
||||
@@ -239,6 +249,7 @@
|
||||
{
|
||||
"name": "【生活服务】点击货架商品 tap_ocr 自定义配置",
|
||||
"ios": {
|
||||
"os_type": "ios",
|
||||
"actions": [
|
||||
{
|
||||
"method": "tap_cv",
|
||||
@@ -260,6 +271,7 @@
|
||||
{
|
||||
"name": "终止应用程序 app_terminate",
|
||||
"ios": {
|
||||
"os_type": "ios",
|
||||
"actions": [
|
||||
{
|
||||
"method": "app_terminate",
|
||||
@@ -275,6 +287,7 @@
|
||||
{
|
||||
"name": "home 以及 swipe_to_tap_app 自定义配置",
|
||||
"ios": {
|
||||
"os_type": "ios",
|
||||
"actions": [
|
||||
{
|
||||
"method": "home"
|
||||
@@ -285,7 +298,7 @@
|
||||
"options": {
|
||||
"max_retry_times": 5,
|
||||
"interval": 1,
|
||||
"offset": [
|
||||
"tap_offset": [
|
||||
0,
|
||||
-50
|
||||
]
|
||||
@@ -301,6 +314,7 @@
|
||||
{
|
||||
"name": "处理弹窗 close_popups 自定义配置 以及 ui_ocr exists 断言",
|
||||
"ios": {
|
||||
"os_type": "ios",
|
||||
"actions": [
|
||||
{
|
||||
"method": "close_popups",
|
||||
@@ -323,6 +337,7 @@
|
||||
{
|
||||
"name": "返回主界面,并打开本地时间戳",
|
||||
"ios": {
|
||||
"os_type": "ios",
|
||||
"actions": [
|
||||
{
|
||||
"method": "home"
|
||||
@@ -351,7 +366,9 @@
|
||||
},
|
||||
{
|
||||
"name": "screeshot 以及 sleep_random",
|
||||
"loops": 3,
|
||||
"ios": {
|
||||
"os_type": "ios",
|
||||
"actions": [
|
||||
{
|
||||
"method": "screenshot",
|
||||
@@ -365,8 +382,7 @@
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"loops": 3
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user