mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-09 14:32:31 +08:00
fix: nil step.Request pointer
This commit is contained in:
@@ -68,7 +68,7 @@ func convertCompatTestCase(tc *TCase) (err error) {
|
|||||||
}()
|
}()
|
||||||
for _, step := range tc.TestSteps {
|
for _, step := range tc.TestSteps {
|
||||||
// 1. deal with body compatible with HttpRunner
|
// 1. deal with body compatible with HttpRunner
|
||||||
if step.Request.Body == nil {
|
if step.Request != nil && step.Request.Body == nil {
|
||||||
if step.Request.Json != nil {
|
if step.Request.Json != nil {
|
||||||
step.Request.Body = step.Request.Json
|
step.Request.Body = step.Request.Json
|
||||||
} else if step.Request.Data != nil {
|
} else if step.Request.Data != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user