SpiraTest v6.X API : Test Case Requirement Coverage

Wednesday, July 5, 2023
Avatar

Hi,

 

I'm currently working on some automation program in Python with the SpiraTest v6.X API, and so far I did not have any issue with the API.

But today, I tried to access the endpoint used for getting the Requirement Coverage of a Test Case, here in the documentation : https://api.inflectra.com/Spira/Services/v6_0/RestService.aspx#Test%20Case%20Requirement%20Coverage

When requesting this particular endpoint, I receive an error 404, saying this endpoint does not exist.

Here's my request (the spira url, my username and api-key are blanked out on purpose) :

https://SPIRA_URL/SpiraTest/services/v6_0/RestService.svc/projects/9/test-cases/16662/requirements?username=USERNAME&api-key=API-KEY

I tried to search online for related topics, but I found nothing, so I'm wondering if it's a real bug, or just an issue with the way SpiraTest was setup by my company...

Any help would be appreciated :)

4 Replies
Wednesday, July 5, 2023
Avatar
re: LordMoneillon Wednesday, July 5, 2023

What version of Spira are you using?

That way I can check if the API endpoint exists in that version?

Regards

David

Wednesday, July 5, 2023
Avatar
re: inflectra.david Wednesday, July 5, 2023

I am using SpiraTest v.6.8.0.2, I'msorry I did not specify this.

Wednesday, July 5, 2023
Avatar
re: LordMoneillon Wednesday, July 5, 2023

Hi

To check the endpoints in your version, please use this URL:

https://yourbaseurl/Services/v6_0/RestService.aspx#Test%20Case%20Requirement%20Coverage

If not listed, then I'd upgrade to v7.6.1.

Regards

David

 

Thursday, July 6, 2023
Avatar
re: inflectra.david Wednesday, July 5, 2023

Hi, thanks for you answer.

Unfortunately, by using the URL you sent me, I could identify that the endpoint is truly missing on our version of SpiraTest, and I don't think the CI/CD team in my company will upgrade the version as soon as I need them to.

I will try to code a work-around myself :)

Thanks again, and have a nice day.

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Wednesday, July 5, 2023
  • Last Reply: Tuesday, September 5, 2023
  • Replies: 4
  • Views: 1026