зеркало из https://github.com/mono/qa.git
Working on winforms tests
This commit is contained in:
Родитель
6d86d18f08
Коммит
f636d85037
|
@ -96,6 +96,7 @@ def __loadargs(cmdargs):
|
|||
global graffiti_port, apache_port, verbose, logfile
|
||||
global usexsp2,usexsp4
|
||||
global username,password,failed
|
||||
global message
|
||||
|
||||
longargs = value_args.keys()
|
||||
shortargs = 'hvu:p:'
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
import sys, unittest, time, re
|
||||
|
||||
sys.path.append('..')
|
||||
sys.path.append('../..')
|
||||
import common.monotesting as mono
|
||||
from winformsTestCase import winformsTestCase
|
||||
|
||||
|
||||
class WinForms_AderPlotterTest(winformsTestCase):
|
||||
class WinForms_AderPlotter426249Test(winformsTestCase):
|
||||
testcaseid = 426249
|
||||
command = 'AderPlotter'
|
||||
message = 'Add the Plot y=2*x'
|
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import sys, unittest, time, re
|
||||
|
||||
sys.path.append('../..')
|
||||
import common.monotesting as mono
|
||||
from winformsTestCase import winformsTestCase
|
||||
|
||||
|
||||
class WinForms_AderPlotter426251Test(winformsTestCase):
|
||||
testcaseid = 426251
|
||||
command = 'AderPlotter'
|
||||
message = 'Add the Plot y=sin(x)'
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
mono.monotesting_main()
|
||||
|
||||
|
||||
# vim:ts=4:expandtab:
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/python
|
||||
import sys
|
||||
|
||||
sys.path.append('../..')
|
||||
from common.monotesting import *
|
||||
|
||||
# sub directories
|
||||
# Add child test suites to test suite
|
||||
|
||||
from AderPlotter426249 import *
|
||||
from AderPlotter426251 import *
|
||||
|
||||
if __name__ == '__main__':
|
||||
monotesting_main()
|
||||
|
||||
# vim:ts=4:expandtab:
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/python
|
||||
import sys
|
||||
|
||||
sys.path.append('..')
|
||||
from common.monotesting import *
|
||||
|
||||
# sub directories
|
||||
# Add child test suites to test suite
|
||||
|
||||
from aderplotter.alltests import *
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
monotesting_main()
|
||||
|
||||
|
||||
# vim:ts=4:expandtab:
|
|
@ -5,7 +5,12 @@ import traceback
|
|||
import subprocess
|
||||
import Tkinter, tkMessageBox
|
||||
|
||||
sys.path.append('..')
|
||||
basepath = os.path.dirname(os.path.realpath(__file__))
|
||||
while not os.path.isfile(os.path.join(basepath,'common','monoTestCase.py')):
|
||||
basepath = os.path.dirname(basepath)
|
||||
if not basepath in sys.path:
|
||||
sys.path.append(basepath)
|
||||
|
||||
import common.monotesting as mono
|
||||
from common.monoTestCase import monoTestCase
|
||||
|
||||
|
@ -18,16 +23,16 @@ from common.monoTestCase import monoTestCase
|
|||
class winformsTestCase(monoTestCase):
|
||||
testcaseid = 0
|
||||
command = ''
|
||||
global message
|
||||
message = ''
|
||||
|
||||
def __init__(self,methodname='runTest'):
|
||||
monoTestCase.__init__(self,methodname)
|
||||
self.verificationErrors = []
|
||||
self.canRun = True # This value is deprecated
|
||||
|
||||
def setUp(self):
|
||||
mono.log("Setting up test case %d" % self.testcaseid)
|
||||
self.canRun = self.isTestCaseInTestRun()
|
||||
# self.canRun = self.isTestCaseInTestRun()
|
||||
if not self.canRun:
|
||||
mono.log(" Test case #%d is not found in the test run.... skipping" % self.testcaseid)
|
||||
return
|
||||
|
@ -53,6 +58,6 @@ class winformsTestCase(monoTestCase):
|
|||
def tearDown(self):
|
||||
if not self.canRun:
|
||||
return
|
||||
self.updateTestCase(self.verificationErrors)
|
||||
# self.updateTestCase(self.verificationErrors)
|
||||
self.assertEqual([], self.verificationErrors)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче