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,560,639
Community Members
 
Community Events
185
Community Groups

getting XRAY dataset and parameters with API

i would like to get the datasets  in an Test xray issue.

 

I had a look to the documentation for Xray Cloud: https://docs.getxray.app/display/XRAYCLOUD/GraphQL+API

But I don't know the property name for dataset in the GetTest query.

 

Where shall I find available keys for a test issue? What is an example for dataset?

thanks for your help.

1 answer

0 votes
Rogério Paiva - Xray Xporter
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.
Sep 07, 2021

Hi @eajeoSanteup 

The dataset information is found at the TesRun level.

You need to get the TestRun information from the Test and then get the dataset information from the TestRunParameter.

https://xray.cloud.xpand-it.com/doc/graphql/testrun.doc.html

Any additional questions, please get in touch with Xray Support (http://xraysupport.getxray.app); we would gladly assist you.

Thank you.

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

Thanks a lot for your Answer.

 

But, in the graphical interface, the dataset and parameters are also  attached to the Test object. (when you are in a design phase)

 

Does this information available thru graphQl?

thanks

Rogério Paiva - Xray Xporter
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.
Sep 22, 2021

Hi @eajeoSanteup 

Sorry, currently it is not possible, but we are working to expand the GraphQL features.

Thank you.

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

It seems we can export dataset to a csv file thru API
/rest/raven/2.0/api/dataset/export?testIssueKey=

 

or having the dataset information when doing a Get on the Test object
/rest/api/2/issue/testKey

"customfield_16803": {
            "datasetRestBean": {
                "params": [
                    {
                        "param": {
                            "id"1,
                            "name""Url",
                            "rank"0,
                            "combinatorial"false,
                            "info": {
                                "type""TEXT"
                            }
                        },
                        "values": [
                            {
                                "value""http://test",
                                "rank"0
                            },
                            {
                                "value""http://prod",
                                "rank"1
                            }
                        ]
                    },
                    {
                        "param": {
                            "id"2,
                            "name""Environnement",
                            "rank"1,
                            "combinatorial"false,
                            "info": {
                                "type""TEXT"
                            }
                        },
                        "values": [
                            {
                                "value""TEST",
                                "rank"0
                            },
                            {
                                "value""PROD",
                                "rank"1
                            }
                        ]
                    }
                ]
            }
        },

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events