Automatic status on test set

Monday, March 3, 2014
Avatar
Hello,

We are running an automated test suite where we have a Spira Team addin, which reports the status of each of the test cases after the execution is complete.
Our solution uses the web services to report the test case statuses; TestRun_RecordAutomated2 more specifically. 

But once the full automation suite has been completed, we want the status of the test set (where the test cases are located) to change appropriately. How is this done?
Right now, all of the test cases have their statuses filled out, but nothing happens with the Test Set status when the execution is complete. 

If possible it would also be nice to be able to set the Test Set status to "In progress" when Jenkins starts the test set. 

We are executing the test cases from an automated environment, triggered by Jenkins. So no direct manipulation from Spira Team, other than that Jenkins is asking which Test Set is to be run. 
Our test cases is programmed in C#.

Kind regards,
John Lunde Flennmark
Consafe Logistics
1 Replies
Thursday, March 6, 2014
Avatar
inflectra.sarahx
re: flennmark Monday, March 3, 2014
Hi John Lunde

All you need to do is call the TestSet_Update (...) function to change the status of the overall test set. Just do a TestSet_RetrieveById(...) first to get the current version, then change the status and send it back. the allowed status values are:

public enum TestSetStatus
{
NotStarted = 1,
InProgress = 2,
Completed = 3,
Blocked = 4,
Deferred = 5
}

Regards

Sarah

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: Monday, March 3, 2014
  • Last Reply: Thursday, March 6, 2014
  • Replies: 1
  • Views: 8535