MCPcopy
hub / github.com/httprunner/httprunner / Run

Function Run

hrp/runner.go:34–38  ·  view source on GitHub ↗

Run starts to run testcase with default configs.

(t *testing.T, testcases ...ITestCase)

Source from the content-addressed store, hash-verified

32
33// Run starts to run testcase with default configs.
34func Run(t *testing.T, testcases ...ITestCase) error {
35 err := NewRunner(t).SetSaveTests(true).Run(testcases...)
36 code.GetErrorCode(err)
37 return err
38}
39
40// NewRunner constructs a new runner instance.
41func NewRunner(t *testing.T) *HRPRunner {

Callers 7

TestIOSDouyinFollowLiveFunction · 0.92
TestIOSDouyinLiveFunction · 0.92
TestWDALogFunction · 0.92
TestAndroidLiveSwipeTestFunction · 0.92

Calls 4

GetErrorCodeFunction · 0.92
NewRunnerFunction · 0.85
SetSaveTestsMethod · 0.80
RunMethod · 0.65

Tested by 7

TestIOSDouyinFollowLiveFunction · 0.74
TestIOSDouyinLiveFunction · 0.74
TestWDALogFunction · 0.74
TestAndroidLiveSwipeTestFunction · 0.74