getting XRAY dataset and parameters with API

eajeoSanteup
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!
September 2, 2021

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.
September 7, 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]

eajeoSanteup
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!
September 8, 2021

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.
September 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]

patrickalbaret January 26, 2022

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