go_dreamfactory/cmd/robot/assistant.go
2022-07-18 13:39:00 +08:00

15 lines
685 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package robot
// 场景:在测试的接口中,输入参数为了能达到自动化,都是从业务中已有的协议中返回获取,作为下一个协议的输入参数。
// 但是会存在协议中的输入参数无法从上一个协议中获取比如添加好友协议输入参数是“目标玩家ID”为了能够动态
// 测试添加好友协议,如果专门为这个协议添加返回目标玩家的接口,显然有点不合适。一个方案是,设计一个助手,专门处
// 理这类问题,这个助手可以返回合适的数据,作为输入参数。
type assistant struct {
}
func NewAssistant() *assistant {
return &assistant{}
}