Skip to main content
Bumped by Community user
modified question
Source Link
Bharat Mane
  • 6.8k
  • 11
  • 41
  • 69

Jmeter JMeter - Post Data passes jsonJSON data

The Project which I am working now require a performance test. So, I preferred JmeterJMeter for a load test and started learning one by one.

Now, When iI recorded a test and included a CSV file for the dynamic parameter. I see the recorded pages has clientidclient id in many httpHTTP POST data pages. This application passes a jsonJSON data for sending a request so in Body Parameter tab iI see JsonJSON type data.

So, i added Json added JSON Post Extractor for one httpHTTP request site passes alphanumeric value (5963948e2f123bd00a27d5cd)(5963948e2f123bd00a27d5cd). However, after iI executing the test the page returns an error page.

POST http://192.168.1.10/api/editClient/getClientInfo/

POST data: {"clientId":"5963948e2f123bd00a27d5cd"}

Response code: 400 Response message: Bad Request Response data : Failed to authenticate Token

POST http://192.168.1.10/api/editClient/getClientInfo/

POST data: {"clientId":"5963948e2f123bd00a27d5cd"} 

Response code: 400
Response message: Bad Request 
Response data: Failed to authenticate Token

can anyone help me on this.?

Jmeter - Post Data passes json data

The Project which I am working now require a performance test. So, I preferred Jmeter for load test and started learning one by one.

Now, When i recorded a test and included a CSV file for dynamic parameter. I see the recorded pages has clientid in many http POST data pages. This application passes a json data for sending request so in Body Parameter tab i see Json type data.

So, i added Json Post Extractor for one http request site passes alphanumeric value (5963948e2f123bd00a27d5cd). However, after i executing the test the page returns an error page.

POST http://192.168.1.10/api/editClient/getClientInfo/

POST data: {"clientId":"5963948e2f123bd00a27d5cd"}

Response code: 400 Response message: Bad Request Response data : Failed to authenticate Token

can anyone help me on this.

JMeter - Post Data passes JSON data

The Project which I am working now require a performance test. So, I preferred JMeter for a load test and started learning one by one.

Now, When I recorded a test and included a CSV file for the dynamic parameter. I see the recorded pages has client id in many HTTP POST data pages. This application passes a JSON data for sending a request so in Body Parameter tab I see JSON type data.

So, added JSON Post Extractor for one HTTP request site passes alphanumeric value (5963948e2f123bd00a27d5cd). However, after I executing the test the page returns an error page.

POST http://192.168.1.10/api/editClient/getClientInfo/

POST data: {"clientId":"5963948e2f123bd00a27d5cd"} 

Response code: 400
Response message: Bad Request 
Response data: Failed to authenticate Token

can anyone help me on this?

Source Link
N Ali
  • 1
  • 1
  • 2
  • 2

Jmeter - Post Data passes json data

The Project which I am working now require a performance test. So, I preferred Jmeter for load test and started learning one by one.

Now, When i recorded a test and included a CSV file for dynamic parameter. I see the recorded pages has clientid in many http POST data pages. This application passes a json data for sending request so in Body Parameter tab i see Json type data.

So, i added Json Post Extractor for one http request site passes alphanumeric value (5963948e2f123bd00a27d5cd). However, after i executing the test the page returns an error page.

POST http://192.168.1.10/api/editClient/getClientInfo/

POST data: {"clientId":"5963948e2f123bd00a27d5cd"}

Response code: 400 Response message: Bad Request Response data : Failed to authenticate Token

can anyone help me on this.