mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +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 {
|
||||
// 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 {
|
||||
|
||||
Reference in New Issue
Block a user