Exemple #1
0
    def setup_class(cls):
        # Get test data
        cls.data = merge_configs('~/testrail.json', '../config/data.json')
        cls.p = read_config('../config/project.json')
        cls.runs = read_config('../config/runs.json')
        cls.users = read_config('../config/users.json')
        cls.t = read_config('../config/tests.json')
        cls.plans = read_config('../config/plans.json')

        # Prepare browser
        cls.driver = DriverManager.get_driver(DriverType.FIREFOX)

        cls.driver.maximize_window()
        cls.driver.get(cls.data.server_name)
        cls.driver.implicitly_wait(10)

        # Prepare page objects
        cls.suite = suite_page.SuitePage(cls.driver)
        cls.login = login_page.LoginPage(cls.driver)
        cls.project = project_page.ProjectPage(cls.driver)
        cls.users_roles = UsersRolesPage(cls.driver)
        cls.tests = test_cases_page.TestCasesPage(cls.driver)
        cls.section = section_page.SectionsPage(cls.driver)
        cls.plan = plans_page.PlansPage(cls.driver)
        cls.run = runs_page.RunsPage(cls.driver)
        cls.cases = cases_page.CasesPage(cls.driver)
        cls.prepare_data = PrepareData(cls.driver)
        cls.users_overview_url = cls.data.server_name + cls.users.overview_url

        # Perquisites for tests execution
        cls.prepare_for_testing(cls)
Exemple #2
0
    def setup_class(cls):
        super().setup_class()

        # Get test data
        cls.p = read_config('../config/project.json')
        cls.reports = read_config("../config/reports.json")
        cls.sso_settings = read_config('../config/sso_settings.json')
        cls.users = read_config('../config/users.json')
        cls.site_settings_config = read_config('../config/site_settings.json')

        cls.client = APIClient(cls.data)

        # Prepare page objects
        cls.project = project_page.ProjectPage(cls.driver)
        cls.reports_page = reports_page.ReportsPage(cls.driver)
        cls.site_settings = site_settings.SiteSettingsPage(cls.driver)
        cls.users_roles = UsersRolesPage(cls.driver)
        cls.prepare_data = PrepareData(cls.driver)

        cls.site_settings_url = cls.data.server_name + cls.sso_settings.site_settings_url
        cls.users_overview_url = cls.data.server_name + cls.users.overview_url

        # Perquisites for tests execution
        cls.setup_database(cls.reports)
        cls.prepare_for_testing(cls)
    def setup_class(cls):
        super().setup_class()

        cls.project = read_config('../config/project.json')
        cls.project_page = project.ProjectPage(cls.driver)

        cls.prepare_for_testing(cls)
        # Removing existing projects if any to avoid mismatch of project status counts on dashboard.
        cls.delete_prepared_data(cls)
Exemple #4
0
    def setup_class(cls):
        super().setup_class()
        # Get test data
        cls.p = read_config('../config/project.json')
        cls.youtrack = read_config("../config/plugin.json")

        # Prepare page objects
        cls.suite = suite_page.SuitePage(cls.driver)
        cls.project = project_page.ProjectPage(cls.driver)
        cls.integration = integration_page.IntegrationPage(cls.driver)

        # Perquisites for tests executions
        cls.prepare_for_testing(cls)
Exemple #5
0
    def setup_class(cls):
        super().setup_class()

        cls.p = read_config('../config/project.json')
        cls.setup_database(cls.p)

        cls.section = section_page.SectionsPage(cls.driver)
        cls.project = project_page.ProjectPage(cls.driver)

        # Perquisites for tests execution
        cls.prepare_for_testing(cls)
        # Removing existing projects if any to avoid mismatch of project status counts on dashboard.
        cls.delete_prepared_data(cls)
    def setup_class(cls):
        super().setup_class()

        # Get test data
        cls.p = read_config('../config/project.json')
        cls.runs = read_config('../config/runs.json')

        # Prepare page objects
        cls.suite = suite_page.SuitePage(cls.driver)
        cls.project = project_page.ProjectPage(cls.driver)

        # Perquisites for tests execution
        cls.prepare_for_testing()
Exemple #7
0
    def setup_class(cls):
        super().setup_class()

        cls.m = read_config('../config/milestones.json')
        cls.p = read_config('../config/project.json')
        cls.r = read_config('../config/runs.json')

        cls.project = project_page.ProjectPage(cls.driver)
        cls.miles = milestones_page.MilestonesPage(cls.driver)
        cls.runs = runs_page.RunsPage(cls.driver)
        cls.suite = suite_page.SuitePage(cls.driver)

        # Perquisites for tests execution
        cls.prepare_for_testing()
Exemple #8
0
    def setup_class(cls):
        # Get test data
        super().setup_class()

        cls.p = read_config('../config/project.json')
        cls.t = read_config("../config/tests.json")

        # Prepare page objects
        cls.section = section_page.SectionsPage(cls.driver)
        cls.project = project_page.ProjectPage(cls.driver)
        cls.tests = cases_page.TestCasesPage(cls.driver)

        # Perquisites for tests execution
        cls.prepare_for_testing()
    def setup_class(cls):
        super().setup_class()

        cls.p = read_config('../config/project.json')
        cls.r = read_config('../config/runs.json')
        cls.plan_data = read_config('../config/plans.json')
        cls.t = read_config('../config/tests.json')
        cls.u = read_config('../config/users.json')

        cls.project = project_page.ProjectPage(cls.driver)
        cls.plans = plans_page.PlansPage(cls.driver)
        cls.tests = testcases_page.TestCasesPage(cls.driver)
        cls.users = users_roles_page.UsersRolesPage(cls.driver)

        # Perquisites for tests execution
        cls.prepare_for_testing()
    def setup_class(cls):
        super().setup_class()

        # Get test data
        cls.p = read_config('../config/project.json')
        cls.site_settings = read_config('../config/site_settings.json')
        cls.users = read_config('../config/users.json')

        # Prepare page objects
        cls.project = project_page.ProjectPage(cls.driver)
        cls.backups = backups_page.BackupsPage(cls.driver)
        cls.prepare_data = PrepareData(cls.driver)

        cls.backups_url = cls.data.server_name + cls.site_settings.site_settings_url + cls.site_settings.tabs.backups
        cls.user_overview_url = cls.data.server_name + cls.users.overview_url

        cls.prepare_data.login_as_admin()
        cls.prepare_data.add_tester_user()
Exemple #11
0
    def setup_class(cls):
        super().setup_class()

        cls.r = read_config('../config/runs.json')
        cls.runs = runs_page.RunsPage(cls.driver)

        cls.p = read_config('../config/project.json')
        cls.project = project_page.ProjectPage(cls.driver)

        cls.t = read_config('../config/tests.json')
        cls.tests = testcases_page.TestCasesPage(cls.driver)

        cls.u = read_config('../config/users.json')
        cls.users = UsersRolesPage(cls.driver)

        cls.m = read_config("../config/milestones.json")
        cls.miles = milestones_page.MilestonesPage(cls.driver)

        # Perquisites for tests execution
        cls.prepare_for_testing()
Exemple #12
0
    def setup_class(cls):
        # Get test data
        super().setup_class()

        cls.p = read_config('../config/project.json')
        cls.t = read_config("../config/tests.json")
        cls.users = read_config('../config/users.json')
        cls.site_settings = read_config('../config/site_settings.json')
        cls.runs = read_config('../config/runs.json')
        cls.plugin = read_config('../config/plugin.json')

        # Prepare page objects
        cls.section = section_page.SectionsPage(cls.driver)
        cls.project = project_page.ProjectPage(cls.driver)
        cls.tests = cases_page.TestCasesPage(cls.driver)
        cls.run = RunsPage(cls.driver)
        cls.users_roles = UsersRolesPage(cls.driver)
        cls.prepare_data = PrepareData(cls.driver)
        cls.integration = IntegrationPage(cls.driver)

        # Perquisites for tests execution
        cls.project_overview = cls.data.server_name + cls.p.project_overview_url
        cls.prepare_for_testing()