mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-10 17:43:00 +08:00
docs: update docs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
24
docs/cmd/hrp_server.md
Normal 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
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
v5.0.0+2411092254
|
||||
v5.0.0+2411092306
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
@@ -254,7 +254,7 @@ func TestSessionRunner(t *testing.T) {
|
||||
t.Fatal()
|
||||
}
|
||||
|
||||
err := sessionRunner.parseStep(step)
|
||||
err := sessionRunner.parseStepStruct(step)
|
||||
if err != nil {
|
||||
t.Fatal()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user