mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 15:37:35 +08:00
refactor: simplify AI action execution and improve sub-action handling
This commit is contained in:
@@ -76,6 +76,17 @@ func (s *DriverSession) Reset() {
|
||||
s.screenResults = make([]*ScreenResult, 0)
|
||||
}
|
||||
|
||||
func (s *DriverSession) GetData(withReset bool) SessionData {
|
||||
sessionData := SessionData{
|
||||
Requests: s.History(),
|
||||
ScreenResults: s.screenResults,
|
||||
}
|
||||
if withReset {
|
||||
s.Reset()
|
||||
}
|
||||
return sessionData
|
||||
}
|
||||
|
||||
func (s *DriverSession) SetBaseURL(baseUrl string) {
|
||||
s.baseUrl = baseUrl
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user