Using SOAP API to add all test cases in particular release into a test set

Thursday, January 16, 2014
Avatar
I’d like to use the soap api to add all test cases in a particular release into a test set.  The problem is, I can’t figure out how to get a unique TestSetTestCaseMappingId.
I know it must be unique, but I don’t see any kind of generator.

Details:
TestSet_AddTestMapping takes RemoteTestSetTestCaseMapping?   As a parameter.
I can create the mapping, but, the definition is:

https://www.inflectra.com/SpiraDemo/Services/v4_0/ImportExport.aspx?datacontract=q49:RemoteTestSetTestCaseMapping and the fourth parameter is a TestSetTestCaseMapping id, defined as, “The unique id of the test case in the test set”  I do not know how to generate a unique id for this.  Should I just try random numbers until one does not throw an exception?
2 Replies
Thursday, January 16, 2014
Avatar
re: brucecran Thursday, January 16, 2014

Hi Bruce

You should be able to leave that parameter empty as it's actually created by the system when it adds the mapping.

Regards

Adam

Thursday, January 16, 2014
Avatar
re: inflectra.david Thursday, January 16, 2014
Thanks!

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: Thursday, January 16, 2014
  • Last Reply: Thursday, January 16, 2014
  • Replies: 2
  • Views: 2098