MCPcopy Index your code
hub / github.com/httprunner/httprunner / SetBaseURL

Method SetBaseURL

hrp/config.go:49–52  ·  view source on GitHub ↗

SetBaseURL sets base URL for current testcase.

(baseURL string)

Source from the content-addressed store, hash-verified

47
48// SetBaseURL sets base URL for current testcase.
49func (c *TConfig) SetBaseURL(baseURL string) *TConfig {
50 c.BaseURL = baseURL
51 return c
52}
53
54// SetHeaders sets global headers for current testcase.
55func (c *TConfig) SetHeaders(headers map[string]string) *TConfig {

Callers 15

TestBoomerStandaloneRunFunction · 0.80
TestRunRequestStatOnFunction · 0.80
TestRunCaseWithTimeoutFunction · 0.80
assertRunTestCasesFunction · 0.80
TestRunCaseWithRefAPIFunction · 0.80
testcase_test.goFile · 0.80
TestHTTPProtocolFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestBoomerStandaloneRunFunction · 0.64
TestRunRequestStatOnFunction · 0.64
TestRunCaseWithTimeoutFunction · 0.64
assertRunTestCasesFunction · 0.64
TestRunCaseWithRefAPIFunction · 0.64
TestHTTPProtocolFunction · 0.64
TestCaseConfigVariablesFunction · 0.64