mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-06 07:57:27 +08:00
feat: driver DataCache
This commit is contained in:
@@ -648,10 +648,13 @@ func runStepMobileUI(s *SessionRunner, step *TStep) (stepResult *StepResult, err
|
||||
}
|
||||
|
||||
// save attachments
|
||||
cacheData := uiDriver.GetStepCacheData()
|
||||
cacheData := uiDriver.DataCache.GetAll()
|
||||
for key, value := range cacheData {
|
||||
attachments[key] = value
|
||||
}
|
||||
uiDriver.DataCache.Clear() // clear step cache
|
||||
|
||||
attachments["driver_request_results"] = uiDriver.Driver.GetDriverResults()
|
||||
stepResult.Attachments = attachments
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user