@Test(description = "Verify the staus is 'Unmanaged' after restore complete", priority = 2)
 public void Verify_Status_after_Restore() throws Exception {
   action.driver.navigate().refresh();
   // Click on Inventory,Manage Elements
   action.ClickLink(locator.getProperty("Inventory"));
   action.WaitForTitle(locator.getProperty("Inventory"));
   action.ClickLink(locator.getProperty("Manage_Elements"));
   action.WaitForTitle(locator.getProperty("Manage_Elements"));
   action.VerifyTitle(locator.getProperty("Manage_Elements"));
   action.SwithchFrame("iframe0");
   Thread.sleep(2000);
   action.driver.switchTo().frame("appTableIframe");
   Thread.sleep(2000);
   // Select CM Element
   setup.SelectCMElement(action, input.getProperty("cm29"));
   Thread.sleep(1000);
   WebDriverWait wait = new WebDriverWait(action.driver, 60);
   wait.until(
       ExpectedConditions.elementToBeClickable(By.xpath(locator.getProperty("Currentstatus"))));
   // Click on Get current status button
   action.ClickButton(locator.getProperty("Currentstatus"));
   action.WaitForTitle(locator.getProperty("Manage_Elements"));
   Thread.sleep(90000);
   // Verify the status
   action.VerifyElementValue(locator.getProperty("Mangedby"), "Primary");
   Thread.sleep(2000);
 }
Exemplo n.º 2
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 = "Manage CM Element in primary", priority = 3)
 public void Manage_CM() throws Exception {
   action.driver.navigate().refresh();
   // Click on Inventory,Manage Elements
   action.ClickLink(locator.getProperty("Inventory"));
   action.WaitForTitle(locator.getProperty("Inventory"));
   action.ClickLink(locator.getProperty("Manage_Elements"));
   action.WaitForTitle(locator.getProperty("Manage_Elements"));
   action.VerifyTitle(locator.getProperty("Manage_Elements"));
   action.SwithchFrame("iframe0");
   Thread.sleep(2000);
   action.driver.switchTo().frame("appTableIframe");
   Thread.sleep(2000);
   // Select the CM Element
   setup.SelectCMElement(action, input.getProperty("cm29"));
   Thread.sleep(1000);
   // Click on More button
   action.ClickButton(locator.getProperty("Users.More"));
   Thread.sleep(1000);
   // Select manage link
   action.ClickLink(locator.getProperty("Manage"));
   Thread.sleep(60000);
   action.VerifyElementValue(locator.getProperty("Mangedby"), "Primary");
   Thread.sleep(2000);
 }
Exemplo n.º 4
0
 @Test(priority = 3)
 public void VerifyAssignedUpr() 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.ClickLink(input.getProperty("site1"));
   action.ClickLink(locator.getProperty("User_Provisioning_Rule"));
   action.ClickButton(locator.getProperty("Tenantedit"));
   Thread.sleep(2000);
   action.VerifyElementValue(locator.getProperty("TassignedUpr"), input.getProperty("TUpr"));
 }
Exemplo n.º 5
0
 @Test(
     description = "Verify that the error message should display when Grace period field is empty",
     priority = 3)
 public void ShutdownAutoError() throws Exception {
   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.ClickButton(locator.getProperty("Commit"));
   boolean Accept = action.isAlertPresent();
   action.alert(Accept);
   action.WaitForObj(locator.getProperty("Shutdown.GracePer.msg"));
   action.VerifyElementValue(
       locator.getProperty("Shutdown.GracePer.msg"),
       locator.getProperty("Integer_value_is_out_of_range"));
   action.ClickButton(locator.getProperty("Cancel"));
 }