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

Thursday, January 16, 2014 6:34:02 PM
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:

http://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 8:18:53 PM
Avatar
re: brucecran on Thursday, January 16, 2014 6:34:02 PM

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 9:11:12 PM
Avatar
re: inflectra.adam on Thursday, January 16, 2014
Thanks!
Statistics
  • Started: Thursday, January 16, 2014 6:34:02 PM
  • Last Reply: Thursday, January 16, 2014 9:11:12 PM
  • Replies: 2
  • Views: 826