Beispiel #1
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.resu = datafilereader.get_ctrl_by_name(
         datafilereader.SIMPLE_TEST_SUITE_RESOURCE_NAME,
         cls.project_ctrl.datafiles)
 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')
Beispiel #3
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)
 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'))
Beispiel #5
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)
 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 setUpClass(cls):
     cls.project = datafilereader.construct_project(datafilereader.FOR_LOOP_PATH)
 def setUp(self):
     self.project = datafilereader.construct_project(
         datafilereader.SIMPLE_TEST_SUITE_PATH, tempfile.gettempdir())
Beispiel #9
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_equal(len(res_kws), 1)
 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]
 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)
 def setUp(self):
     self.project = datafilereader.construct_project(datafilereader.SIMPLE_TEST_SUITE_PATH)
     self.ctrl = self._get_ctrl_by_name(datafilereader.SIMPLE_TEST_SUITE_RESOURCE_NAME)
 def setUpClass(cls):
     cls.project = datafilereader.construct_project(
         datafilereader.ALL_FILES_PATH)
 def setUp(self):
     self.project = datafilereader.construct_project(
         datafilereader.UNUSED_KEYWORDS_PATH)
     self.runner = ReviewRunner(self.project, self)