refactor: hrp convert

This commit is contained in:
buyuxiang
2022-05-24 13:36:34 +08:00
parent 85e5b26ee3
commit ff9df1a251
37 changed files with 2245 additions and 626 deletions

View File

@@ -1,6 +1,6 @@
## hrp convert
convert JSON/YAML testcases to pytest/gotest scripts
convert external cases to JSON/YAML/gotest/pytest testcases
```
hrp convert $path... [flags]
@@ -9,13 +9,17 @@ hrp convert $path... [flags]
### Options
```
--gotest convert to gotest scripts (TODO)
-h, --help help for convert
--pytest convert to pytest scripts (default true)
-h, --help help for convert
-d, --output-dir string specify output directory, default to the same dir with har file
-p, --profile string specify profile path to override headers (except for auto-generated headers) and cookies
--to-gotest convert to gotest scripts (TODO)
--to-json convert to JSON scripts (default)
--to-pytest convert to pytest scripts
--to-yaml convert to YAML scripts
```
### SEE ALSO
* [hrp](hrp.md) - Next-Generation API Testing Solution.
###### Auto generated by spf13/cobra on 9-May-2022
###### Auto generated by spf13/cobra on 23-May-2022