You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I'm trying to import a feature file into XRAY through the REST API as specified in the docs here:
I have tried using Postman/curl/jenkins plugin to import a .feature file to our Jira instance but I always get 500 NPE.
Here's the error message I get:
the stacktrace was too long so I made a pastebin
here's the curl example:
curl -H "Content-Type: multipart/form-data" -u username:mypassword -F "file=xraytest.feature" https://myserver/rest/raven/1.0/import/feature?projectKey=XRDUMMY
I've tried all combinations of .feature files. Tagged with requirement, untagged, empty and copy pasted the examples from the docs. Even though I'm sure I shouldn't get such an exception even if something was incorrect.
Here's a picture showing I got the project key right.
Here's a picture of a postman try.
If anyone could help me out it'd be great.