3838 'createTestProject' : ['testprojectname' , 'testcaseprefix' ],
3939 'createTestSuite' : ['testprojectid' , 'testsuitename' , 'details' ],
4040 'getBuildsForTestPlan' : ['testplanid' ],
41+ 'getFirstLevelTestSuitesForTestProject' : ['testprojectid' ],
4142 'getLatestBuildForTestPlan' : ['testplanid' ],
4243 'getProjectTestPlans' : ['testprojectid' ],
44+ 'getTestCasesForTestSuite' : ['testsuiteid' ],
4345 'getTestPlanByName' : ['testprojectname' , 'testplanname' ],
4446 'getTestPlanPlatforms' : ['testplanid' ],
4547 'getTestProjectByName' : ['testprojectname' ],
48+ 'getTestSuiteByID' : ['testsuiteid' ],
49+ 'getTestSuitesForTestPlan' : ['testplanid' ],
50+ 'getTestSuitesForTestSuite' : ['testsuiteid' ],
4651 'getTotalsForTestPlan' : ['testplanid' ],
4752 'doesUserExist' : ['user' ],
4853 'repeat' : ['str' ],
@@ -81,10 +86,11 @@ def decoMakerApiCallReplaceTLResponseError(replaceCode=None):
8186
8287 Default (replaceCode=None) handles the cause 'Empty Result'
8388 - ok for getProjectTestPlans, getBuildsForTestPlan, which returns just ''
84- Problem is getTestPlanByName
85- - this does not return just '', it returns the error message
86- 3041: Test plan (name:TestPlan_API) has no platforms linked
87- coudl be handled with replaceCode=3041
89+ Problems are getTestPlanByName, getFirstLevelTestSuitesForTestProject
90+ - they do not return just '', they returns the error message
91+ 3041: Test plan (noPlatform) has no platforms linked
92+ 7008: Test Project (noSuite) is empty
93+ could be handled with replaceCode=3041 / replaceCode=7008
8894
8995 """
9096 # for understanding, what we are doing here please read
@@ -279,7 +285,7 @@ def getProjectTestPlans(self):
279285# */
280286# public function getBuildsForTestPlan($args)
281287
282- @decoMakerApiCallReplaceTLResponseError ()
288+ @decoMakerApiCallReplaceTLResponseError ()
283289 @decoApiCallAddDevKey
284290 @decoApiCallWithArgs
285291 def getBuildsForTestPlan (self ):
@@ -290,14 +296,15 @@ def getBuildsForTestPlan(self):
290296 returns an empty list, if no build is assigned """
291297
292298
293- # * List test suites within a test plan alphabetically
294- # *
295- # * @param struct $args
296- # * @param string $args["devKey"]
297- # * @param int $args["testplanid"]
298- # * @return mixed $resultInfo
299- # */
300- # public function getTestSuitesForTestPlan($args)
299+ @decoMakerApiCallReplaceTLResponseError ()
300+ @decoApiCallAddDevKey
301+ @decoApiCallWithArgs
302+ def getTestSuitesForTestPlan (self ):
303+ """ getTestSuitesForTestPlan : List test suites within a test plan alphabetically
304+ positional args: testplanid
305+ optional args : ---
306+
307+ returns an empty list, if no build is assigned """
301308
302309 @decoApiCallAddDevKey
303310 @decoApiCallWithArgs
@@ -333,6 +340,18 @@ def createTestProject(self):
333340# */
334341# public function getTestCasesForTestSuite($args)
335342
343+ @decoMakerApiCallReplaceTLResponseError ()
344+ @decoApiCallAddDevKey
345+ @decoApiCallWithArgs
346+ def getTestCasesForTestSuite (self ):
347+ """ getTestCasesForTestSuite : List test suites within a test plan alphabetically
348+ positional args: testsuiteid
349+ optional args : deep, details
350+
351+ details - default is simple,
352+ use full if you want to get summary,steps & expected_results
353+
354+ returns an empty list, if no build is assigned """
336355
337356# /**
338357# * Find a test case by its name
@@ -473,6 +492,19 @@ def reportTCResult(self):
473492# */
474493# public function getFirstLevelTestSuitesForTestProject($args)
475494
495+ @decoMakerApiCallReplaceTLResponseError (7008 )
496+ @decoApiCallAddDevKey
497+ @decoApiCallWithArgs
498+ def getFirstLevelTestSuitesForTestProject (self ):
499+ """ getFirstLevelTestSuitesForTestProject : get set of test suites
500+ AT TOP LEVEL of tree on a Test Project
501+
502+ positional args: testprojectid
503+ optional args : ---
504+
505+ returns an empty list, if no suite is assigned (api error 7008)
506+ - details see comments for decoMakerApiCallReplaceTLResponseError """
507+
476508# /**
477509# * Assign Requirements to a test case
478510# * we can assign multiple requirements.
@@ -598,30 +630,26 @@ def createTestPlan(self):
598630# */
599631# public function deleteExecution($args)
600632
601- # /**
602- # * Return a TestSuite by ID
603- # *
604- # * @param
605- # * @param struct $args
606- # * @param string $args["devKey"]
607- # * @param int $args["testsuiteid"]
608- # * @return mixed $resultInfo
609- # *
610- # * @access public
611- # */
612- # public function getTestSuiteByID($args)
613633
614- # /**
615- # * get list of TestSuites which are DIRECT children of a given TestSuite
616- # *
617- # * @param struct $args
618- # * @param string $args["devKey"]
619- # * @param int $args["testsuiteid"]
620- # * @return mixed $resultInfo
621- # *
622- # * @access public
623- # */
624- # public function getTestSuitesForTestSuite($args)
634+ @decoApiCallAddDevKey
635+ @decoApiCallWithArgs
636+ def getTestSuiteByID (self ):
637+ """ getTestSuiteByID : Return a TestSuite by ID
638+
639+ positional args: testsuiteid
640+ optional args : --- """
641+
642+
643+ @decoMakerApiCallReplaceTLResponseError ()
644+ @decoApiCallAddDevKey
645+ @decoApiCallWithArgs
646+ def getTestSuitesForTestSuite (self ):
647+ """ getTestSuitesForTestSuite : get list of TestSuites which are DIRECT
648+ children of a given TestSuite
649+ positional args: testsuiteid
650+ optional args : ---
651+
652+ returns an empty list, if no platform is assigned """
625653
626654# /**
627655# * Returns the list of platforms associated to a given test plan
@@ -645,7 +673,7 @@ def getTestPlanPlatforms(self):
645673 positional args: testplanid
646674 optional args : ---
647675
648- returns an empty list, if no platform is assigned
676+ returns an empty list, if no platform is assigned (api error 3041)
649677 - details see comments for decoMakerApiCallReplaceTLResponseError """
650678
651679# /**
0 commit comments