Thread

Skip Navigation LinksForums > SpiraTest Forums > SpiraTest Issues & Questi... > Using SOAP API to add all...

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

Thursday, January 16, 2014
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
Adam SAdam S
re: Bruce Cran on Thursday, January 16, 2014
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

Bruce CranBruce Cran
re: Adam S on Thursday, January 16, 2014
Thursday, January 16, 2014
Thanks!
Tagged
Statistics
  • Started: 1/16/2014
  • Last Reply: 1/16/2014
  • Replies: 2
  • Views: 699
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2016 | Licensed to Inflectra Corporation.