feat: run referenced testcase

This commit is contained in:
debugtalk
2021-09-23 11:59:52 +08:00
parent edaaaee6a3
commit 9f8398a865
2 changed files with 13 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ func TestHttpRunner(t *testing.T) {
Validate().
AssertEqual("status_code", 200, "check status code").
AssertEqual("body.\"user-agent\"", "python-requests", "check User-Agent"),
Step("TestCase3").CallRefCase(&TestCase{}),
Step("TestCase3").CallRefCase(&TestCase{Config: TConfig{Name: "TestCase3"}}),
},
}
testcase2 := &TestCase{