예제 #1
0
 @Test(
     description =
         "Verify that the values are successfully change/override by an administrator and attribute successfully saved",
     groups = {"Sanity"})
 public void ShutdownUpdate() throws Exception {
   action.RefreshPage();
   // Navigate to Configuration page, setting,SMGR, shutdown
   action.ClickLink(locator.getProperty("Configurations"));
   action.ClickLink(locator.getProperty("Settings"));
   action.ClickLink(locator.getProperty("SMGR"));
   action.ClickLink(locator.getProperty("Shutdown"));
   action.SwithchFrame("iframe0");
   action.ClickButton(locator.getProperty("Edit"));
   Accept = action.isAlertPresent();
   action.alert(Accept);
   action.WaitForTitle(locator.getProperty("Edit_Profile"));
   // update the value
   action.ClearText(locator.getProperty("Shutdown.GracePer"));
   // action.WaitForTitle(locator.getProperty("Edit_Profile"));
   action.ClearText(locator.getProperty("Shutdown.GracePer"));
   action.entertext(locator.getProperty("Shutdown.GracePer"), input.getProperty("number1"));
   // Verify that the values are successfully change/override by an administrator and attribute
   // successfully saved
   action.ClickButton(locator.getProperty("Commit"));
   Thread.sleep(2000);
   Accept = action.isAlertPresent();
   action.alert(Accept);
   action.VerifyElementValue(
       locator.getProperty("Shutdown.GracePer"), input.getProperty("number1"));
   Accept = action.isAlertPresent();
   action.alert(Accept);
 }
 @Test(description = "Verify the Edit department operation of tenant")
 public void EditDept() throws Exception {
   action.driver.navigate().refresh();
   // Click on tenant Management Link
   action.ClickLink(locator.getProperty("Tenant_Management"));
   action.WaitForTitle(locator.getProperty("Multi-Tenancy_Management"));
   action.VerifyTitle(locator.getProperty("Multi-Tenancy_Management"));
   action.SwithchFrame("iframe0");
   action.ClickElement(locator.getProperty("Tenanttree3"));
   Thread.sleep(1000);
   action.ClickElement(locator.getProperty("Tenanttree4"));
   Thread.sleep(1000);
   // Click on Department
   action.ClickLink(input.getProperty("Dept1"));
   Thread.sleep(2000);
   // Click on Edit button
   action.ClickButton(locator.getProperty("Tenantedit"));
   // Edit the department and click on edit button
   action.ClearText(locator.getProperty("deptdesc"));
   action.entertext(locator.getProperty("deptdesc"), "Department");
   action.ClickButton(locator.getProperty("Tenantadd"));
   action.WaitForTitle(locator.getProperty("Multi-Tenancy_Management"));
   action.VerifyTitle(locator.getProperty("Multi-Tenancy_Management"));
   Thread.sleep(2000);
   action.VerifyStringValue(
       "Dept1 is updated successfully. Refresh the tree to see updated node.");
 }
예제 #3
0
 @Test(priority = 1)
 public void createUpr() throws Exception {
   action.driver.navigate().refresh();
   // Click on User Provisioning Rule
   action.ClickLink(locator.getProperty("User_Provisioning_Rule"));
   action.WaitForTitle(locator.getProperty("User_Provisioning_Rules"));
   action.VerifyTitle(locator.getProperty("User_Provisioning_Rules"));
   action.SwithchFrame("iframe0");
   // Click on New Button
   action.ClickButton(locator.getProperty("Users.New"));
   action.WaitForTitle(locator.getProperty("New_User_Provisioning_Rule"));
   action.VerifyTitle(locator.getProperty("New_User_Provisioning_Rule"));
   // Fill up the required fields of Upr
   Thread.sleep(3000);
   action.entertext(locator.getProperty("Uprname"), input.getProperty("TUpr"));
   Thread.sleep(1000);
   action.SelectFromdropDown(locator.getProperty("LangDropdown"), input.getProperty("Danish"));
   action.SelectFromdropDown(locator.getProperty("TimeDropdown"), input.getProperty("Danishtime"));
   // Click on Commit Button and Verify the title of the page
   action.ClickButton(locator.getProperty("Commit"));
   action.WaitForTitle(locator.getProperty("User_Provisioning_Rules"));
   action.VerifyTitle(locator.getProperty("User_Provisioning_Rules"));
   usetup.VerifyUprname(action, input.getProperty("TUpr"));
 }