mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 23:51:25 +08:00
feat: cache screenshot ocr texts
This commit is contained in:
@@ -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
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user