refactor: TestCase/TestCaseDef/StepConfig models

This commit is contained in:
lilong.129
2024-11-09 20:15:40 +08:00
parent 2587bbee82
commit 8846e84d19
31 changed files with 621 additions and 563 deletions

View File

@@ -29,7 +29,7 @@ var (
)
func TestRunRequestGetToStruct(t *testing.T) {
tStep := stepGET.step
tStep := stepGET
if tStep.Request.Method != httpGET {
t.Fatalf("tStep.Request.Method != GET")
}
@@ -52,7 +52,7 @@ func TestRunRequestGetToStruct(t *testing.T) {
}
func TestRunRequestPostDataToStruct(t *testing.T) {
tStep := stepPOSTData.step
tStep := stepPOSTData
if tStep.Request.Method != httpPOST {
t.Fatalf("tStep.Request.Method != POST")
}