mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 07:26:55 +08:00
feat: add ocr tags to summary
This commit is contained in:
@@ -294,8 +294,10 @@ func (dExt *DriverExt) GetScreenTextsByOCR() (imagePath string, ocrTexts OCRText
|
||||
return
|
||||
}
|
||||
|
||||
o, _ := json.Marshal(ocrTexts)
|
||||
dExt.cacheStepData.OcrResults[imagePath] = string(o)
|
||||
dExt.cacheStepData.OcrResults[imagePath] = &OcrResult{
|
||||
Texts: ocrTexts,
|
||||
}
|
||||
|
||||
return imagePath, ocrTexts, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user