mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-07 05:02:47 +08:00
28 lines
592 B
Go
28 lines
592 B
Go
package uixt
|
|
|
|
import (
|
|
"bytes"
|
|
|
|
"github.com/httprunner/httprunner/v5/uixt/option"
|
|
"github.com/httprunner/httprunner/v5/uixt/types"
|
|
)
|
|
|
|
// current implemeted device: IOSDevice, AndroidDevice, HarmonyDevice
|
|
type IDevice interface {
|
|
UUID() string
|
|
NewDriver() (driver IDriver, err error)
|
|
|
|
Setup() error
|
|
Teardown() error
|
|
|
|
Install(appPath string, opts ...option.InstallOption) error
|
|
Uninstall(packageName string) error
|
|
|
|
ListPackages() ([]string, error)
|
|
|
|
GetPackageInfo(packageName string) (types.AppInfo, error)
|
|
ScreenShot() (*bytes.Buffer, error)
|
|
// TODO: remove?
|
|
LogEnabled() bool
|
|
}
|