mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-04 23:16:57 +08:00
change: update docstring
This commit is contained in:
@@ -1 +1 @@
|
|||||||
v5.0.0-beta-2505121916
|
v5.0.0-beta-2505122135
|
||||||
|
|||||||
@@ -276,8 +276,8 @@ func (r *HRPRunner) Run(testcases ...ITestCase) (err error) {
|
|||||||
return runErr
|
return runErr
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewCaseRunner initializes a CaseRunner for a given testcase.
|
// NewCaseRunner creates a new case runner for testcase.
|
||||||
// Each testcase is associated with its own CaseRunner instance.
|
// each testcase has its own case runner
|
||||||
// If the provided hrpRunner is nil, a default HRPRunner will be created and used.
|
// If the provided hrpRunner is nil, a default HRPRunner will be created and used.
|
||||||
func NewCaseRunner(testcase TestCase, hrpRunner *HRPRunner) (*CaseRunner, error) {
|
func NewCaseRunner(testcase TestCase, hrpRunner *HRPRunner) (*CaseRunner, error) {
|
||||||
if hrpRunner == nil {
|
if hrpRunner == nil {
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ const (
|
|||||||
type MobileAction struct {
|
type MobileAction struct {
|
||||||
Method ActionMethod `json:"method,omitempty" yaml:"method,omitempty"`
|
Method ActionMethod `json:"method,omitempty" yaml:"method,omitempty"`
|
||||||
Params interface{} `json:"params,omitempty" yaml:"params,omitempty"`
|
Params interface{} `json:"params,omitempty" yaml:"params,omitempty"`
|
||||||
Fn func() `json:"-" yaml:"-"` // only used for function action, not serialized
|
Fn func() `json:"-" yaml:"-"` // used for function action, not serialized
|
||||||
Options *option.ActionOptions `json:"options,omitempty" yaml:"options,omitempty"`
|
Options *option.ActionOptions `json:"options,omitempty" yaml:"options,omitempty"`
|
||||||
option.ActionOptions
|
option.ActionOptions
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user