Package org.uiautomation.ios

Examples of org.uiautomation.ios.ServerSideSession.stop()


      resp.setStatus(0);
      resp.setValue("");
      return resp;
    } catch (Exception e) {
      if (session != null) {
        session.stop();
      }
      if (e instanceof WebDriverException) {
        throw e;
      } else {
        throw new SessionNotCreatedException(e.getMessage(), e);
View Full Code Here


      throw new SessionNotCreatedException("The server cannot run " + cap + " at the moment." + e.getMessage());
    } catch (InstrumentsFailedToStartException|RecoverableCrashException e) {
      log.warning("Instruments failed to start in the allocated time ( " + timeOut + "sec):" + e
          .getMessage());
      if (session != null) {
        session.stop();
      }
    } catch (Exception e) {
      log.warning("Error starting the session." + e.getMessage());
      if (session != null) {
        session.stop();
View Full Code Here

        session.stop();
      }
    } catch (Exception e) {
      log.warning("Error starting the session." + e.getMessage());
      if (session != null) {
        session.stop();
      }
      throw e;
    } finally {
      if (session != null && session.getStopCause() != null) {
        log.warning("app has crashed at startup :" + session.getStopCause());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.