Files
httprunner/pkg/convert/to_yaml.go
2025-02-06 11:03:41 +08:00

14 lines
309 B
Go

package convert
import "github.com/httprunner/httprunner/v5/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
}