mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-06 07:57:27 +08:00
feat: add device status logging and extend DeviceStatus struct with new fields
This commit is contained in:
@@ -146,6 +146,13 @@ func (wd *WDADriver) Setup() error {
|
||||
return err
|
||||
}
|
||||
|
||||
wdaStatus, err := wd.Status()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
log.Info().Interface("status", wdaStatus).
|
||||
Msg("check WDA status")
|
||||
|
||||
// create new session
|
||||
if err := wd.InitSession(nil); err != nil {
|
||||
return errors.Wrap(code.DeviceHTTPDriverError, err.Error())
|
||||
|
||||
Reference in New Issue
Block a user