Forums

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

Facing issue for import XML file Rest API Junit XML

Mahesh bhandigare
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!
August 2, 2020

I want sample code for importing xml file with POST options. In Postman I need to select binary opotion in body section, I want to write program with request-prmoise npm packages and I am not getting proper syntax hence I am unable import xml file in XRAY from code

1 answer

0 votes
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.
August 7, 2020

Hi @Mahesh bhandigare 

you may want to give a look at this open-source project that contains Postman collections for interacting with Xray on Jira Cloud and also on Jira server.

If you're looking for an npm package, there isn't an official one, unfortunately.

However, if you want some concrete  NodeJS code, you may inspire yourself on this package:

https://www.npmjs.com/package/jira-client-xray

This package seems to be made to support only Jira Server but with some minor hacks you should be able to update it in order to work for Xray Cloud; you'll need to add the authentication request in order to obtain the token that you will use then for invoking the REST API endpoint related to importing of results.

Hope this helps :)

 

Regards,

Sérgio

=======================================
Personal blog on testing, Agile and software development: https://sergiofreire.com
Follow me on Twitter: https://twitter.com/darktelecom

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events