diff --git a/lib/robot.go b/lib/robot.go index 5fb1346..cf3b418 100644 --- a/lib/robot.go +++ b/lib/robot.go @@ -32,29 +32,29 @@ type IRobot interface { type Robot struct { IStore - scene IScene //场景 - account string - sid string - conn *websocket.Conn - data map[string]interface{} //机器人缓存数据 - status uint32 //状态 - lock sync.Mutex //数据缓存锁 - sceneQueue *Queue[IScene] //场景队列 - config *storage.Config //配置 - resultCh chan *CallResult //请求结果通道 - sceneResultCh chan *CallResult //场景结果通道 - ReportMap map[int]map[string]*Statistics //测试报告 key1:场景序号 key2:协议 - elipseTotal time.Duration + scene IScene //场景 + account string + sid string + conn *websocket.Conn + data map[string]interface{} //机器人缓存数据 + status uint32 //状态 + lock sync.Mutex //数据缓存锁 + sceneQueue *Queue[IScene] //场景队列 + config *storage.Config //配置 + resultCh chan *CallResult //请求结果通道 + // sceneResultCh chan *CallResult //场景结果通道 + ReportMap map[int]map[string]*Statistics //测试报告 key1:场景序号 key2:协议 + elipseTotal time.Duration } func NewRobot(config *storage.Config) *Robot { robot := &Robot{ - data: make(map[string]interface{}), - sceneQueue: NewQueue[IScene](), - config: config, - resultCh: make(chan *CallResult, 100), - sceneResultCh: make(chan *CallResult, 50), - ReportMap: make(map[int]map[string]*Statistics), + data: make(map[string]interface{}), + sceneQueue: NewQueue[IScene](), + config: config, + resultCh: make(chan *CallResult, 1000), + // sceneResultCh: make(chan *CallResult, 50), + ReportMap: make(map[int]map[string]*Statistics), } robot.Store("sid", config.Global.SId) return robot diff --git a/ui/mainwindow.go b/ui/mainwindow.go index 6633c16..c5fb802 100644 --- a/ui/mainwindow.go +++ b/ui/mainwindow.go @@ -148,7 +148,7 @@ func (mw *MainWindow) showProgress(data interface{}, args ...interface{}) { } mw.progress.SetValue(r) if r >= 1 { - mw.tipLabel.SetText("正在生成报表...") + mw.tipLabel.SetText("正在处理结果...") } }