mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-07 14:43:33 +08:00
optimize hrp summary popup info
This commit is contained in:
@@ -59,15 +59,12 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "处理青少年弹窗 tap ocr 以及 ui_ocr exists 断言",
|
||||
"name": "处理弹窗 close_popups 默认配置 以及 ui_ocr exists 断言",
|
||||
"android": {
|
||||
"actions": [
|
||||
{
|
||||
"method": "tap_ocr",
|
||||
"params": "我知道了",
|
||||
"options": {
|
||||
"ignore_NotFoundError": true
|
||||
}
|
||||
"method": "close_popups",
|
||||
"options": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -317,14 +314,14 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "处理青少年弹窗 tap ocr 以及 ui_ocr exists 断言",
|
||||
"name": "处理弹窗 close_popups 自定义配置 以及 ui_ocr exists 断言",
|
||||
"android": {
|
||||
"actions": [
|
||||
{
|
||||
"method": "tap_ocr",
|
||||
"params": "我知道了",
|
||||
"method": "close_popups",
|
||||
"options": {
|
||||
"ignore_NotFoundError": true
|
||||
"max_retry_times": 3,
|
||||
"interval": 2
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
//go:build localtest
|
||||
|
||||
package uitest
|
||||
|
||||
import (
|
||||
@@ -36,12 +34,9 @@ func TestAndroidExpertTest(t *testing.T) {
|
||||
Home().
|
||||
SwipeToTapApp("$app_name").
|
||||
Sleep(10),
|
||||
hrp.NewStep("处理青少年弹窗 tap ocr 以及 ui_ocr exists 断言").
|
||||
hrp.NewStep("处理弹窗 close_popups 默认配置 以及 ui_ocr exists 断言").
|
||||
Android().
|
||||
TapByOCR(
|
||||
"我知道了",
|
||||
uixt.WithIgnoreNotFoundError(true),
|
||||
).
|
||||
ClosePopups().
|
||||
Validate().
|
||||
AssertOCRExists("推荐", "进入抖音失败"),
|
||||
// 直播赛道
|
||||
@@ -118,11 +113,11 @@ func TestAndroidExpertTest(t *testing.T) {
|
||||
Home().
|
||||
SwipeToTapApp("$app_name", uixt.WithMaxRetryTimes(5), uixt.WithInterval(1), uixt.WithOffset(0, -50)).
|
||||
Sleep(10),
|
||||
hrp.NewStep("处理青少年弹窗 tap ocr 以及 ui_ocr exists 断言").
|
||||
hrp.NewStep("处理弹窗 close_popups 自定义配置 以及 ui_ocr exists 断言").
|
||||
Android().
|
||||
TapByOCR(
|
||||
"我知道了",
|
||||
uixt.WithIgnoreNotFoundError(true),
|
||||
ClosePopups(
|
||||
uixt.WithMaxRetryTimes(3),
|
||||
uixt.WithInterval(2),
|
||||
).
|
||||
Validate().
|
||||
AssertOCRExists("推荐", "进入抖音失败"),
|
||||
@@ -194,12 +189,9 @@ func TestIOSExpertTest(t *testing.T) {
|
||||
Home().
|
||||
SwipeToTapApp("$app_name").
|
||||
Sleep(10),
|
||||
hrp.NewStep("处理青少年弹窗 tap ocr 以及 ui_ocr exists 断言").
|
||||
hrp.NewStep("处理弹窗 close_popups 默认配置 以及 ui_ocr exists 断言").
|
||||
IOS().
|
||||
TapByOCR(
|
||||
"我知道了",
|
||||
uixt.WithIgnoreNotFoundError(true),
|
||||
).
|
||||
ClosePopups().
|
||||
Validate().
|
||||
AssertOCRExists("推荐", "进入抖音失败"),
|
||||
// 直播赛道
|
||||
@@ -275,11 +267,11 @@ func TestIOSExpertTest(t *testing.T) {
|
||||
Home().
|
||||
SwipeToTapApp("$app_name", uixt.WithMaxRetryTimes(5), uixt.WithInterval(1), uixt.WithOffset(0, -50)).
|
||||
Sleep(10),
|
||||
hrp.NewStep("处理青少年弹窗 tap ocr 以及 ui_ocr exists 断言").
|
||||
hrp.NewStep("处理弹窗 close_popups 自定义配置 以及 ui_ocr exists 断言").
|
||||
IOS().
|
||||
TapByOCR(
|
||||
"我知道了",
|
||||
uixt.WithIgnoreNotFoundError(true),
|
||||
ClosePopups(
|
||||
uixt.WithMaxRetryTimes(3),
|
||||
uixt.WithInterval(2),
|
||||
).
|
||||
Validate().
|
||||
AssertOCRExists("推荐", "进入抖音失败"),
|
||||
|
||||
@@ -52,15 +52,12 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "处理青少年弹窗 tap ocr 以及 ui_ocr exists 断言",
|
||||
"name": "处理弹窗 close_popups 默认配置 以及 ui_ocr exists 断言",
|
||||
"ios": {
|
||||
"actions": [
|
||||
{
|
||||
"method": "tap_ocr",
|
||||
"params": "我知道了",
|
||||
"options": {
|
||||
"ignore_NotFoundError": true
|
||||
}
|
||||
"method": "close_popups",
|
||||
"options": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -302,14 +299,14 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "处理青少年弹窗 tap ocr 以及 ui_ocr exists 断言",
|
||||
"name": "处理弹窗 close_popups 自定义配置 以及 ui_ocr exists 断言",
|
||||
"ios": {
|
||||
"actions": [
|
||||
{
|
||||
"method": "tap_ocr",
|
||||
"params": "我知道了",
|
||||
"method": "close_popups",
|
||||
"options": {
|
||||
"ignore_NotFoundError": true
|
||||
"max_retry_times": 3,
|
||||
"interval": 2
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user