mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-03 12:36:57 +08:00
change: remove live e2e
This commit is contained in:
@@ -19,7 +19,6 @@ import (
|
||||
)
|
||||
|
||||
type Session struct {
|
||||
// ctx context.Context
|
||||
ID string
|
||||
baseURL *url.URL
|
||||
client *http.Client
|
||||
@@ -32,8 +31,6 @@ type Session struct {
|
||||
requests []*DriverRequests
|
||||
// cache screenshot ocr results
|
||||
screenResults []*ScreenResult
|
||||
// cache e2e delay
|
||||
e2eDelay []timeLog
|
||||
}
|
||||
|
||||
func (d *Session) addScreenResult(screenResult *ScreenResult) {
|
||||
@@ -53,7 +50,6 @@ func (d *Session) Init(baseUrl string) error {
|
||||
func (d *Session) Reset() {
|
||||
d.screenResults = make([]*ScreenResult, 0)
|
||||
d.requests = make([]*DriverRequests, 0)
|
||||
d.e2eDelay = nil
|
||||
}
|
||||
|
||||
func (d *Session) GetData(withReset bool) Attachments {
|
||||
@@ -63,9 +59,6 @@ func (d *Session) GetData(withReset bool) Attachments {
|
||||
if len(d.requests) != 0 {
|
||||
data["requests"] = d.requests
|
||||
}
|
||||
if d.e2eDelay != nil {
|
||||
data["e2e_results"] = d.e2eDelay
|
||||
}
|
||||
if withReset {
|
||||
d.Reset()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user