Exemplo n.º 1
0
 def setUp(self):
     self._project = datafilereader.construct_project(
         datafilereader.SIMPLE_PROJECT)
     self._test = datafilereader.get_ctrl_by_name(
         'Test Case', self._project.datafiles[0].tests)
     self._keyword = datafilereader.get_ctrl_by_name(
         'Keyword', self._project.datafiles[0].keywords)
     print(self._keyword)
Exemplo n.º 2
0
 def setUpClass(cls):
     cls.ctrl = datafilereader.construct_project(
         datafilereader.SIMPLE_TEST_SUITE_PATH)
     cls.ts1 = datafilereader.get_ctrl_by_name('TestSuite1',
                                               cls.ctrl.datafiles)
     cls.ts2 = datafilereader.get_ctrl_by_name('TestSuite2',
                                               cls.ctrl.datafiles)
     cls.resu = datafilereader.get_ctrl_by_name(
         datafilereader.SIMPLE_TEST_SUITE_RESOURCE_NAME, cls.ctrl.datafiles)
Exemplo n.º 3
0
 def setUp(self):
     self.res_path = datafilereader.SIMPLE_TEST_SUITE_PATH
     self.res_name = 'new_resource_for_test_creating_and_importing_resource.txt'
     self.res_full_name = os.path.join(self.res_path, self.res_name)
     self.new_keyword_name = 'My Keywordian'
     self.ctrl = datafilereader.construct_project(datafilereader.SIMPLE_TEST_SUITE_PATH)
     self.suite = datafilereader.get_ctrl_by_name('TestSuite1', self.ctrl.datafiles)
     self.test = self.suite.tests[0]
     self.test.execute(ChangeCellValue(0,0,self.new_keyword_name))
     self.test.execute(ChangeCellValue(0,1,'value'))
Exemplo n.º 4
0
 def setUp(self):
     self.res_path = datafilereader.SIMPLE_TEST_SUITE_PATH
     self.res_name = 'new_resource_for_test_creating_and_importing_resource.txt'
     self.res_full_name = os.path.join(self.res_path, self.res_name)
     self.new_keyword_name = 'My Keywordian'
     self.ctrl = datafilereader.construct_project(datafilereader.SIMPLE_TEST_SUITE_PATH)
     self.suite = datafilereader.get_ctrl_by_name('TestSuite1', self.ctrl.datafiles)
     self.test = self.suite.tests[0]
     self.test.execute(ChangeCellValue(0,0,self.new_keyword_name))
     self.test.execute(ChangeCellValue(0,1,'value'))
Exemplo n.º 5
0
 def setUpClass(cls):
     cls.project_ctrl = datafilereader.construct_project(datafilereader.ARGUMENTS_PATH)
     cls.testsuite = datafilereader.get_ctrl_by_name('Suite', cls.project_ctrl.datafiles)
     cls.test = cls.testsuite.tests[0]
     keyword = lambda name: [kw for kw in cls.testsuite.keywords if kw.name == name][0]
     cls.keyword1 = keyword('KW1')
     cls.keyword2 = keyword('KW2')
     cls.keyword3 = keyword('KW3')
     cls.keyword4 = keyword('KW4')
     cls.keyword5 = keyword('KW5')
Exemplo n.º 6
0
 def setUpClass(cls):
     cls.project_ctrl = datafilereader.construct_project(datafilereader.ARGUMENTS_PATH)
     cls.testsuite = datafilereader.get_ctrl_by_name('Suite', cls.project_ctrl.datafiles)
     cls.test = cls.testsuite.tests[0]
     keyword = lambda name: [kw for kw in cls.testsuite.keywords if kw.name == name][0]
     cls.keyword1 = keyword('KW1')
     cls.keyword2 = keyword('KW2')
     cls.keyword3 = keyword('KW3')
     cls.keyword4 = keyword('KW4')
     cls.keyword5 = keyword('KW5')
Exemplo n.º 7
0
 def setUpClass(cls):
     cls.project = datafilereader.construct_project(
         datafilereader.SIMPLE_TEST_SUITE_PATH)
     cls.directory = cls.project.data
     cls.test = datafilereader.get_ctrl_by_name(
         'TestSuite1', cls.project.datafiles)
     cls.resource = datafilereader.get_ctrl_by_name(
         datafilereader.SIMPLE_TEST_SUITE_RESOURCE_NAME,
         cls.project.datafiles)
     cls.external_resource = datafilereader.get_ctrl_by_name(
         'Resu', cls.project.datafiles)
Exemplo n.º 8
0
 def setUpClass(cls):
     cls.project = datafilereader.construct_project(
         datafilereader.SIMPLE_TEST_SUITE_PATH)
     cls.directory = cls.project.data
     cls.test = datafilereader.get_ctrl_by_name(
         'TestSuite1', cls.project.datafiles)
     cls.resource = datafilereader.get_ctrl_by_name(
         datafilereader.SIMPLE_TEST_SUITE_RESOURCE_NAME,
         cls.project.datafiles)
     cls.external_resource = datafilereader.get_ctrl_by_name(
         'Resu', cls.project.datafiles)
Exemplo n.º 9
0
 def setUpClass(cls):
     cls.project_ctrl = datafilereader.construct_project(
         datafilereader.SIMPLE_TEST_SUITE_PATH)
     cls.ts1 = datafilereader.get_ctrl_by_name('TestSuite1',
                                               cls.project_ctrl.datafiles)
     cls.ts2 = datafilereader.get_ctrl_by_name('TestSuite2',
                                               cls.project_ctrl.datafiles)
     cls.ts3 = datafilereader.get_ctrl_by_name('TestSuite3',
                                               cls.project_ctrl.datafiles)
     cls.resu = datafilereader.get_ctrl_by_name(
         datafilereader.SIMPLE_TEST_SUITE_RESOURCE_NAME,
         cls.project_ctrl.datafiles)
Exemplo n.º 10
0
 def setUpClass(cls):
     project = datafilereader.construct_project(datafilereader.FINDWHEREUSED_VARIABLES_PATH)
     cls._suite1 = _get_ctrl_by_name(cls, "Suite 1", project.datafiles)
     cls._suite2 = _get_ctrl_by_name(cls, "Suite 2", project.datafiles)
     cls._resource1 = _get_ctrl_by_name(cls, "Res1", project.datafiles)
     cls._case1 = _get_ctrl_by_name(cls, "Case 1", project.datafiles)
     cls._case2 = _get_ctrl_by_name(cls, "Case 2", project.datafiles)
     cls._case3 = _get_ctrl_by_name(cls, "Case 3", project.datafiles)
     cls._case4 = _get_ctrl_by_name(cls, "Case 4", project.datafiles)
     cls._case5 = _get_ctrl_by_name(cls, "Case 5", project.datafiles)
     cls._case6 = _get_ctrl_by_name(cls, "Case 6", project.datafiles)
     cls._kw1 = _get_ctrl_by_name(cls, "User KW 1", project.datafiles)
     cls._kw2 = _get_ctrl_by_name(cls, "User KW 2", project.datafiles)
Exemplo n.º 11
0
 def setUpClass(cls):
     project = datafilereader.construct_project(datafilereader.FINDWHEREUSED_VARIABLES_PATH)
     cls._suite1 = _get_ctrl_by_name(cls, "Suite 1", project.datafiles)
     cls._suite2 = _get_ctrl_by_name(cls, "Suite 2", project.datafiles)
     cls._resource1 = _get_ctrl_by_name(cls, "Res1", project.datafiles)
     cls._case1 = _get_ctrl_by_name(cls, "Case 1", project.datafiles)
     cls._case2 = _get_ctrl_by_name(cls, "Case 2", project.datafiles)
     cls._case3 = _get_ctrl_by_name(cls, "Case 3", project.datafiles)
     cls._case4 = _get_ctrl_by_name(cls, "Case 4", project.datafiles)
     cls._case5 = _get_ctrl_by_name(cls, "Case 5", project.datafiles)
     cls._case6 = _get_ctrl_by_name(cls, "Case 6", project.datafiles)
     cls._kw1 = _get_ctrl_by_name(cls, "User KW 1", project.datafiles)
     cls._kw2 = _get_ctrl_by_name(cls, "User KW 2", project.datafiles)
Exemplo n.º 12
0
 def setUpClass(cls):
     cls.project = datafilereader.construct_project(datafilereader.IMPORTS)
     suite = cls.project.data.suites[1]
     cls.imports = [i for i in suite.imports]
Exemplo n.º 13
0
 def setUp(self):
     self.project = datafilereader.construct_project(
         datafilereader.SIMPLE_TEST_SUITE_PATH)
Exemplo n.º 14
0
 def setUpClass(cls):
     cls.project = datafilereader.construct_project(datafilereader.FOR_LOOP_PATH)
Exemplo n.º 15
0
 def setUpClass(cls):
     cls.project = datafilereader.construct_project(datafilereader.IMPORTS)
     suite = cls.project.data.suites[1]
     cls.imports =  [i for i in suite.imports]
Exemplo n.º 16
0
 def setUp(self):
     self._project = datafilereader.construct_project(datafilereader.SIMPLE_PROJECT)
     self._test = datafilereader.get_ctrl_by_name('Test Case', self._project.datafiles[0].tests)
     self._keyword = datafilereader.get_ctrl_by_name('Keyword', self._project.datafiles[0].keywords)
     print self._keyword
Exemplo n.º 17
0
 def setUpClass(cls):
     cls.project = datafilereader.construct_project(datafilereader.IMPORTS)
     suite = cls.project.data.suites[1]
     # print("DEBUG: testimports setup suite: %s\n" % str(cls.project.data.suites))
     cls.imports = [i for i in suite.imports]
 def test_get_all_keywords_with_resource_file_only(self):
     project = datafilereader.construct_project(RESOURCE_PATH)
     all_kws = project.get_all_keywords()
     project.close()
     res_kws = [kw for kw in all_kws if kw.name == 'Resource UK']
     assert_equal(len(res_kws), 1)
Exemplo n.º 19
0
 def setUp(self):
     self.project = datafilereader.construct_project(
         datafilereader.UNUSED_KEYWORDS_PATH)
     self.runner = ReviewRunner(self.project, self)
Exemplo n.º 20
0
 def setUp(self):
     self.project = datafilereader.construct_project(
         datafilereader.UNUSED_KEYWORDS_PATH)
     self.runner = ReviewRunner(self.project, self)
Exemplo n.º 21
0
 def setUpClass(cls):
     cls.project = datafilereader.construct_project(datafilereader.FOR_LOOP_PATH)
Exemplo n.º 22
0
 def setUp(self):
     self.project_ctrl = datafilereader.construct_project(
         datafilereader.LOG_MANY_SUITE)
     self.datafile = datafilereader.get_ctrl_by_name(
         'Log Many', self.project_ctrl.datafiles)
     self.testcase = self.datafile.tests[0]
Exemplo n.º 23
0
 def setUp(self):
     self.project = datafilereader.construct_project(
         datafilereader.SIMPLE_TEST_SUITE_PATH, tempfile.gettempdir())
Exemplo n.º 24
0
 def setUp(self):
     self.project = datafilereader.construct_project(datafilereader.SIMPLE_TEST_SUITE_PATH, tempfile.gettempdir())
Exemplo n.º 25
0
 def test_get_all_keywords_with_resource_file_only(self):
     project = datafilereader.construct_project(RESOURCE_PATH)
     all_kws = project.get_all_keywords()
     project.close()
     res_kws = [kw for kw in all_kws if kw.name == 'Resource UK']
     assert_equals(len(res_kws), 1)
Exemplo n.º 26
0
 def setUpClass(cls):
     cls.project = datafilereader.construct_project(datafilereader.IMPORTS)
     suite = cls.project.data.suites[1]
     # print("DEBUG: testimports setup suite: %s\n" % str(cls.project.data.suites))
     cls.imports = [i for i in suite.imports]
Exemplo n.º 27
0
 def setUp(self):
     self.project = datafilereader.construct_project(datafilereader.SIMPLE_TEST_SUITE_PATH)
Exemplo n.º 28
0
 def setUp(self):
     self.project_ctrl = datafilereader.construct_project(datafilereader.LOG_MANY_SUITE)
     self.datafile = datafilereader.get_ctrl_by_name('Log Many', self.project_ctrl.datafiles)
     self.testcase = self.datafile.tests[0]
Exemplo n.º 29
0
 def setUpClass(cls):
     cls.project = datafilereader.construct_project(datafilereader.ALL_FILES_PATH)
Exemplo n.º 30
0
 def setUpClass(cls):
     cls.project = datafilereader.construct_project(
         datafilereader.ALL_FILES_PATH)