mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-19 21:39:31 +08:00
28 lines
715 B
Go
28 lines
715 B
Go
package uixt
|
|
|
|
import (
|
|
"github.com/httprunner/httprunner/v5/pkg/uixt/option"
|
|
)
|
|
|
|
// current implemeted device: IOSDevice, AndroidDevice, HarmonyDevice
|
|
type IDevice interface {
|
|
Init() error // init android device
|
|
UUID() string // ios udid or android serial
|
|
LogEnabled() bool
|
|
|
|
// TODO: add ctx to NewDriver
|
|
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)
|
|
|
|
// Teardown() error
|
|
}
|
|
|
|
func NewDriver(device IDevice, opts ...option.DriverOption) (driver IWebDriver, err error) {
|
|
return
|
|
}
|