Пример #1
0
class TestForm(Basic_test):

    def test_title_Page(self):
        self.projectpage = ProjectPage(self.driver)
        self.loginpage= LoginPage(self.driver)
        self.loginpage.do_login(TestData.USER_NAME,TestData.EMAIL)
        self.formpage = self.projectpage.goto_form_page()
        title_driver_gettitle = self.formpage.get_page_title(TestData.TITELE_ANGULAR)
        assert title_driver_gettitle == TestData.TITELE_ANGULAR

    def test_file_form(self):
        self.projectpage = ProjectPage(self.driver)
        self.loginpage = LoginPage(self.driver)
        self.loginpage.do_login(TestData.USER_NAME, TestData.EMAIL)
        self.formpage = self.projectpage.goto_form_page()
        self.formpage.submitForm()
        flag = self.formpage.getSuccessMessage().text
        assert flag

    def test_read_success_message(self):
        self.projectpage = ProjectPage(self.driver)
        self.loginpage = LoginPage(self.driver)
        self.loginpage.do_login(TestData.USER_NAME, TestData.EMAIL)
        self.formpage = self.projectpage.goto_form_page()
        self.formpage.submitForm()
        assert "success" in self.formpage.readSuccessMessage().text
Пример #2
0
 def test_read_success_message(self):
     self.projectpage = ProjectPage(self.driver)
     self.loginpage = LoginPage(self.driver)
     self.loginpage.do_login(TestData.USER_NAME, TestData.EMAIL)
     self.formpage = self.projectpage.goto_form_page()
     self.formpage.submitForm()
     assert "success" in self.formpage.readSuccessMessage().text
Пример #3
0
 def test_title_Page(self):
     self.projectpage = ProjectPage(self.driver)
     self.loginpage= LoginPage(self.driver)
     self.loginpage.do_login(TestData.USER_NAME,TestData.EMAIL)
     self.formpage = self.projectpage.goto_form_page()
     title_driver_gettitle = self.formpage.get_page_title(TestData.TITELE_ANGULAR)
     assert title_driver_gettitle == TestData.TITELE_ANGULAR
Пример #4
0
 def test_file_form(self):
     self.projectpage = ProjectPage(self.driver)
     self.loginpage = LoginPage(self.driver)
     self.loginpage.do_login(TestData.USER_NAME, TestData.EMAIL)
     self.formpage = self.projectpage.goto_form_page()
     self.formpage.submitForm()
     flag = self.formpage.getSuccessMessage().text
     assert flag
Пример #5
0
class Test_Form(Basic_test):
    def test_title_Page(self):
        self.projectpage = ProjectPage(self.driver)
        formpage = self.projectpage.goto_form_page()
        title_driver_gettitle = formpage.get_page_title(
            TestData.TITELE_ANGULAR)
        assert title_driver_gettitle == TestData.TITELE_ANGULAR

    def test_file_form(self):
        self.projectpage = ProjectPage(self.driver)
        formpage = self.projectpage.goto_form_page()
        formpage.submitForm()
        flag = formpage.getSuccessMessage().text
        assert flag

    def test_read_success_message(self):
        self.projectpage = ProjectPage(self.driver)
        formpage = self.projectpage.goto_form_page()
        formpage.submitForm()
        assert "success" in formpage.readSuccessMessage().text
Пример #6
0
 def test_title_Page(self):
     self.projectpage = ProjectPage(self.driver)
     formpage = self.projectpage.goto_form_page()
     title_driver_gettitle = formpage.get_page_title(
         TestData.TITELE_ANGULAR)
     assert title_driver_gettitle == TestData.TITELE_ANGULAR
Пример #7
0
 def test_read_success_message(self):
     self.projectpage = ProjectPage(self.driver)
     formpage = self.projectpage.goto_form_page()
     formpage.submitForm()
     assert "success" in formpage.readSuccessMessage().text
Пример #8
0
 def test_file_form(self):
     self.projectpage = ProjectPage(self.driver)
     formpage = self.projectpage.goto_form_page()
     formpage.submitForm()
     flag = formpage.getSuccessMessage().text
     assert flag
Пример #9
0
 def goto_project_page(self, Name, Email):
     self.do_send_keys(self.NAME_ID, Name)
     self.do_send_keys(self.EMAIL_ID, Email)
     self.do_click(self.SUBMIT_ID)
     projectpage = ProjectPage(self.driver)
     return projectpage