public void Tc_Role_007() { testStarts("Tc_Role_007", "Verify the validation message creating the role with empty in role name."); openBrowser(URL); LoginPage.login(UserName, Password); waitForElementToDisplay(OR.Home_Menu_users, 60); clickOn(OR.Home_Menu_role); RolePage.CreateRole(""); verifyElementText(OR.Roles_Name_validation, "Role name is required."); }
public void Tc_Role_001() { testStarts("Tc_Role_001", "Verify by creating new Role"); openBrowser(URL); LoginPage.login(UserName, Password); waitForElementToDisplay(OR.Home_Menu_users, 60); clickOn(OR.Home_Menu_role); RolePage.CreateRole(RolePage.RoleName); verifyElementText(OR.Roles_Create_sucessmessage, "Role created successfully"); RolePage.verifyRole(RolePage.RoleName); }
public void Tc_Role_005() { testStarts("Tc_Role_005", "Verify the validation message creating the role that already in the list."); openBrowser(URL); LoginPage.login(UserName, Password); waitForElementToDisplay(OR.Home_Menu_users, 60); clickOn(OR.Home_Menu_role); RolePage.CreateRole(RolePage.RoleName); verifyElementText(OR.Roles_Create_sucessmessage, "Role created successfully"); RolePage.verifyRole(RolePage.RoleName); RolePage.CreateRole(RolePage.RoleName); verifyElementText(OR.Roles_Create_failsmessage, "Role Name is already present"); }