mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-13 03:49:56 +08:00
fix: screenshots_urls
This commit is contained in:
@@ -80,11 +80,11 @@ type ScreenResultMap map[string]*ScreenResult // key is date time
|
||||
// getScreenShotUrls returns screenShotsUrls using imagePath as key and uploaded URL as value
|
||||
func (screenResults ScreenResultMap) getScreenShotUrls() map[string]string {
|
||||
screenShotsUrls := make(map[string]string)
|
||||
for dateTime, screenResult := range screenResults {
|
||||
for _, screenResult := range screenResults {
|
||||
if screenResult.UploadedURL == "" {
|
||||
continue
|
||||
}
|
||||
screenShotsUrls[dateTime] = screenResult.UploadedURL
|
||||
screenShotsUrls[screenResult.imagePath] = screenResult.UploadedURL
|
||||
}
|
||||
return screenShotsUrls
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user