Forums

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

Export cucumber test from a testset for testautomation

Mirza Dedic
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 18, 2025

I am trying to export all test cases attached to a test set into a .feature file that can be used in a next pipeline step to execute these test cases.

The export part is in a python script and the jql looks something like this:

{jira_url}/rest/raven/1.0/export/test?jql=issue in testSetTests(TA-123)
I have also tryed 
        f"{jira_url}/rest/raven/1.0/export/test?jql={encoded_jql}"
        f"{jira_url}/rest/raven/1.0/export/testset/TA-123/cucumbe"
        f"{jira_url}/rest/raven/1.0/api/testset/TA-123/tests"
        f"{jira_url}/rest/raven/1.0/export/test?testSetKey=TA-123"
but nothing seems to work.

I get errors like:
< ? xml version="1.0" encoding="UTF-8" standalone="yes"?><status><status-code>404</status-code><message>null for uri: https://jira.bla.bla/rest/raven/1.0/export/testset/TA-123/cucumber</message></status>
Finishing: Get features from Jira
or
Error occurred while exporting raven tests.
Is there a way to export the test from a test set via xray api?

1 answer

0 votes
Valerie Knapp
Contributor
September 18, 2025

Hi @Mirza Dedic , welcome to the Atlassian Community and thanks for your post.

Xray does have some documentation on how to use the REST API to export data - https://docs.getxray.app/space/XRAY/301474143/Test+Sets+-+REST . Perhaps you have used this already to build the queries.

If you are still having trouble, you can open a ticket to Xray's service desk to ask for help here - https://marketplace.atlassian.com/apps/1211769/xray-test-management-for-jira?hosting=datacenter&tab=support 

Best wishes

Suggest an answer

Log in or Sign up to answer