зеркало из https://github.com/mono/qa.git
* Fixed bug in framework with testcaseid
* fixed bug when updating Testopia with zero length list svn path=/trunk/qa/; revision=138761
This commit is contained in:
Родитель
2830f861e1
Коммит
4731de2a7f
|
@ -14,11 +14,11 @@ import monotesting as mono
|
||||||
|
|
||||||
|
|
||||||
class monoTestCase(unittest.TestCase):
|
class monoTestCase(unittest.TestCase):
|
||||||
|
testcaseid = 0
|
||||||
|
|
||||||
def __init__(self,methodname="runTest"):
|
def __init__(self,methodname="runTest"):
|
||||||
unittest.TestCase.__init__(self,methodname)
|
unittest.TestCase.__init__(self,methodname)
|
||||||
self.verificationErrors = []
|
self.verificationErrors = []
|
||||||
self.testcaseid = 0
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def isTestCaseInTestRun(self):
|
def isTestCaseInTestRun(self):
|
||||||
|
|
|
@ -147,6 +147,8 @@ class monoTestopia(Testopia):
|
||||||
if self.canConnect:
|
if self.canConnect:
|
||||||
status = status.upper()
|
status = status.upper()
|
||||||
print "Updating %d %s test cases" % (len(ids),status)
|
print "Updating %d %s test cases" % (len(ids),status)
|
||||||
|
if len(ids) == 0:
|
||||||
|
return
|
||||||
caserun_ids = self.__convertToTestCaseRunIds(ids)
|
caserun_ids = self.__convertToTestCaseRunIds(ids)
|
||||||
self.testcaserun_update(caserun_ids=caserun_ids,case_run_status_id=BUG_STATUS[status])
|
self.testcaserun_update(caserun_ids=caserun_ids,case_run_status_id=BUG_STATUS[status])
|
||||||
#else:
|
#else:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче