简体   繁体   中英

CSV Data Config Not Sending Data to HTTP Request

I have recorded a test script for user authentication and am trying to send data by using a CSV file. I have tried this previously for a post request and the parameters were being sent fine but it doesnt seem to be working for the test script.

The error i get in my response body from the result tree is: {"EXCEPTION":"com.google.gson.JsonSyntaxException","ERROR":"com.google.gson.stream.MalformedJsonException: Unterminated object at line 1 column 16 path $.username"}

Attaching screenshots below for you to understand better.

Variables I've set for authenticate call

Settings for my CSV Data Set Config element

We cannot help without seeing:

  1. First 2 lines of your CSV file
  2. Whether the variables are getting read by JMeter (output of the Debug Sampler )
  3. What request is actually being sent to the server (Request -> Request Body) tab of the View Results Tree listener
  4. Any suspicious entries from jmeter.log file

if you won't be able to figure out what's wrong using the above hints - update your question with all the mentioned data and we'll try to assist

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM