Files
httprunner/pkg/uixt/device.go
2025-02-07 15:16:13 +08:00

24 lines
571 B
Go

package uixt
import (
"github.com/httprunner/httprunner/v5/pkg/uixt/option"
)
// current implemeted device: IOSDevice, AndroidDevice, HarmonyDevice
type IDevice interface {
Setup() error
Teardown() error
UUID() string // ios udid or android serial
LogEnabled() bool
// TODO: remove
NewDriver(...option.DriverOption) (driverExt *DriverExt, err error)
Install(appPath string, opts ...option.InstallOption) error
Uninstall(packageName string) error
GetPackageInfo(packageName string) (AppInfo, error)
GetCurrentWindow() (windowInfo WindowInfo, err error)
}