Documentation ¶
Index ¶
Constants ¶
View Source
const ( CtxKeyCollectorLogID = "logID" CtxKeyLogger = "logger" FieldOrgName = "orgName" FieldOrgID = "orgID" TagDiceOrgName = "dice_org_name" TagDiceOrgID = "dice_org_id" )
View Source
const ( ResultSuccess = "success" ResultFailed = "failed" )
View Source
const CookieJar = "cookieJar"
View Source
const (
MetaKeyResult = "result"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CollectorHook ¶
type CollectorHook struct{}
func (*CollectorHook) Levels ¶
func (c *CollectorHook) Levels() []logrus.Level
type EnvConfig ¶
type EnvConfig struct { Name string `env:"ACTION_NAME"` URL string `env:"ACTION_URL" required:"true"` Method string `env:"ACTION_METHOD" required:"true"` Params []APIParam `env:"ACTION_PARAMS"` Headers []APIHeader `env:"ACTION_HEADERS"` Body apistructs.APIBody `env:"ACTION_BODY"` OutParams []apistructs.APIOutParam `env:"ACTION_OUT_PARAMS"` Asserts []APIAssert `env:"ACTION_ASSERTS"` GlobalConfig *apistructs.AutoTestAPIConfig `env:"AUTOTEST_API_GLOBAL_CONFIG"` MetaFile string `env:"METAFILE"` }
type Meta ¶
type Meta struct { Result string AssertResult bool AssertDetail string Req *apistructs.APIRequestInfo Resp *apistructs.APIResp OutParamsDefine []apistructs.APIOutParam CookieJar cookiejar.Cookies OutParamsResult map[string]interface{} }
Click to show internal directories.
Click to hide internal directories.