docs: update docs

This commit is contained in:
lilong.129
2024-11-09 23:06:38 +08:00
parent cee68da11b
commit a76e8b9a90
13 changed files with 38 additions and 13 deletions

View File

@@ -34,7 +34,8 @@ Copyright 2017 debugtalk
* [hrp convert](hrp_convert.md) - convert multiple source format to HttpRunner JSON/YAML/gotest/pytest cases
* [hrp pytest](hrp_pytest.md) - run API test with pytest
* [hrp run](hrp_run.md) - run API test with go engine
* [hrp server](hrp_server.md) - start hrp server
* [hrp startproject](hrp_startproject.md) - create a scaffold project
* [hrp wiki](hrp_wiki.md) - visit https://httprunner.com
###### Auto generated by spf13/cobra on 20-Aug-2023
###### Auto generated by spf13/cobra on 9-Nov-2024

View File

@@ -54,4 +54,4 @@ hrp boom [flags]
* [hrp](hrp.md) - Next-Generation API Testing Solution.
###### Auto generated by spf13/cobra on 20-Aug-2023
###### Auto generated by spf13/cobra on 9-Nov-2024

View File

@@ -28,4 +28,4 @@ hrp build $path ... [flags]
* [hrp](hrp.md) - Next-Generation API Testing Solution.
###### Auto generated by spf13/cobra on 20-Aug-2023
###### Auto generated by spf13/cobra on 9-Nov-2024

View File

@@ -26,4 +26,4 @@ hrp convert $path... [flags]
* [hrp](hrp.md) - Next-Generation API Testing Solution.
###### Auto generated by spf13/cobra on 20-Aug-2023
###### Auto generated by spf13/cobra on 9-Nov-2024

View File

@@ -16,4 +16,4 @@ hrp pytest $path ... [flags]
* [hrp](hrp.md) - Next-Generation API Testing Solution.
###### Auto generated by spf13/cobra on 20-Aug-2023
###### Auto generated by spf13/cobra on 9-Nov-2024

View File

@@ -36,4 +36,4 @@ hrp run $path... [flags]
* [hrp](hrp.md) - Next-Generation API Testing Solution.
###### Auto generated by spf13/cobra on 20-Aug-2023
###### Auto generated by spf13/cobra on 9-Nov-2024

24
docs/cmd/hrp_server.md Normal file
View File

@@ -0,0 +1,24 @@
## hrp server
start hrp server
### Synopsis
start hrp server. exec automation by http
```
hrp server start [flags]
```
### Options
```
-h, --help help for server
-p, --port int Port to run the server on (default 8082)
```
### SEE ALSO
* [hrp](hrp.md) - Next-Generation API Testing Solution.
###### Auto generated by spf13/cobra on 9-Nov-2024

View File

@@ -21,4 +21,4 @@ hrp startproject $project_name [flags]
* [hrp](hrp.md) - Next-Generation API Testing Solution.
###### Auto generated by spf13/cobra on 20-Aug-2023
###### Auto generated by spf13/cobra on 9-Nov-2024

View File

@@ -16,4 +16,4 @@ hrp wiki [flags]
* [hrp](hrp.md) - Next-Generation API Testing Solution.
###### Auto generated by spf13/cobra on 20-Aug-2023
###### Auto generated by spf13/cobra on 9-Nov-2024

View File

@@ -359,7 +359,7 @@ func (b *HRPBoomer) convertBoomerTask(testcase *TestCase, rendezvousList []*Rend
startTime := time.Now()
for _, step := range testcase.TestSteps {
// parse step struct
err = sessionRunner.parseStep(step)
err = sessionRunner.parseStepStruct(step)
if err != nil {
log.Error().Err(err).Msg("parse step struct failed")
}

View File

@@ -1 +1 @@
v5.0.0+2411092254
v5.0.0+2411092306

View File

@@ -601,7 +601,7 @@ func (r *SessionRunner) Start(givenVars map[string]interface{}) (summary *TestCa
return summary, errors.Wrap(code.InterruptError, "session runner interrupted")
default:
// parse step struct
err = r.parseStep(step)
err = r.parseStepStruct(step)
if err != nil {
log.Error().Err(err).Msg("parse step struct failed")
if r.caseRunner.hrpRunner.failfast {
@@ -682,7 +682,7 @@ func (r *SessionRunner) Start(givenVars map[string]interface{}) (summary *TestCa
return summary, nil
}
func (r *SessionRunner) parseStep(step IStep) error {
func (r *SessionRunner) parseStepStruct(step IStep) error {
caseConfig := r.caseRunner.TestCase.Config.Get()
stepConfig := step.Config()

View File

@@ -254,7 +254,7 @@ func TestSessionRunner(t *testing.T) {
t.Fatal()
}
err := sessionRunner.parseStep(step)
err := sessionRunner.parseStepStruct(step)
if err != nil {
t.Fatal()
}