在newman中运行测试时出现错误请求错误

时间:2017-08-21 14:16:08

标签: postman newman

我正在尝试运行一些在Postman中运行良好的测试,但同样在具有错误请求错误的newman中失败。

POST : https://{{API_Host}}/api/Context/CreateContext

接头

[{"key":"Content-Type","value":"application/json","description":""},
{"key":"Accept-Encoding","value":"deflate, gzip;","description":""},
{"key":"Ocp-Apim-Trace","value":"true","description":""},
{"key":"Ocp-Apim-Subscription -Key","value":"xxxxxxxxxxxxxxxxx","description":""},
{"key":"Authorization","value":"Basic xxxxxxxxxxxxxxxxx","description":""}]

请求:

{
      "ServiceContext": {
    "ContextId": "00000000-0000-000",
    "InstanceProvider": {
        "Name": "IT",
        "Version": "1.0"
    },
    "SchemaProvider": {
        "Name": "Group",
        "Version": "Version1"
    },
    "ServiceProvider": {
        "Name": "Service",
        "Version": "Version1"
    },
    "App": {
        "AppName": "APP",
        "AppVersion": "1.0"
    },
    "Operator": {
        "OperatorId": "xxxx",
        "OperatorUserId": "xxxx",
        "OperatorUserName": "xxxx",
        "OperatorUserDisplayName": "xxxx",
        "UserName": "xxxxx",
        "OperatorFurtherInfoKeys": []
    },
    "SystemEnvironment": {
        "ApplicationMode": "xxxx"
    }
}

}

NewMan Results Postman Results

0 个答案:

没有答案