Exemplo n.º 1
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;
 }
Exemplo n.º 2
0
 private DesiredCapabilities getDCClient() {
   PrepareDesiredCapability clientBrowserCap = new PrepareDesiredCapability(clientBrowserData);
   return clientBrowserCap.get();
 }
Exemplo n.º 3
0
 private DesiredCapabilities getDCJvm() {
   PrepareDesiredCapability systemCapa = new PrepareDesiredCapability(System.getProperties());
   return systemCapa.get();
 }