MCPcopy
hub / github.com/httprunner/httprunner / SetupHook

Method SetupHook

hrp/step_request.go:549–552  ·  view source on GitHub ↗

SetupHook adds a setup hook for current teststep.

(hook string)

Source from the content-addressed store, hash-verified

547
548// SetupHook adds a setup hook for current teststep.
549func (s *StepRequest) SetupHook(hook string) *StepRequest {
550 s.step.SetupHooks = append(s.step.SetupHooks, hook)
551 return s
552}
553
554// HTTP2 enables HTTP/2 protocol
555func (s *StepRequest) HTTP2() *StepRequest {

Callers 1

testcase_test.goFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected