以下是我的特征文件内容。在执行此功能文件的运行程序类时,我遇到此错误“ 16:09:06.508 [main]错误com.intuit.karate-HTTP请求失败:空”。
Feature: To test POST leads API
Scenario: Test with valid flow
Given url leads
And request { "lastName": "Anderson", "email": "sam.anderson@matrix.com", "phoneNumber": 39123345, "privacyVersion": "1.1", "marketing": true }
When method post
Then status 200
And match response == {"referenceId": '#notnull'}
And match response == {"referenceId": '#string'}
获取请求工作正常。