mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-07 16:40:50 +08:00
refactor: rename ios_driver to ios_wda_driver
This commit is contained in:
@@ -1 +1 @@
|
|||||||
v5.0.0+2412081117
|
v5.0.0+2412081145
|
||||||
|
|||||||
@@ -68,12 +68,15 @@ func (ad *adbDriver) runShellCommand(cmd string, args ...string) (output string,
|
|||||||
if cmd == "screencap" {
|
if cmd == "screencap" {
|
||||||
resp, err := ad.adbClient.ScreenCap()
|
resp, err := ad.adbClient.ScreenCap()
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
driverResult.ResponseBody = "OMITTED"
|
||||||
return string(resp), nil
|
return string(resp), nil
|
||||||
}
|
}
|
||||||
return "", errors.Wrap(err, "adb screencap failed")
|
return "", errors.Wrap(err, "adb screencap failed")
|
||||||
}
|
}
|
||||||
|
|
||||||
return ad.adbClient.RunShellCommand(cmd, args...)
|
output, err = ad.adbClient.RunShellCommand(cmd, args...)
|
||||||
|
driverResult.ResponseBody = strings.TrimSpace(output)
|
||||||
|
return output, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ad *adbDriver) NewSession(capabilities Capabilities) (sessionInfo SessionInfo, err error) {
|
func (ad *adbDriver) NewSession(capabilities Capabilities) (sessionInfo SessionInfo, err error) {
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ type DriverResult struct {
|
|||||||
Success bool `json:"success"`
|
Success bool `json:"success"`
|
||||||
ResponseStatus int `json:"response_status"`
|
ResponseStatus int `json:"response_status"`
|
||||||
ResponseDuration int64 `json:"response_duration(ms)"` // ms
|
ResponseDuration int64 `json:"response_duration(ms)"` // ms
|
||||||
ResponseBody string `json:"response_body"`
|
ResponseBody string `json:"response_body,omitempty"`
|
||||||
Error string `json:"error,omitempty"`
|
Error string `json:"error,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user