feat: driver DataCache

This commit is contained in:
lilong.129
2024-09-02 00:18:07 +08:00
parent f1e4caeef8
commit 5f61858b4d
4 changed files with 42 additions and 41 deletions
+4 -1
View File
@@ -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
}()