예제 #1
0
def session_setup_teardown():
	with testit.step('session conf setup step 1'):
		with testit.step('session conf setup step 1.2'):
			assert True
	yield
	with testit.step('session conf teardown step 1'):
		with testit.step('session conf teardown step 1.2'):
			assert True
예제 #2
0
def class_setup_teardown():
	with testit.step('class conf setup step 1'):
		with testit.step('class conf setup step 1.2'):
			assert True
	yield
	with testit.step('class conf teardown step 1'):
		with testit.step('class conf teardown step 1.2'):
			assert True
예제 #3
0
def method_setup_teardown():
	with testit.step('method conf setup step 1'):
		with testit.step('method conf setup step 1.2'):
			assert True
	yield
	with testit.step('method conf teardown step 1'):
		with testit.step('method conf teardown step 1.2'):
			assert True
예제 #4
0
def module_setup_teardown():
	with testit.step('module conf setup step 1'):
		with testit.step('module conf setup step 1.2'):
			assert True
	yield
	with testit.step('module conf teardown step 1'):
		with testit.step('module conf teardown step 1.2'):
			assert True
예제 #5
0
 def test_1(self, name, labels, url, link_type, link_title):
     testit.addLink(title='component_dump.dmp',
                    type=testit.LinkType.RELATED,
                    url='https://dumps.example.com/module/some_module_dump')
     testit.addLink(title='component_dump.dmp',
                    type=testit.LinkType.BLOCKED_BY,
                    url='https://dumps.example.com/module/some_module_dump')
     testit.addLink(title='component_dump.dmp',
                    type=testit.LinkType.DEFECT,
                    url='https://dumps.example.com/module/some_module_dump')
     testit.addLink(title='component_dump.dmp',
                    type=testit.LinkType.ISSUE,
                    url='https://dumps.example.com/module/some_module_dump')
     testit.addLink(title='component_dump.dmp',
                    type=testit.LinkType.REQUIREMENT,
                    url='https://dumps.example.com/module/some_module_dump')
     testit.addLink(title='component_dump.dmp',
                    type=testit.LinkType.REPOSITORY,
                    url='https://dumps.example.com/module/some_module_dump')
     with testit.step('Log in the system', 'system authentication'):
         with testit.step('Enter the login', 'login was entered'):
             with testit.step('Enter the password', 'password was entered'):
                 assert True
         with testit.step('Create a project', 'the project was created'):
             with testit.step('Enter the project',
                              'the contents of the project are displayed'):
                 assert True
             with testit.step('Create a test case',
                              'test case was created'):
                 assert True
     with testit.step('Attachments'):
         testit.attachments(join(dirname(__file__), 'docs/text_file.txt'),
                            join(dirname(__file__), 'pictures/picture.jpg'),
                            join(dirname(__file__), 'docs/document.docx'))
         testit.attachments(join(dirname(__file__), 'docs/document.doc'),
                            join(dirname(__file__), 'docs/logs.log'))
         assert True
     with testit.step('step 3'):
         assert True
     with testit.step('step 4'):
         assert True
예제 #6
0
def test_6(wi, value_type, value_id, labels, title, url, title_link):
	testit.addLink(title='component_dump.dmp', type=testit.LinkType.RELATED, url='https://dumps.example.com/module/some_module_dump')
	testit.addLink(type=testit.LinkType.BLOCKED_BY, url='https://dumps.example.com/module/some_module_dump')
	testit.addLink(type=testit.LinkType.DEFECT, url='https://dumps.example.com/module/some_module_dump')
	testit.addLink(type=testit.LinkType.ISSUE, url='https://dumps.example.com/module/some_module_dump')
	testit.addLink(type=testit.LinkType.REQUIREMENT, url='https://dumps.example.com/module/some_module_dump')
	testit.addLink(type=testit.LinkType.REPOSITORY, url='https://demo.testit.software/projects/4/autotests/test-runs/e267a03b-fa03-41ba-9812-c803c828237f')
	with testit.step('step 1'):
		with testit.step('step 1.1'):
			with testit.step('step 1.1.1'):
				assert True
		with testit.step('step 1.2'):
			with testit.step('step 1.2.1'):
				assert True
			with testit.step('step 1.2.2'):
				assert True
	with testit.step('step 2'):
		assert True
	with testit.step('step 3'):
		assert True
	with testit.step('step 4'):
		assert True
예제 #7
0
def setup_module():
    with testit.step('Unittest test_case_1 setup module step 1'):
        assert True
예제 #8
0
 def teardown_method(self):
     with testit.step('Test1 unittest test_case_1 method step 1'):
         with testit.step('Test1 unittest test_case_1 method step 1.1'):
             with testit.step(
                     'Test1 unittest test_case_1 method step 1.1.1'):
                 assert True
예제 #9
0
 def teardown_class(self):
     with testit.step('Test1 unittest test_case_1 class step 1'):
         with testit.step('Test1 unittest test_case_1 class step 1.1'):
             with testit.step(
                     'Test1 unittest test_case_1 class step 1.1.1'):
                 assert True
예제 #10
0
 def setup_method(self):
     with testit.step('Test1 unittest test_case_1 method step 1'):
         assert True
예제 #11
0
 def setup_class(self):
     with testit.step('Test1 unittest test_case_1 class step 1'):
         assert True
예제 #12
0
def teardown_module():
    with testit.step('Unittest test_case_1 teardown module step 1'):
        assert True
예제 #13
0
def teardown_module():
	with testit.step('unittest teardown test_2 module step 1'):
		assert True
예제 #14
0
def setup_module():
	with testit.step('unittest setup test_2 module step 1'):
		assert True