mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-27 18:41:33 +08:00
feat: add uixt tool press_button
This commit is contained in:
@@ -174,13 +174,15 @@ func (bs BatteryStatus) String() string {
|
||||
}
|
||||
}
|
||||
|
||||
// DeviceButton A physical button on an iOS device.
|
||||
// DeviceButton A physical button on a device.
|
||||
type DeviceButton string
|
||||
|
||||
const (
|
||||
DeviceButtonHome DeviceButton = "home"
|
||||
DeviceButtonVolumeUp DeviceButton = "volumeUp"
|
||||
DeviceButtonVolumeDown DeviceButton = "volumeDown"
|
||||
DeviceButtonEnter DeviceButton = "enter" // use "\n" for ios
|
||||
DeviceButtonBack DeviceButton = "back" // android only
|
||||
)
|
||||
|
||||
type NotificationType string
|
||||
|
||||
@@ -26,3 +26,7 @@ type AppLaunchRequest struct {
|
||||
type AppTerminateRequest struct {
|
||||
PackageName string `json:"packageName" binding:"required" desc:"The package name of the app to terminate"`
|
||||
}
|
||||
|
||||
type PressButtonRequest struct {
|
||||
Button DeviceButton `json:"button" binding:"required" desc:"The button to press. Supported buttons: BACK (android only), HOME, VOLUME_UP, VOLUME_DOWN, ENTER."`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user