MCPcopy
hub / github.com/httprunner/httprunner / NewConfig

Function NewConfig

hrp/config.go:11–17  ·  view source on GitHub ↗

NewConfig returns a new constructed testcase config with specified testcase name.

(name string)

Source from the content-addressed store, hash-verified

9
10// NewConfig returns a new constructed testcase config with specified testcase name.
11func NewConfig(name string) *TConfig {
12 return &TConfig{
13 Name: name,
14 Environs: make(map[string]string),
15 Variables: make(map[string]interface{}),
16 }
17}
18
19// TConfig represents config data structure for testcase.
20// Each testcase should contain one config part.

Callers 15

prepareConfigMethod · 0.92
prepareConfigMethod · 0.92
TestHTTPProtocolFunction · 0.92
TestWebSocketProtocolFunction · 0.92
TestCaseConfigVariablesFunction · 0.92
TestCaseStepVariablesFunction · 0.92
TestCaseParseVariablesFunction · 0.92

Calls

no outgoing calls

Tested by 15

TestHTTPProtocolFunction · 0.74
TestWebSocketProtocolFunction · 0.74
TestCaseConfigVariablesFunction · 0.74
TestCaseStepVariablesFunction · 0.74
TestCaseParseVariablesFunction · 0.74
TestRendezvousFunction · 0.74
TestCaseBasicRequestFunction · 0.74