feat: cache screenshot ocr texts

This commit is contained in:
lilong.129
2023-04-28 14:12:31 +08:00
parent 2323015755
commit 1d41d276ab
3 changed files with 28 additions and 19 deletions
+3 -1
View File
@@ -616,7 +616,9 @@ func runStepMobileUI(s *SessionRunner, step *TStep) (stepResult *StepResult, err
}
// save attachments
attachments["screenshots"] = uiDriver.GetScreenShots()
cacheData := uiDriver.GetStepCacheData()
attachments["screenshots"] = cacheData.ScreenShots
attachments["ocr_results"] = cacheData.OcrResults
stepResult.Attachments = attachments
}()