Ejemplo n.º 1
0
    def setUpClass(cls):
        cls.user = BaseUser(EmptyFields)
        cls.page_model = ServicesPageModel
        cls.page_context = ServicesPageContent
        cls.config = Config()

        with allure.step("Initial data setup > clean DB"):
            clean_database(cls.config)

        with allure.step("Open web browser"):
            cls.page = open_web_browser(config=cls.config,
                                        page_model=cls.page_model,
                                        page_content=cls.page_context)
    def setUpClass(cls):
        cls.user = BaseUser(NoSuchUser)
        cls.page_model = AdminPageModel
        cls.page_content = AdminPageContent
        cls.config = Config()

        with allure.step("Initial data setup > clean DB"):
            clean_database(cls.config)

        with allure.step("Open web browser"):
            cls.page = open_web_browser(config=cls.config,
                                        page_model=cls.page_model,
                                        page_content=cls.page_content)
    def setUp(self):

        with allure.step("Initial data setup > clean DB"):
            clean_database(self.config)

        with allure.step("Initial data setup > register test user"):
            register_user(user=self.client, config=self.config)

        with allure.step("Initial data setup: {}".format(
                self.config.base_url + ForgotLoginInfoPageContent.URL)):
            with allure.step("Open web browser"):
                self.page = open_web_browser(config=self.config,
                                             page_model=self.page_model,
                                             page_content=self.page_context)
    def setUpClass(cls):
        cls.user = BaseUser(JohnDoe)
        cls.page_model = HomePageModel
        cls.page_content = HomePageContent
        cls.config = Config()

        with allure.step("Initial data setup > clean DB"):
            clean_database(cls.config)

        with allure.step("Initial data setup > register test user"):
            register_user(cls.user, cls.config)

        with allure.step("Open web browser"):
            cls.page = open_web_browser(config=cls.config,
                                        page_model=cls.page_model,
                                        page_content=cls.page_content)
Ejemplo n.º 5
0
    def setUpClass(cls):
        cls.user = BaseUser(JaneDoe)
        cls.payee = JohnDoe
        cls.page_model = HomePageModel
        cls.page_context = HomePageContent
        cls.transfer_amount = '153.45'
        cls.account = '11223344'
        cls.total_left = cls.user.balance - float(cls.transfer_amount)
        cls.config = Config()

        with allure.step("Initial data setup > clean DB"):
            clean_database(config=cls.config)

        with allure.step("Initial data setup > register test user"):
            register_user(user=cls.user, config=cls.config)

        with allure.step("Open web browser"):
            cls.page = open_web_browser(config=cls.config,
                                        page_model=cls.page_model,
                                        page_content=cls.page_context)