コード例 #1
0
 @Test(
     groups = {"P2", "P2_Target", "PasswordChange"},
     dependsOnMethods = {"verifyChangePasswordWithRequireBothLettersAndNumbersSetToNo"})
 public void verifyValidationOnChangingPasswordWithRequireBothLettersAndNumbersSetToYes() {
   systemPropertiesActions.requireBothLettersAndNumbersToYes();
   passwordActions.verifyValidationOnChangingPasswordWithRequireBothLettersAndNumbersSetToYes(
       SetupStaticData.PASSWORD,
       SetupStaticData.PASSWORD_ONLY_NUMERIC,
       SetupStaticData.PASSWORD_ONLY_NUMERIC);
 }
コード例 #2
0
 @Test(
     groups = {"P1", "P1_Target", "PasswordChange"},
     dependsOnMethods = {"verifyRequiredNumberOfConsecutiveUniquePasswordsSystemProperty"})
 public void verifyChangePasswordWithRequireBothLettersAndNumbersSetToNo() {
   systemPropertiesActions.requireBothLettersAndNumbersToNo();
   passwordActions.verifyChangePasswordWithRequireBothLettersAndNumbersSetToNo(
       SetupStaticData.PASSWORD,
       SetupStaticData.PASSWORD_ONLY_NUMERIC,
       SetupStaticData.PASSWORD_ONLY_NUMERIC);
   passwordActions.verifyChangePasswordWithRequireBothLettersAndNumbersSetToNo(
       SetupStaticData.PASSWORD_ONLY_NUMERIC,
       SetupStaticData.PASSWORD_ONLY_ALPHABET,
       SetupStaticData.PASSWORD_ONLY_ALPHABET);
   passwordActions.changePassword(
       SetupStaticData.PASSWORD_ONLY_ALPHABET, SetupStaticData.PASSWORD, SetupStaticData.PASSWORD);
   systemPropertiesActions.requireBothLettersAndNumbersToYes();
 }
コード例 #3
0
 @Test(
     groups = {"P1", "P1_Target", "Smoke_Target", "PasswordChange"},
     dependsOnMethods = {
       "verifyValidationOnChangingPasswordWithRequireBothLettersAndNumbersSetToYes"
     })
 public void verifyValidationOnChangePasswordOfNewEmployeeTest() {
   employeeActions.addEmployee(employee);
   systemPropertiesActions.requireBothLettersAndNumbersToYes();
   actions.logout();
   actions.initializeSession(
       employee.getUserName().get(), SetupStaticData.PASSWORD, LoginData.STORE.value());
   // Validate that system displays error message when current password is not provided.
   passwordActions.changePasswordWithoutProvidingCurrentPassword(
       "", SetupStaticData.UPDATED_PASSWORD);
   passwordActions.changePasswordWithoutProvidingNewPassword(
       SetupStaticData.PASSWORD, "", SetupStaticData.UPDATED_PASSWORD);
   passwordActions.changePasswordWithoutProvidingConfirmNewPasswordTest(
       SetupStaticData.PASSWORD, SetupStaticData.UPDATED_PASSWORD, "");
   passwordActions.changePasswordWithIncorrectCurrentPassword(
       SetupStaticData.PASSWORD_SECOND, SetupStaticData.UPDATED_PASSWORD);
 }