1

am trying to implement testing for POST request to upload file using csv file format.But getting response as 500 exception.

Given path  location + 'abc/ssd?&id=22'
And multipart file myFile = { read: 'test.csv', filename: 'test.csv', ContentType: 'text/csv' }
When method post
Then status 200


Response : 
Content-Type : multipart/form-data; boundary=jyrjg5ysdfdgj4gdgsjm2342
kumar
  • 11
  • 2
  • HTTP status 500 is Internal Server Error. So, it has to do with something that does not work in server. Your karate code/calls seem to be okay. – Elis Byberi Nov 16 '17 at 19:02
  • 1
    Sorry.. it worked fine..I gave wrong multipart name.thanks – kumar Nov 17 '17 at 15:38

1 Answers1

0

It is very hard to figure with the lack of details.

Anyway, note that it should be contentType with a lower-case c.

If you still have problems, try providing more info.

Peter Thomas
  • 54,465
  • 21
  • 84
  • 248