mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-11 18:11:21 +08:00
24 lines
374 B
Go
24 lines
374 B
Go
//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)
|
|
}
|