Forums

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

Hi, i am trying to associate existing Tests to the Test set using REST API, but it throws 404 respon

Priyanka Gupta August 29, 2023
add_test_cases_endpoint = add_test_cases_url.replace("{testSetKey}", test_set_key)
 Payload:
add_test_case_payload = {
"add": [
"DX-71035",
"DX-71036"
]
}

add_test_case_response = requests.post(
add_test_cases_endpoint,
headers=headers,
auth=(username, api_token),
json=add_test_case_payload
)
Same auth is working with other API.
Response:
{"message":"null for uri: https://dremio.atlassian.net/rest/raven/1.0/api/testset/DX-71046/test","status-code":404}

1 answer

0 votes
Marc - Devoteam
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 29, 2023

Hi @Priyanka Gupta 

What Test app are you using in Jira?

This will help members of the community to help you out, as currently we don't know what app is used for testing.

Priyanka Gupta August 29, 2023

Hi @Marc - Devoteam , I am using XRAY app.

Marc - Devoteam
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 30, 2023

Hi @Priyanka Gupta 

Are you on Cloud or Server/Data Center?

This question is here a I know that using the /rest/raven option in your URL to call the API is a Server/DC option and not cloud

And in Cloud this is not an API action that can be achieved. There is no option for associating existing Tests to a Test set via the API

Priyanka Gupta August 31, 2023

Hi @Marc - Devoteam ,

 

Thanks for response. But we are using JIRA Server.

Marc - Devoteam
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 31, 2023

Hi @Priyanka Gupta 

This part of the URL tell me you are on Atlassian Cloud

"https://dremio.atlassian.net"

Jira Server is self hosted and can't use the domain name atlasisan.net.

So you are using Jira Software in the Cloud, the Xray API doesn't offer this action.

See documentation on Xray Cloud.

https://docs.getxray.app/display/XRAYCLOUD/REST+API 

Priyanka Gupta August 31, 2023

@Marc - Devoteam : Then in that case when there is no API for that, what is the way to associate tests to test set ? 

Marc - Devoteam
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 31, 2023

Hi @Priyanka Gupta 

You can only to this within Xray in Jira.

There are no API options.

See the topic Test Set in the Xray documentation

Suggest an answer

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

Atlassian Community Events