Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Need sample payload for testCaseInfo.json

mrajaram
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 13, 2020

 We are trying to send additional Xray test case attribute through testCaseInfo.json file while importing a feature file . Do you have a sample payload to send testInfo as part of form_data? 

End point we use:

"https://xray.cloud.xpand-it.com/api/v1/import/feature?projectKey

 

1 answer

0 votes
José Domingues _Xray_
Atlassian Partner
July 16, 2020

HI @mrajaram 

To see all the fields that can be passed through the JSON file when using the multipart endpoint, please take a look into this link: https://confluence.xpand-it.com/display/XRAYCLOUD/Import+Execution+Results#ImportExecutionResults-XrayJSONformat

Best Regards,

Team Xray 

Sergio Freire - Xblend
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2020

HI @mrajaram ,

please take a look at the JUnit XML multipart endpoint in the docs, you need to click the example to see the details.

 

https://confluence.xpand-it.com/display/XRAYCLOUD/Import+Execution+Results+-+REST#ImportExecutionResultsREST-JUnitXMLresultsMultipart

 

For more information about that JSON format, check the Jira documentation here. Xray will ignore the issue type and the summary fields on the Test JSON file since these are provided by the importation.

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-post

 

Basically, we use the JSON format and the "fields" object that you provide on Jira REST API calls to update/create issues.

 

Regards,

Sergio

Suggest an answer

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

Atlassian Community Events