コード例 #1
0
 @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);
 }
コード例 #2
0
 @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);
 }