refactor: update driver caching mechanism to use generic CacheManager and improve metadata handling

This commit is contained in:
lilong.129
2025-06-22 21:42:50 +08:00
parent e48bbb2271
commit 6cc3c3acb5
5 changed files with 251 additions and 155 deletions

View File

@@ -681,10 +681,10 @@ func (r *SessionRunner) Start(givenVars map[string]interface{}) (summary *TestCa
for _, cached := range uixt.ListCachedDrivers() {
// add WDA/UIA logs to summary
logs := map[string]interface{}{
"uuid": cached.Serial,
"uuid": cached.Key,
}
client := cached.Driver
client := cached.Item
if client.GetDevice().LogEnabled() {
log, err1 := client.StopCaptureLog()
if err1 != nil {