Exemplo n.º 1
0
 private void setFrameworkProperties(String standBylookUpFileName) {
   String pathOfFile = Utils.getResources(RefinedBrowserConf.class, standBylookUpFileName);
   if (null == pathOfFile) {
     isFrameworkProperties = false;
   } else {
     isFrameworkProperties = true;
     frameworkPropData = new PropertyValueMin(Utils.getResources(this, standBylookUpFileName));
   }
 }
Exemplo n.º 2
0
 private DesiredCapabilities getDCFrameworkProp() {
   if (isFrameworkProperties) {
     if (isFrameworkProperties) {
       Properties prop = new Properties();
       try {
         prop.load(new FileInputStream(new File(Utils.getResources(this, fileName))));
       } catch (FileNotFoundException e) {
         // TODO Auto-generated catch block
         LOGGER.error(e);
       } catch (IOException e) {
         // TODO Auto-generated catch block
         LOGGER.error(e);
       }
       PrepareDesiredCapability pdcFrameworkProperties = new PrepareDesiredCapability(prop);
       return pdcFrameworkProperties.get();
     }
   }
   return null;
 }