feat: support live end to end delay collection

This commit is contained in:
buyuxiang
2023-10-27 18:05:17 +08:00
parent f1b51a8c62
commit 81d1fd7da0
7 changed files with 395 additions and 1 deletions
+3
View File
@@ -128,12 +128,14 @@ type cacheStepData struct {
screenResults ScreenResultMap
// cache feed/live video stat
videoCrawler *VideoCrawler
e2eDelay []timeLog
}
func (d *cacheStepData) reset() {
d.screenShots = make([]string, 0)
d.screenResults = make(map[string]*ScreenResult)
d.videoCrawler = nil
d.e2eDelay = nil
}
type DriverExt struct {
@@ -275,6 +277,7 @@ func (dExt *DriverExt) GetStepCacheData() map[string]interface{} {
cacheData["screenshots_urls"] = dExt.cacheStepData.screenResults.getScreenShotUrls()
dExt.cacheStepData.screenResults.updatePopupCloseStatus()
cacheData["screen_results"] = dExt.cacheStepData.screenResults
cacheData["e2e_results"] = dExt.cacheStepData.e2eDelay
// clear cache
dExt.cacheStepData.reset()