While importing multiple cucumber JSON results to XRAY using REST API, got the below error.
customfield_16546: Squad is required.
This issue is intermittent.
hi @syamphaneendra could you please let me nwo how did you imported multiple json results in a single instance,any details please
Hi @rgnair
You can import multiple JSON results using the Rest API of XRAY. I will leave below documentation so that can you see how to do it:
Best Regards,
Team Xray
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In my project there is 2 feature files and its generating a single cucmber.json file with two arrays of results for each feature file.I want to post this results to two separate existing execution key through a single curl command.initially i posted the cucumber.json with below curl command and then whole results are posting in one execution key(First feature file mapped key in @feature)even though both the execution keys are present in combined cucumber json file.
Used below command for this
POST /rest/raven/1.0/import/execution/cucumber
Next i splitted this cucmber json to 2 seperate json file suppose json1&json2 for each feature file. i zipped this file to a single folder.
Then i tried with zip file of above Json1&json2 with below bundle command.Its not throwing any messages in curl terminal but no updates in execution key or anywhere
POST /rest/raven/1.0/import/execution/bundle
can you advice me on this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @rgnair
The /bundle endpoint is used to import multiple results file at once and then you'll have the results in a Test Execution created to hold these results. Please follow the documentation below:
Bundle endpoint
However, we suggest contacting us through our service desk.
Best Regards,
Team Xray
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Syamphaneendra,
You should check the configuration of the custom field with id 16546.
Probably you have that field as required in the Test Execution issue. If so, you can either make it as optional or use the Cucumber multipart endpoint instead, so that you can provide the value for that field.
Best regards,
Xray Team
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.