mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-28 19:47:14 +08:00
refactor: simplify AI action execution and improve sub-action handling
This commit is contained in:
@@ -112,18 +112,6 @@ func (dExt *XTDriver) Setup() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (dExt *XTDriver) GetData(withReset bool) map[string]interface{} {
|
||||
session := dExt.GetSession()
|
||||
data := map[string]interface{}{
|
||||
"requests": session.History(),
|
||||
"screen_results": session.screenResults,
|
||||
}
|
||||
if withReset {
|
||||
session.Reset()
|
||||
}
|
||||
return data
|
||||
}
|
||||
|
||||
func (dExt *XTDriver) assertOCR(text, assert string) error {
|
||||
var opts []option.ActionOption
|
||||
opts = append(opts, option.WithScreenShotFileName(fmt.Sprintf("assert_ocr_%s", text)))
|
||||
|
||||
Reference in New Issue
Block a user