mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 07:26:55 +08:00
docs: update docs
This commit is contained in:
+2
-1
@@ -34,7 +34,8 @@ Copyright 2017 debugtalk
|
|||||||
* [hrp convert](hrp_convert.md) - convert multiple source format to HttpRunner JSON/YAML/gotest/pytest cases
|
* [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 pytest](hrp_pytest.md) - run API test with pytest
|
||||||
* [hrp run](hrp_run.md) - run API test with go engine
|
* [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 startproject](hrp_startproject.md) - create a scaffold project
|
||||||
* [hrp wiki](hrp_wiki.md) - visit https://httprunner.com
|
* [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.
|
* [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.
|
* [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.
|
* [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.
|
* [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
|
||||||
|
|||||||
+1
-1
@@ -36,4 +36,4 @@ hrp run $path... [flags]
|
|||||||
|
|
||||||
* [hrp](hrp.md) - Next-Generation API Testing Solution.
|
* [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
|
||||||
|
|||||||
@@ -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.
|
* [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.
|
* [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
|
||||||
|
|||||||
+1
-1
@@ -359,7 +359,7 @@ func (b *HRPBoomer) convertBoomerTask(testcase *TestCase, rendezvousList []*Rend
|
|||||||
startTime := time.Now()
|
startTime := time.Now()
|
||||||
for _, step := range testcase.TestSteps {
|
for _, step := range testcase.TestSteps {
|
||||||
// parse step struct
|
// parse step struct
|
||||||
err = sessionRunner.parseStep(step)
|
err = sessionRunner.parseStepStruct(step)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error().Err(err).Msg("parse step struct failed")
|
log.Error().Err(err).Msg("parse step struct failed")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
v5.0.0+2411092254
|
v5.0.0+2411092306
|
||||||
|
|||||||
+2
-2
@@ -601,7 +601,7 @@ func (r *SessionRunner) Start(givenVars map[string]interface{}) (summary *TestCa
|
|||||||
return summary, errors.Wrap(code.InterruptError, "session runner interrupted")
|
return summary, errors.Wrap(code.InterruptError, "session runner interrupted")
|
||||||
default:
|
default:
|
||||||
// parse step struct
|
// parse step struct
|
||||||
err = r.parseStep(step)
|
err = r.parseStepStruct(step)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error().Err(err).Msg("parse step struct failed")
|
log.Error().Err(err).Msg("parse step struct failed")
|
||||||
if r.caseRunner.hrpRunner.failfast {
|
if r.caseRunner.hrpRunner.failfast {
|
||||||
@@ -682,7 +682,7 @@ func (r *SessionRunner) Start(givenVars map[string]interface{}) (summary *TestCa
|
|||||||
return summary, nil
|
return summary, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *SessionRunner) parseStep(step IStep) error {
|
func (r *SessionRunner) parseStepStruct(step IStep) error {
|
||||||
caseConfig := r.caseRunner.TestCase.Config.Get()
|
caseConfig := r.caseRunner.TestCase.Config.Get()
|
||||||
stepConfig := step.Config()
|
stepConfig := step.Config()
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -254,7 +254,7 @@ func TestSessionRunner(t *testing.T) {
|
|||||||
t.Fatal()
|
t.Fatal()
|
||||||
}
|
}
|
||||||
|
|
||||||
err := sessionRunner.parseStep(step)
|
err := sessionRunner.parseStepStruct(step)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal()
|
t.Fatal()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user