feat: run Android UI automation with adb by default, add uixt.WithUIA2(true) option to use uiautomator2

This commit is contained in:
debugtalk
2022-12-26 21:57:47 +08:00
parent e26f79e326
commit 64f1a28605
11 changed files with 424 additions and 244 deletions

View File

@@ -12,7 +12,7 @@ import (
func TestAndroidDouYinLive(t *testing.T) {
testCase := &hrp.TestCase{
Config: hrp.NewConfig("通过 feed 头像进入抖音直播间").
SetAndroid(uixt.WithAdbLogOn(true)),
SetAndroid(uixt.WithUIA2(false), uixt.WithAdbLogOn(true)),
TestSteps: []hrp.IStep{
hrp.NewStep("启动抖音").
Android().