mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-08 09:19:41 +08:00
test: add unittest
This commit is contained in:
@@ -1 +1 @@
|
|||||||
v5.0.0-beta-2503080031
|
v5.0.0-beta-2503112212
|
||||||
|
|||||||
@@ -50,6 +50,11 @@ func TestDriverExt(t *testing.T) {
|
|||||||
point, _ := driverExt.FindScreenText("hello")
|
point, _ := driverExt.FindScreenText("hello")
|
||||||
t.Log(point)
|
t.Log(point)
|
||||||
|
|
||||||
|
err := driverExt.TapByCV(
|
||||||
|
option.WithScreenShotUITypes("deepseek_send"),
|
||||||
|
option.WithScope(0.8, 0.5, 1, 1))
|
||||||
|
assert.Nil(t, err)
|
||||||
|
|
||||||
// call IDriver methods
|
// call IDriver methods
|
||||||
driverExt.GetDevice().Install("/path/to/app")
|
driverExt.GetDevice().Install("/path/to/app")
|
||||||
driverExt.GetDevice().GetPackageInfo("com.ss.android.ugc.aweme")
|
driverExt.GetDevice().GetPackageInfo("com.ss.android.ugc.aweme")
|
||||||
|
|||||||
Reference in New Issue
Block a user