feat: support nested testcase in teststep

This commit is contained in:
debugtalk
2021-09-20 10:59:37 +08:00
parent f4874c525f
commit c29f85bc64
3 changed files with 31 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ func TestHttpRunner(t *testing.T) {
Validate().
AssertEqual("status_code", 200, "check status code").
AssertEqual("body.\"user-agent\"", "python-requests", "check User-Agent"),
RunTestCase("TestCase3").WithVariables(Variables{"var1": "value1"}),
},
}
testcase2 := &TestCase{