Esempio n. 1
0
 def test_run_testset_with_parameters(self):
     testcase_file_path = os.path.join(os.getcwd(),
                                       'tests/data/demo_parameters.yml')
     result = run_suite_path(testcase_file_path)
     self.assertTrue(result.success)
     self.assertIn("token", result.output)
     self.assertEqual(result.stat.total, 6)
Esempio n. 2
0
 def test_run_testset_with_variables_mapping(self):
     testcase_file_path = os.path.join(os.getcwd(),
                                       'tests/data/demo_testset_layer.yml')
     variables_mapping = {"app_version": '2.9.7'}
     result = run_suite_path(testcase_file_path, variables_mapping)
     self.assertTrue(result.success)
     self.assertIn("token", result.output)
Esempio n. 3
0
 def test_run_testset_template_import_functions(self):
     testcase_file_path = os.path.join(
         os.getcwd(),
         'tests/data/demo_testset_template_import_functions.yml')
     result = run_suite_path(testcase_file_path)
     self.assertTrue(result.success)
Esempio n. 4
0
 def test_run_testsets_hardcode(self):
     result = run_suite_path(self.testcase_file_path_list)
     self.assertTrue(result.success)
     self.assertEqual(result.stat.total, 6)
     self.assertEqual(result.stat.successes, 6)
Esempio n. 5
0
 def test_run_testset_hardcode(self):
     for testcase_file_path in self.testcase_file_path_list:
         result = run_suite_path(testcase_file_path)
         self.assertTrue(result.success)
Esempio n. 6
0
 def test_run_testset_output(self):
     testcase_file_path = os.path.join(os.getcwd(),
                                       'tests/data/demo_testset_layer.yml')
     result = run_suite_path(testcase_file_path)
     self.assertTrue(result.success)
     self.assertIn("token", result.output)