Is there a way to add parameters to a list of test cases?

Wednesday, January 24, 2024
Avatar

I've successfully added parameters to individual test cases using the Edit Parameters button inside each test case. I need to add the same parameter to a list of test cases (over 100). Is there a way to add it in bulk?

4 Replies
Thursday, January 25, 2024
Avatar
re: Andbeltar Wednesday, January 24, 2024

There is not a way to do this through the UI (currently). One idea in the future is to have a SpiraApp that will let you script actions inside the app, but that is not yet possible.

Probably the best way right now is to use our API to script this kind of mass change. I can provide some sample code if that would be helpful?

Thursday, January 25, 2024
Avatar
re: inflectra.david Thursday, January 25, 2024

Yes please. I'll give it a try.

Tuesday, January 30, 2024
Avatar
re: inflectra.david Thursday, January 25, 2024

Any news on that sample code?

Saturday, February 24, 2024
Avatar
re: Andbeltar Tuesday, January 30, 2024

Sorry for the delay, here's the API endpoint to use:

https://api.inflectra.com/Spira/Services/v7_0/RestServiceOperation.aspx?uri=projects%2f%7bproject_id%7d%2ftest-cases%2fparameters&method=POST

and the sample body would be:

{
"TestCaseId":123,
"Name":"myparameter",
"DefaultValue":"somevalue"
}

 

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, January 24, 2024
  • Last Reply: Saturday, February 24, 2024
  • Replies: 4
  • Views: 303