change: update adb logs

This commit is contained in:
xucong053
2022-09-29 16:15:56 +08:00
committed by xucong053
parent eb9e3efe6c
commit b2cac25bd4
6 changed files with 227 additions and 5 deletions

View File

@@ -11,12 +11,12 @@ import (
func TestAndroidDouYinLive(t *testing.T) {
testCase := &hrp.TestCase{
Config: hrp.NewConfig("通过 feed 头像进入抖音直播间").
SetAndroid(hrp.WithAdbLogOn(true)),
SetAndroid(hrp.WithAdbLogOn(true), hrp.WithSerialNumber("2d06bf70")),
TestSteps: []hrp.IStep{
hrp.NewStep("打开网页").
Android().
Home().
AppTerminate("com.google.android.apps.chrome.Main").Sleep(1). // 关闭已运行的抖音,确保启动抖音后在「抖音」首页
AppTerminate("com.google.android.apps.chrome.Main").Sleep(1).
SwipeToTapApp("Chrome", hrp.WithMaxRetryTimes(5)).TapByOCR("搜索").Input("https://gtftask.bytedance.com/local-time").TapByOCR("前往").Sleep(5).
Validate().
AssertOCRExists("1664", "网页打开失败"),