change: group environments

This commit is contained in:
debugtalk
2022-10-11 10:52:05 +08:00
parent a8aab0e905
commit c81c5841ee
8 changed files with 33 additions and 19 deletions

View File

@@ -13,13 +13,6 @@ func TestAndroidDouYinLive(t *testing.T) {
Config: hrp.NewConfig("通过 feed 头像进入抖音直播间").
SetAndroid(hrp.WithAdbLogOn(true), hrp.WithSerialNumber("2d06bf70")),
TestSteps: []hrp.IStep{
hrp.NewStep("打开网页").
Android().
Home().
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", "网页打开失败"),
hrp.NewStep("启动抖音").
Android().
Home().