mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 23:51:25 +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 YAML case
|
||||
func (c *TCaseConverter) toYAML() (string, error) {
|
||||
yamlPath := c.genOutputPath(suffixYAML)
|
||||
err := builtin.Dump2YAML(c.tCase, yamlPath)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return yamlPath, nil
|
||||
}
|
||||
Reference in New Issue
Block a user