Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,779
Community Members
 
Community Events
176
Community Groups

Why is description field mandatory for xray generic tests

I am attempting to pass a JUNIT XML test result to xray using 

curl -H "Content-Type: text/xml" -X POST -H "Authorization: Bearer $token"  --data @"data.xml" https://xray.cloud.xpand-it.com/api/v1/import/execution/junit?projectKey=XTP

 

This should create a "generic test" result however I am receiving an error due to the description field being mandatory.  {"error":"Error creating Test Execution - Description is required."}

 

How can this be avoided.  Can the description field be non mandatory for the generic test type only or do I need to send a multipart request?

1 answer

Hi @Kevin Malley 

The error refers to the issue Description, which must be mandatory in your project.

So you have two options here, make the field Description optional in your project or use the multipart REST API to provide a description.

When you import a JUnit XML, it will create new Test Executions, which are based on Jira Issues. So if your project requires that the Description of issues is mandatory, Xray cannot create a Test Execution issue without a Description. So either you make it optional or you use the multipart REST API to send the Description text to be used when creating the issue (Test Execution).

Kind regards,
Rogério Paiva [Xray Support Team]

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS

Atlassian Community Events