mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-07 16:40:50 +08:00
change: remove image result to reduce summary size
This commit is contained in:
@@ -1 +1 @@
|
|||||||
v5.0.0+2411142130
|
v5.0.0+2411142214
|
||||||
|
|||||||
@@ -784,8 +784,8 @@ func (dExt *DriverExt) DoAction(action MobileAction) (err error) {
|
|||||||
|
|
||||||
type SleepConfig struct {
|
type SleepConfig struct {
|
||||||
StartTime time.Time `json:"start_time"`
|
StartTime time.Time `json:"start_time"`
|
||||||
Seconds float64 `json:"seconds"`
|
Seconds float64 `json:"seconds,omitempty"`
|
||||||
Milliseconds int64 `json:"milliseconds"`
|
Milliseconds int64 `json:"milliseconds,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
var errActionNotImplemented = errors.New("UI action not implemented")
|
var errActionNotImplemented = errors.New("UI action not implemented")
|
||||||
|
|||||||
@@ -21,15 +21,13 @@ import (
|
|||||||
|
|
||||||
type ScreenResult struct {
|
type ScreenResult struct {
|
||||||
bufSource *bytes.Buffer // raw image buffer bytes
|
bufSource *bytes.Buffer // raw image buffer bytes
|
||||||
ImagePath string // image file path
|
ImagePath string `json:"image_path"` // image file path
|
||||||
ImageResult *ImageResult // image result
|
Resolution Size `json:"resolution"`
|
||||||
|
UploadedURL string `json:"uploaded_url"` // uploaded image url
|
||||||
Resolution Size `json:"resolution"`
|
Texts OCRTexts `json:"texts"` // dumped raw OCRTexts
|
||||||
UploadedURL string `json:"uploaded_url"` // uploaded image url
|
Icons UIResultMap `json:"icons"` // CV 识别的图标
|
||||||
Texts OCRTexts `json:"texts"` // dumped raw OCRTexts
|
Tags []string `json:"tags"` // tags for image, e.g. ["feed", "ad", "live"]
|
||||||
Icons UIResultMap `json:"icons"` // CV 识别的图标
|
Popup *PopupInfo `json:"popup,omitempty"`
|
||||||
Tags []string `json:"tags"` // tags for image, e.g. ["feed", "ad", "live"]
|
|
||||||
Popup *PopupInfo `json:"popup,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetScreenResult takes a screenshot, returns the image recognition result
|
// GetScreenResult takes a screenshot, returns the image recognition result
|
||||||
@@ -114,7 +112,6 @@ func (dExt *DriverExt) GetScreenResult(options ...ActionOption) (screenResult *S
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
screenResult.ImageResult = imageResult
|
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Debug().
|
log.Debug().
|
||||||
|
|||||||
Reference in New Issue
Block a user