Beispiel #1
0
 public List<Property> getPropertiesList() {
   HeartbeatFlow.log.info("Reading Selenium Grid servers properties...");
   JsonArray array = converter.convertFileToJSON(super.fileLocation);
   if (!array.getClass().equals(JsonNull.class) & array != null) {
     for (Object jsonProperty : array) {
       GridProperty prop = new GridProperty();
       prop.setUrl(converter.getProperty(jsonProperty, "url"));
       prop.setNodesList(nodesArray(jsonProperty, "nodes"));
       super.propertiesList.add(prop);
     }
   }
   return super.propertiesList;
 }