mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-08 17:29:34 +08:00
change: convert case compatiblity
This commit is contained in:
@@ -111,7 +111,7 @@ func LoadCurlCase(path string) (*hrp.TestCaseDef, error) {
|
||||
}
|
||||
tCase.Steps = append(tCase.Steps, tSteps...)
|
||||
}
|
||||
err = tCase.MakeCompat()
|
||||
err = hrp.ConvertCaseCompatibility(tCase)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@@ -391,7 +391,7 @@ func (c *CaseHar) ToTestCase() (*hrp.TestCaseDef, error) {
|
||||
Config: c.prepareConfig(),
|
||||
Steps: teststeps,
|
||||
}
|
||||
err = tCase.MakeCompat()
|
||||
err = hrp.ConvertCaseCompatibility(tCase)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ func LoadJSONCase(path string) (*hrp.TestCaseDef, error) {
|
||||
return nil, errors.New("invalid json case file, missing teststeps")
|
||||
}
|
||||
|
||||
err = caseJSON.MakeCompat()
|
||||
err = hrp.ConvertCaseCompatibility(caseJSON)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@@ -144,7 +144,7 @@ func (c *CasePostman) ToTestCase() (*hrp.TestCaseDef, error) {
|
||||
Config: c.prepareConfig(),
|
||||
Steps: teststeps,
|
||||
}
|
||||
err = tCase.MakeCompat()
|
||||
err = hrp.ConvertCaseCompatibility(tCase)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ func LoadYAMLCase(path string) (*hrp.TestCaseDef, error) {
|
||||
return nil, errors.New("invalid yaml file")
|
||||
}
|
||||
|
||||
err = caseJSON.MakeCompat()
|
||||
err = hrp.ConvertCaseCompatibility(caseJSON)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user