fix: nil step.Request pointer

This commit is contained in:
buyuxiang
2022-02-28 17:39:09 +08:00
parent 4fc322c44d
commit 54d938286e

View File

@@ -68,7 +68,7 @@ func convertCompatTestCase(tc *TCase) (err error) {
}()
for _, step := range tc.TestSteps {
// 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 {
step.Request.Body = step.Request.Json
} else if step.Request.Data != nil {