@Test(dependsOnMethods = "isClusterEnabledTest", groups = "Enterprise-only") public void getClusterMembersNumberTest() { RepositoryServerClusteringPage clusteringPage = drone.getCurrentPage().render(); Assert.assertTrue(clusteringPage.getClusterMembersNumber() >= 1, "Number of cluster members isn't correctly"); }
public int getClusterMembersNumber() { try { WebElement clusterMembersNumber = drone.findAndWait(CLUSTER_MEMBERS_NUMBER); return Integer.parseInt(clusterMembersNumber.getText()); } catch (NumberFormatException e) { throw new PageOperationException("Unable to parse Cluster members number"); } }
RepositoryServerClusteringPage extends AdvancedAdminConsolePage { public int getClusterMembersNumber() { try { WebElement clusterMembersNumber = drone.findAndWait(CLUSTER_MEMBERS_NUMBER); return Integer.parseInt(clusterMembersNumber.getText()); } catch (NumberFormatException e) { throw new PageOperationException("Unable to parse Cluster members number"); } } }
RepositoryServerClusteringPage extends AdvancedAdminConsolePage { public int getClusterMembersNumber() { try { WebElement clusterMembersNumber = drone.findAndWait(CLUSTER_MEMBERS_NUMBER); return Integer.parseInt(clusterMembersNumber.getText()); } catch (NumberFormatException e) { throw new PageOperationException("Unable to parse Cluster members number"); } } RepositoryServerClusteringPage(WebDrone drone); }
RepositoryServerClusteringPage extends AdvancedAdminConsolePage { public int getClusterMembersNumber() { try { WebElement clusterMembersNumber = drone.findAndWait(CLUSTER_MEMBERS_NUMBER); return Integer.parseInt(clusterMembersNumber.getText()); } catch (NumberFormatException e) { throw new PageOperationException("Unable to parse Cluster members number"); } } 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 int getClusterMembersNumber() { try { WebElement clusterMembersNumber = drone.findAndWait(CLUSTER_MEMBERS_NUMBER); return Integer.parseInt(clusterMembersNumber.getText()); } catch (NumberFormatException e) { throw new PageOperationException("Unable to parse Cluster members number"); } } 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);  }