@Test(dependsOnMethods = "getClusterMembersNumberTest", groups = "Enterprise-only") public void getClusterMembers() { RepositoryServerClusteringPage clusteringPage = drone.getCurrentPage().render(); List<String> getClusterMembers = clusteringPage.getClusterMembers(); Assert.assertTrue(!getClusterMembers.isEmpty(), "Server Details(IP) of cluster members isn't correctly"); }
public List<String> getClusterMembers() { try { List<String> clusterMembers = new ArrayList<>(); List<WebElement> elements = drone.findAndWaitForElements(CLUSTER_MEMBERS_IP); for (WebElement webElement : elements) { if (webElement.isDisplayed()) { clusterMembers.add(webElement.getText()); } } return clusterMembers; } catch (StaleElementReferenceException e) { return getClusterMembers(); } }
RepositoryServerClusteringPage extends AdvancedAdminConsolePage { public List<String> getClusterMembers() { try { List<String> clusterMembers = new ArrayList<>(); List<WebElement> elements = drone.findAndWaitForElements(CLUSTER_MEMBERS_IP); for (WebElement webElement : elements) { if (webElement.isDisplayed()) { clusterMembers.add(webElement.getText()); } } return clusterMembers; } catch (StaleElementReferenceException e) { return getClusterMembers(); } } }
RepositoryServerClusteringPage extends AdvancedAdminConsolePage { public List<String> getClusterMembers() { try { List<String> clusterMembers = new ArrayList<>(); List<WebElement> elements = drone.findAndWaitForElements(CLUSTER_MEMBERS_IP); for (WebElement webElement : elements) { if (webElement.isDisplayed()) { clusterMembers.add(webElement.getText()); } } return clusterMembers; } catch (StaleElementReferenceException e) { return getClusterMembers(); } } RepositoryServerClusteringPage(WebDrone drone); }
RepositoryServerClusteringPage extends AdvancedAdminConsolePage { public List<String> getClusterMembers() { try { List<String> clusterMembers = new ArrayList<>(); List<WebElement> elements = drone.findAndWaitForElements(CLUSTER_MEMBERS_IP); for (WebElement webElement : elements) { if (webElement.isDisplayed()) { clusterMembers.add(webElement.getText()); } } return clusterMembers; } catch (StaleElementReferenceException e) { return getClusterMembers(); } } RepositoryServerClusteringPage(WebDrone drone); @SuppressWarnings("unchecked") @Override RepositoryServerClusteringPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override RepositoryServerClusteringPage render(); @SuppressWarnings("unchecked") @Override RepositoryServerClusteringPage render(final long time); boolean isClusterEnabled(); int getClusterMembersNumber(); List<String> getClusterMembers(); boolean isServerNamePresent(); boolean isIpAddressPresent(); boolean isClusterIdPresent(); List<String> getServerNames(); List<String> getPorts(); List<String> getLastRegs(); List<String> getOffServerNames(); List<String> getOffClusterIps(); List<String> getOffPorts(); List<String> getOffLastRegs(); List<String> getNonServerNames(); List<String> getNonClusterIps(); boolean isValidateButtonPresent(); boolean isAdditionalDescriptionLinkPresent(); String getDescriptionText(); String getServerDescriptionText(); String getIpDescriptionText(); String getServerNameText(); String getIpAddressText(); String getClusterIdText(); ClusterValidationPage getValidationPage(WebDrone drone); void clickRemove(WebDrone drone); }
RepositoryServerClusteringPage extends AdvancedAdminConsolePage { public List<String> getClusterMembers() { try { List<String> clusterMembers = new ArrayList<>(); List<WebElement> elements = drone.findAndWaitForElements(CLUSTER_MEMBERS_IP); for (WebElement webElement : elements) { if (webElement.isDisplayed()) { clusterMembers.add(webElement.getText()); } } return clusterMembers; } catch (StaleElementReferenceException e) { return getClusterMembers(); } } RepositoryServerClusteringPage(WebDrone drone); @SuppressWarnings("unchecked") @Override RepositoryServerClusteringPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override RepositoryServerClusteringPage render(); @SuppressWarnings("unchecked") @Override RepositoryServerClusteringPage render(final long time); boolean isClusterEnabled(); int getClusterMembersNumber(); List<String> getClusterMembers(); boolean isServerNamePresent(); boolean isIpAddressPresent(); boolean isClusterIdPresent(); List<String> getServerNames(); List<String> getPorts(); List<String> getLastRegs(); List<String> getOffServerNames(); List<String> getOffClusterIps(); List<String> getOffPorts(); List<String> getOffLastRegs(); List<String> getNonServerNames(); List<String> getNonClusterIps(); boolean isValidateButtonPresent(); boolean isAdditionalDescriptionLinkPresent(); String getDescriptionText(); String getServerDescriptionText(); String getIpDescriptionText(); String getServerNameText(); String getIpAddressText(); String getClusterIdText(); ClusterValidationPage getValidationPage(WebDrone drone); void clickRemove(WebDrone drone);  }