I am using import api through curl for test results but getting error that couldn't read json file.
I tried accessing the file using cat command it's accessible but while passing it through api it's not working
Command I am Using
curl -D- -u UserName:Password -X POST -d @D:\buildagent1\work\b1faac57a698b688\reports\json\cucumber_report.2140.json https://sereverName/rest/raven/1.0/import/execution/cucumber --header "Content-Type: application/json" -H "Accept: application/json"
Error: Warning: Couldn't read data from file Warning: "'D:\buildagent1\work\b1faac57a698b688\reports\json\cucumber_report.2140.json'", this makes an empty POST.
It means what it says - the file is not readable.
It's either not there, not permissioned for you or possibly not well-formed json (although I doubt the last as curl doesn't care what the content of a file is)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.