refactor: results dir

This commit is contained in:
debugtalk
2022-12-16 00:24:35 +08:00
parent ee68b954fb
commit 455724dd1b
12 changed files with 24 additions and 26 deletions
+1 -2
View File
@@ -552,7 +552,6 @@ func runStepMobileUI(s *SessionRunner, step *TStep) (stepResult *StepResult, err
if err != nil {
return
}
uiDriver.StartTime = s.startTime
defer func() {
attachments := make(map[string]interface{})
@@ -598,7 +597,7 @@ func runStepMobileUI(s *SessionRunner, step *TStep) (stepResult *StepResult, err
// take snapshot
screenshotPath, err := uiDriver.ScreenShot(
fmt.Sprintf("%d_validate_%d", uiDriver.StartTime.Unix(), time.Now().Unix()))
fmt.Sprintf("validate_%d", time.Now().Unix()))
if err != nil {
log.Warn().Err(err).Str("step", step.Name).Msg("take screenshot failed")
} else {