mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-06 07:57:27 +08:00
feat: runStepTestCase
This commit is contained in:
@@ -47,7 +47,7 @@ func (r *Runner) runStep(step IStep, config *TConfig) error {
|
|||||||
// run referenced testcase
|
// run referenced testcase
|
||||||
log.Printf("run referenced testcase: %v", tc.step.Name)
|
log.Printf("run referenced testcase: %v", tc.step.Name)
|
||||||
// TODO: override testcase config
|
// TODO: override testcase config
|
||||||
if err := r.runCase(tc.step.TestCase); err != nil {
|
if err := r.runStepTestCase(tc.step); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -84,6 +84,11 @@ func (r *Runner) runStepRequest(step *TStep) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (r *Runner) runStepTestCase(step *TStep) error {
|
||||||
|
testcase := step.TestCase
|
||||||
|
return r.runCase(testcase)
|
||||||
|
}
|
||||||
|
|
||||||
func (r *Runner) GetSummary() *TestCaseSummary {
|
func (r *Runner) GetSummary() *TestCaseSummary {
|
||||||
return &TestCaseSummary{}
|
return &TestCaseSummary{}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user