@@ -43,7 +43,11 @@ def _changePositionalArgConfig(self):
4343 'testprojectid' , 'authorlogin' , 'summary' ] #, 'steps']
4444 # getTestCase
4545 pos_arg_config ['getTestCase' ] = ['testcaseid' ]
46-
46+ # createVuild
47+ pos_arg_config ['createBuild' ] = ['testplanid' , 'buildname' , 'buildnotes' ]
48+ # reportTCResult
49+ pos_arg_config ['reportTCResult' ] = ['testcaseid' , 'testplanid' ,
50+ 'buildname' , 'status' , 'notes' ]
4751 #
4852 # BUILT-IN API CALLS
4953 #
@@ -304,15 +308,15 @@ def getTotalsForTestPlan(self, testplanid):
304308# argsAPI[paramlist[0]] = paramlist[1]
305309# return self._callServer('createTestProject', argsAPI)
306310
307- def createBuild (self , testplanid , buildname , buildnotes ):
308- """ createBuild :
309- Creates a new build for a specific test plan
310- """
311- argsAPI = {'devKey' : self .devKey ,
312- 'testplanid' : str (testplanid ),
313- 'buildname' : str (buildname ),
314- 'buildnotes' : str (buildnotes )}
315- return self ._callServer ('createBuild' , argsAPI )
311+ # def createBuild(self, testplanid, buildname, buildnotes):
312+ # """ createBuild :
313+ # Creates a new build for a specific test plan
314+ # """
315+ # argsAPI = {'devKey' : self.devKey,
316+ # 'testplanid' : str(testplanid),
317+ # 'buildname' : str(buildname),
318+ # 'buildnotes' : str(buildnotes)}
319+ # return self._callServer('createBuild', argsAPI)
316320
317321# def createTestPlan(self, *args):
318322# """ createTestPlan :
@@ -391,25 +395,25 @@ def createTestCase(self, *argsPositional, **argsOptional):
391395# self.stepsList = []
392396# return ret
393397
394- def reportTCResult (self , testcaseid , testplanid , buildname , status , notes ):
395- """
396- Report execution result
397- testcaseid: internal testlink id of the test case
398- testplanid: testplan associated with the test case
399- buildname: build name of the test case
400- status: test verdict ('p': pass,'f': fail,'b': blocked)
401-
402- Return : [{'status': True, 'operation': 'reportTCResult', 'message': 'Success!', 'overwrite': False, 'id': '37'}]
403- id correspond to the executionID needed to attach files to a test execution
404- """
405- argsAPI = {'devKey' : self .devKey ,
406- 'testcaseid' : testcaseid ,
407- 'testplanid' : testplanid ,
408- 'status' : status ,
409- 'buildname' : buildname ,
410- 'notes' : str (notes )
411- }
412- return self ._callServer ('reportTCResult' , argsAPI )
398+ # def reportTCResult(self, testcaseid, testplanid, buildname, status, notes ):
399+ # """
400+ # Report execution result
401+ # testcaseid: internal testlink id of the test case
402+ # testplanid: testplan associated with the test case
403+ # buildname: build name of the test case
404+ # status: test verdict ('p': pass,'f': fail,'b': blocked)
405+ #
406+ # Return : [{'status': True, 'operation': 'reportTCResult', 'message': 'Success!', 'overwrite': False, 'id': '37'}]
407+ # id correspond to the executionID needed to attach files to a test execution
408+ # """
409+ # argsAPI = {'devKey' : self.devKey,
410+ # 'testcaseid' : testcaseid,
411+ # 'testplanid' : testplanid,
412+ # 'status': status,
413+ # 'buildname': buildname,
414+ # 'notes': str(notes)
415+ # }
416+ # return self._callServer('reportTCResult', argsAPI)
413417
414418
415419
0 commit comments