mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-15 02:26:23 +08:00
add log for FindUI
This commit is contained in:
@@ -1 +1 @@
|
||||
v4.3.3.2306081354
|
||||
v4.3.3.2306081644
|
||||
@@ -141,6 +141,7 @@ func (s *veDEMUIService) FindUI(uiTypes []string, byteSource []byte, options ...
|
||||
log.Error().Err(err).Msg("getUIResult failed")
|
||||
return
|
||||
}
|
||||
log.Info().Interface("ui detection result", uiResultMap).Msg("ui detection successful")
|
||||
|
||||
var uiResult []Box
|
||||
var ok bool
|
||||
|
||||
@@ -656,11 +656,9 @@ func runStepMobileUI(s *SessionRunner, step *TStep) (stepResult *StepResult, err
|
||||
|
||||
// wait for screenshot actions done
|
||||
uiDriver.Wg.Wait()
|
||||
// save screenshot after each step, except the step ends with sleep
|
||||
if len(actions) > 0 && actions[len(actions)-1].Method != uixt.CtlSleep {
|
||||
if err := uiDriver.SaveScreenShot(builtin.GenNameWithTimestampMS("step_%d_") + step.Name); err != nil {
|
||||
log.Error().Err(err).Str("step", step.Name).Msg("take screenshot failed on step finished")
|
||||
}
|
||||
// save screenshot after each step
|
||||
if err := uiDriver.SaveScreenShot(builtin.GenNameWithTimestampMS("step_%d_") + step.Name); err != nil {
|
||||
log.Error().Err(err).Str("step", step.Name).Msg("take screenshot failed on step finished")
|
||||
}
|
||||
|
||||
// save attachments
|
||||
|
||||
Reference in New Issue
Block a user