mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-04 23:16:57 +08:00
refactor: convert postman case
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user