refactor: merge TestCase with TCase, fix converters

This commit is contained in:
lilong.129
2024-08-19 19:42:20 +08:00
parent 448a0bbc67
commit 7b438e5cec
12 changed files with 107 additions and 77 deletions
+2 -2
View File
@@ -114,7 +114,7 @@ type TCaseConverter struct {
fromFile string
profilePath string
outputDir string
tCase *hrp.TCase
tCase *hrp.TestCase
}
// LoadCase loads source file and convert to TCase type
@@ -206,7 +206,7 @@ func (c *TCaseConverter) overrideWithProfile(path string) error {
}
log.Info().Interface("profile", profile).Msg("override with profile")
for _, step := range c.tCase.TestSteps {
for _, step := range c.tCase.TSteps {
// override original headers and cookies
if profile.Override {
step.Request.Headers = make(map[string]string)