class TestLoginPage:
    @pytest.fixture(autouse=True)
    def classSetup(self, setUp):
        self.hp = HomePage(self.driver)
        self.lp = LoginPage(self.driver)
        self.ts = TestStatus(self.driver)

    @pytest.mark.run(order=1)
    def test_Login(self):
        self.hp.clickSignInLink()
        self.chp = self.lp.login("*****@*****.**", "")
        result = bool(self.chp.verifyUserIcon() == True)
        self.ts.mark("test_Login", result, "LoginVerification")

    @pytest.mark.run(order=2)
    def test_InvalidLogin(self):
        self.hp.clickSignInLink()
        self.lp.clickNextButton()
        result = bool(self.lp.getErrorSignText() ==
                      "Please enter your email address or mobile number")
        self.ts.mark("test_InvalidLogin", result, "InvalidLoginVerification")

    @pytest.mark.run(order=3)
    def test_LoginPageTitle(self):
        self.hp = HomePage(self.driver)
        self.hp.clickSignInLink()
        self.lp = LoginPage(self.driver)
        result = bool(self.lp.verifyLoginPageTitle() == "Zoho Accounts")
        self.ts.mark("test_LoginPageTitle", result, "LoginPageTitle")
Пример #2
0
class TestClientHomePage:
    @pytest.fixture(autouse=True)
    def classSetup(self, setUp):
        self.hp = HomePage(self.driver)
        self.lp = LoginPage(self.driver)
        self.ts = TestStatus(self.driver)

    @pytest.mark.run(order=1)
    def test_UserIcon(self):
        self.hp.clickSignInLink()
        self.chp = self.lp.login("*****@*****.**", "shanku12345#")
        result = bool(self.chp.verifyUserIcon() == True)
        self.ts.mark("test_UserIcon", result, "UserIconVerification")
class TestCRMHomePage:
    @pytest.fixture(autouse=True)
    def classSetup(self, setUp):
        self.hp = HomePage(self.driver)
        self.lp = LoginPage(self.driver)
        self.chp = ClientHomePage(self.driver)
        self.crmhomepage = CRMHomePage(self.driver)
        self.ts = TestStatus(self.driver)

    pytest.mark.run(order=1)

    def test_addContacts(self):
        self.hp.clickSignInLink()
        self.chp = self.lp.login("*****@*****.**", "shanku12345#")
        self.chp.clickCRMOption()
        time.sleep(10)
        self.crmhomepage.clickCreateIcon()
        time.sleep(10)
        self.crmhomepage.clickContacts()
 def classSetup(self, setUp):
     self.hp = HomePage(self.driver)
     self.lp = LoginPage(self.driver)
     self.ts = TestStatus(self.driver)
 def test_LoginPageTitle(self):
     self.hp = HomePage(self.driver)
     self.hp.clickSignInLink()
     self.lp = LoginPage(self.driver)
     result = bool(self.lp.verifyLoginPageTitle() == "Zoho Accounts")
     self.ts.mark("test_LoginPageTitle", result, "LoginPageTitle")
Пример #6
0
 def clickSignInLink(self):
     self.elementClick(locator.signInLink)
     return LoginPage(self.driver)
 def classSetup(self, setUp):
     self.hp = HomePage(self.driver)
     self.lp = LoginPage(self.driver)
     self.chp = ClientHomePage(self.driver)
     self.crmhomepage = CRMHomePage(self.driver)
     self.ts = TestStatus(self.driver)