feat: record execution data for report #25

This commit is contained in:
xucong053
2022-01-26 13:38:18 +08:00
parent 92f7430634
commit 56cc99bbc0
13 changed files with 337 additions and 124 deletions

View File

@@ -15,6 +15,7 @@ import (
"github.com/rs/zerolog/log"
"github.com/httprunner/hrp"
"github.com/httprunner/hrp/internal/builtin"
"github.com/httprunner/hrp/internal/ga"
)
@@ -55,7 +56,7 @@ func (h *har) GenJSON() (jsonPath string, err error) {
return "", err
}
jsonPath = h.genOutputPath(suffixJSON)
err = tCase.Dump2JSON(jsonPath)
err = builtin.Dump2JSON(tCase, jsonPath)
return
}
@@ -74,7 +75,7 @@ func (h *har) GenYAML() (yamlPath string, err error) {
return "", err
}
yamlPath = h.genOutputPath(suffixYAML)
err = tCase.Dump2YAML(yamlPath)
err = builtin.Dump2YAML(tCase, yamlPath)
return
}