MCPcopy
hub / github.com/httprunner/httprunner / SetThinkTime

Method SetThinkTime

hrp/config.go:73–76  ·  view source on GitHub ↗

SetThinkTime sets think time config for current testcase.

(strategy thinkTimeStrategy, cfg interface{}, limit float64)

Source from the content-addressed store, hash-verified

71
72// SetThinkTime sets think time config for current testcase.
73func (c *TConfig) SetThinkTime(strategy thinkTimeStrategy, cfg interface{}, limit float64) *TConfig {
74 c.ThinkTimeSetting = &ThinkTimeConfig{strategy, cfg, limit}
75 return c
76}
77
78// SetRequestTimeout sets request timeout in seconds.
79func (c *TConfig) SetRequestTimeout(seconds float32) *TConfig {

Callers 1

TestRunCaseWithThinkTimeFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestRunCaseWithThinkTimeFunction · 0.36