refactor: convert postman case

This commit is contained in:
debugtalk
2022-12-23 12:28:29 +08:00
parent 22a300d9b3
commit ea014c0734
17 changed files with 371 additions and 459 deletions
+13
View File
@@ -0,0 +1,13 @@
package convert
import "github.com/httprunner/httprunner/v4/hrp/internal/builtin"
// convert TCase to JSON case
func (c *TCaseConverter) toJSON() (string, error) {
jsonPath := c.genOutputPath(suffixJSON)
err := builtin.Dump2JSON(c.tCase, jsonPath)
if err != nil {
return "", err
}
return jsonPath, nil
}