Exemplo n.º 1
0
def test_symphonytest_invalidlogin_test(init_driver):
    login = Login(init_driver)
    login.enterUsername(getTestData.InvalidUserName)
    login.enterPassword(getTestData.ValidPassword)
    login.loginbuttonclick()
    visualdelay()
    message = login.loginError()
    invalidLoginerrorMessage = errorMessages.invalidloginerrorMessage
    assert message == invalidLoginerrorMessage
    visualdelay()
Exemplo n.º 2
0
def test_symphonytest_emptylogin_test(init_driver):
    login = Login(init_driver)
    login.enterUsername("")
    login.enterPassword("")
    login.loginbuttonclick()
    visualdelay()
    message = login.loginError()
    emptyLoginerrorMessage = errorMessages.emptyloginerrorMessage
    assert message == emptyLoginerrorMessage
    visualdelay()
Exemplo n.º 3
0
def test_symphonytest_validlogin_app(init_driver):
    login = Login(init_driver)
    login.enterUsername(getTestData.ValidUserName)
    login.enterPassword(getTestData.ValidPassword)
    login.loginbuttonclick()
    visualdelay()
    auth = Authentication(init_driver)
    auth.authenticate()
    assert init_driver.title == "Symphony | Secure Seamless Communication"
    visualdelay()
 def noEmailForgotPassword(self):
     self.clickonForgotPassword()
     recoverEmail = self.driver.find_elements_by_xpath(self.recoverEmail)
     self.driver.implicitly_wait(4)
     recoverEmail[0].send_keys("")
     visualdelay()
     recoverEmailButton = self.driver.find_element_by_name(
         self.recoverbuttomelement)
     self.driver.implicitly_wait(4)
     recoverEmailButton.click()
     self.driver.implicitly_wait(2)
     noemailerrorelement = self.driver.find_elements_by_xpath(
         self.recovererrormessageelement)
     assert errorMessages.recoverPasswordErrorMessage == noemailerrorelement[
         0].text
 def enterCaptchaInfo(self, email):
     self.clickonForgotPassword()
     recoverEmail = self.driver.find_elements_by_xpath(self.recoverEmail)
     self.driver.implicitly_wait(4)
     recoverEmail[0].send_keys(email)
     visualdelay()
     captchaclass = self.driver.find_element_by_class_name(
         self.checkCaptchaClass)
     checkCaptcha = captchaclass.find_element_by_tag_name(self.captchaFrame)
     checkCaptcha.click()
     visualdelay()
     self.driver.switch_to.frame(
         self.driver.find_element_by_xpath(self.captchaFrameclick))
     visualdelay()
     self.driver.find_element_by_id(self.captchaAudio).click()
     visualdelay()
     if self.check_exists_by_xpath():
         captchaError = self.driver.find_elements_by_xpath(
             self.captchaError)[0].text
         assert captchaError == errorMessages.captchaError
Exemplo n.º 6
0
def test_symphonytest_signup_app(init_driver):
    signUp = SignUp(init_driver)
    signUp.validSignUpbuttonclick(getTestData.ValidSignUpFirstName, getTestData.ValidSignUpLastName,
                                  getTestData.ValidSignUpEmail,
                                  getTestData.ValidSignUpPassword)
    visualdelay()
Exemplo n.º 7
0
def test_symphonytest_signup_existing_app(init_driver):
    signUp = SignUp(init_driver)
    signUp.exisitingsignUpbuttonclick(getTestData.InvalidSignUpFirstName, getTestData.InvalidSignUpLastName,
                                      getTestData.InvalidSignUpexisitingEmail,
                                      getTestData.InvalidSignUpPassword)
    visualdelay()