mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-07 08:49:37 +08:00
refactor: move hrp/ to root folder
This commit is contained in:
23
pkg/uixt/screenshot_test.go
Normal file
23
pkg/uixt/screenshot_test.go
Normal file
@@ -0,0 +1,23 @@
|
||||
//go:build localtest
|
||||
|
||||
package uixt
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestGetScreenShot(t *testing.T) {
|
||||
setupAndroidAdbDriver(t)
|
||||
|
||||
fileName := "test_screenshot"
|
||||
_, path, err := driverExt.GetScreenShot(fileName)
|
||||
if err != nil {
|
||||
t.Fatalf("GetScreenShot failed: %v", err)
|
||||
}
|
||||
|
||||
if path == "" {
|
||||
t.Fatal("screenshot path is empty")
|
||||
}
|
||||
|
||||
t.Logf("screenshot saved at: %s", path)
|
||||
}
|
||||
Reference in New Issue
Block a user