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.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events