MCPcopy
hub / github.com/httprunner/httprunner / NewStep

Function NewStep

hrp/step_request.go:529–536  ·  view source on GitHub ↗

NewStep returns a new constructed teststep with specified step name.

(name string)

Source from the content-addressed store, hash-verified

527
528// NewStep returns a new constructed teststep with specified step name.
529func NewStep(name string) *StepRequest {
530 return &StepRequest{
531 step: &TStep{
532 Name: name,
533 Variables: make(map[string]interface{}),
534 },
535 }
536}
537
538type StepRequest struct {
539 step *TStep

Callers 15

TestHTTPProtocolFunction · 0.92
TestWebSocketProtocolFunction · 0.92
TestCaseConfigVariablesFunction · 0.92
TestCaseStepVariablesFunction · 0.92
TestCaseParseVariablesFunction · 0.92
TestRendezvousFunction · 0.92
TestCaseBasicRequestFunction · 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