Exemplo n.º 1
0
        private AndoridDeviceManger()
        {
            Config config = Config.GetShareInstance();

            driverHelper = AndoridDriverHelper.GetShareInstance(config.GetValue("InstExePath"), config.GetValue("DriverPath"));
            adbHelper    = ADBHelper.GetShareInstance(config.GetValue("ADBExePath"));
        }
Exemplo n.º 2
0
 public static AndoridDriverHelper GetShareInstance(string exePath, string driverPath)
 {
     lock (lockHelper)
     {
         if (instance == null)
         {
             instance = new AndoridDriverHelper(exePath, driverPath);
         }
         return(instance);
     }
 }