0
votes

I am trying to do POST data and it's getting 200. but if in response JSON data has list [] like

{ 
    "resno":"5600123",
    "inquiry": [
        {
            "number": "1",
            "organization": "",
            "name": "Amarbold",
            "collateralInfo2": "0",
            "description": "dadtatadada"
        },
        {
            "number": "1",
            "organization": "",
            "name": "Amarbold",
            "collateralInfo2": "0",
            "description": "dadtatadada"
        }
    ]
}

this then i recieved this.

{"resno":"5600123","inquiry":null}

It's working fine in Postman.

how can i fix?

1
You can convert your postman script to JMeter and check what parameter you have missed, or could you please share the screenshot of the postman script where it is working. blazemeter.com/…Jyoti Prakash Mallick

1 Answers

0
votes

Given you send the same requests you should have the same responses, double check your request payload and headers using View Results Tree listener or maybe even better an external sniffer tool like Fiddler or Burp

Once you identify and eliminate the differences - you should get the same behaviour.

Be aware that it's also possible to record the Postman's request using JMeter's HTTP(S) Test Script Recorder, if you configure Postman to use JMeter as the proxy - JMeter will intercept the request and produce the relevant HTTP Request sampler and HTTP Header Manager. See How to Convert Your Postman API Tests to JMeter for Scaling article for more information.