Home > Mobile >  How do I setup jmeter to make POST request with bearer token, api key and other parameters?
How do I setup jmeter to make POST request with bearer token, api key and other parameters?

Time:08-03

Can someone please show me how to make POST request in jmeter if I have a bearer token, x-api key, api url, and json body in this format:

{
  "resourceType": "Bundle",
  "type": "transaction",
  "entry": [
    {
      "fullUrl": "08b4-4ee4-b51b-803e20ae8126",
      "resource": {
        "resourceType": "Player",
        "name": [
          {
            "family": "Jameson",
            "given": [
              "Matt"
            ]
          }
        ],
        "gender": "male"
      },
      "request": {
        "method": "POST",
        "url": "Player"
      }
    },
    {
      "resource": {
        "resourceType": "Player",
        "name": [
          {
            "family": "Smith",
            "given": [
              "John"
            ]
          }
        ],
        "gender": "male"
      },
      "request": {
        "method": "POST",
        "url": "Player"
      }
    }
  ]
}

Also how do I setup parameters as shown in image: Image below shows how I set it up in postman, all parameters enter image description here

  • All the values which are at your screenshot stand for enter image description here

    • Related