mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 11:29:48 +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
|
||||
log.Printf("run referenced testcase: %v", tc.step.Name)
|
||||
// TODO: override testcase config
|
||||
if err := r.runCase(tc.step.TestCase); err != nil {
|
||||
if err := r.runStepTestCase(tc.step); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
@@ -84,6 +84,11 @@ func (r *Runner) runStepRequest(step *TStep) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *Runner) runStepTestCase(step *TStep) error {
|
||||
testcase := step.TestCase
|
||||
return r.runCase(testcase)
|
||||
}
|
||||
|
||||
func (r *Runner) GetSummary() *TestCaseSummary {
|
||||
return &TestCaseSummary{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user