Extructure of UnitTest
Hi,
Are any of you in this forum that know how to structure UnitTest, testsuite and setup/tearDown in the correct way?
If I create the following structure:
allTest.py
def suite():
return unittest.
if __name__ == '__main__':
unittest.
A_test.py
class ATestCase(
def test_build_
def test_build_
def test_build_
B_test.py
classBTestCase(
def test_build_
def test_build_
def test_build_
C_test.py
class CTestCase(
def test_build_
def test_build_
def test_build_
Init.py
class TestInit(
def setUp(self):
global ffApp
ffLoc = r'C:\Program\
ffTitle = "Mozilla Firefox"
ffApp = App(ffTitle) # app object "containing" all FF windows
if not ffApp.window():
wait(4)
print("type zaci url..")
type('l', KEY_CTRL)
paste('https:/
with Region(
wait(2)
wait(2)
def tearDown(self):
wait(2)
wait(5)
Any comment and feedback will appreciated.
//RB
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Reinaldo Burgos for more information if necessary.