mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 07:26:55 +08:00
fix: screenshots_urls
This commit is contained in:
+2
-2
@@ -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
|
// getScreenShotUrls returns screenShotsUrls using imagePath as key and uploaded URL as value
|
||||||
func (screenResults ScreenResultMap) getScreenShotUrls() map[string]string {
|
func (screenResults ScreenResultMap) getScreenShotUrls() map[string]string {
|
||||||
screenShotsUrls := make(map[string]string)
|
screenShotsUrls := make(map[string]string)
|
||||||
for dateTime, screenResult := range screenResults {
|
for _, screenResult := range screenResults {
|
||||||
if screenResult.UploadedURL == "" {
|
if screenResult.UploadedURL == "" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
screenShotsUrls[dateTime] = screenResult.UploadedURL
|
screenShotsUrls[screenResult.imagePath] = screenResult.UploadedURL
|
||||||
}
|
}
|
||||||
return screenShotsUrls
|
return screenShotsUrls
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user