@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.");
 }
Пример #2
0
  @Test(priority = 2)
  public void AssignUpr() 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(1000);
    // Select the Upr From table
    action.ClickButton(locator.getProperty("Tenantuprbtn0"));
    Thread.sleep(1000);
    // Click on Commit button
    action.ClickButton(locator.getProperty("Commit"));
    Thread.sleep(1000);

    action.WaitForTitle(locator.getProperty("Multi-Tenancy_Management"));
    action.VerifyTitle(locator.getProperty("Multi-Tenancy_Management"));
    Thread.sleep(2000);
    action.VerifyStringValue(
        "site1 is updated successfully. Refresh the tree to see updated node.");
  }
Пример #3
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"));
 }