refactor: convert postman case

This commit is contained in:
debugtalk
2022-12-23 12:28:29 +08:00
parent 6d70a0eeb6
commit e3596a6051
17 changed files with 371 additions and 459 deletions
+2 -1
View File
@@ -2,13 +2,14 @@ package convert
import (
"github.com/pkg/errors"
"github.com/rs/zerolog/log"
"github.com/httprunner/httprunner/v4/hrp"
"github.com/httprunner/httprunner/v4/hrp/internal/builtin"
)
func LoadJSONCase(path string) (*hrp.TCase, error) {
// load json case file
log.Info().Str("path", path).Msg("load json case file")
caseJSON := new(hrp.TCase)
err := builtin.LoadFile(path, caseJSON)
if err != nil {