def setUpClass(cls): cls.client = BaseUser(NoSuchUser) cls.page = None cls.config = Config() with allure.step("Initial data setup > clean DB"): clean_database(cls.config)
def setUpClass(cls): cls.client = BaseUser(JohnDoe) cls.page = None cls.config = Config() with allure.step("Initial data setup > clean DB"): clean_database(cls.config) register_user(user=cls.client, config=cls.config)
def setUpClass(cls): cls.user = BaseUser(NoSuchUser) 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("Open web browser"): cls.page = open_web_browser(config=cls.config, page_model=cls.page_model, page_content=cls.page_content)
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.client = BaseUser(JohnDoe) cls.page = None cls.page_model = ContactPageModel cls.page_content = ContactPageContent cls.message = "Hello there. This is test message. Thanks" cls.config = Config() with allure.step( "Initial data setup: {}".format(cls.config.base_url + ContactPageContent.URL)): 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 setUpClass(cls): cls.client = BaseUser(EmptyFields) cls.page = None cls.page_model = ContactPageModel cls.page_content = ContactPageContent cls.message = "" cls.config = Config() with allure.step( "Initial data setup: {}".format(cls.config.base_url + ContactPageContent.URL)): 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 setUpClass(cls): cls.user = BaseUser(JaneDoe) cls.page_model = AdminPageModel cls.page_context = AdminPageContent 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(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)
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)
def setUpClass(cls): cls.client = BaseUser(JohnDoe) cls.page = None cls.config = Config()
def setUpClass(cls): cls.client = BaseUser(EmptyFields) cls.page = None cls.config = Config()
def setUpClass(cls): cls.client = BaseUser(JohnDoe) cls.page = None cls.page_model = ForgotLoginInfoPageModel cls.page_context = ForgotLoginInfoPageContent cls.config = Config()