mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-10 23:12:41 +08:00
refactor: move cached screenResults from XTDriver to DriverSession
This commit is contained in:
@@ -117,11 +117,10 @@ func (dExt *XTDriver) GetData(withReset bool) map[string]interface{} {
|
||||
session := dExt.GetSession()
|
||||
data := map[string]interface{}{
|
||||
"requests": session.History(),
|
||||
"screen_results": dExt.screenResults,
|
||||
"screen_results": session.screenResults,
|
||||
}
|
||||
if withReset {
|
||||
session.Reset()
|
||||
dExt.screenResults = make([]*ScreenResult, 0)
|
||||
}
|
||||
return data
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user