Package com.google.jstestdriver

Examples of com.google.jstestdriver.SlaveBrowser.heartBeat()


    if (ids != null && ids[0] != null) {
      String id = ids[0];
      SlaveBrowser browser = capturedBrowsers.getBrowser(id);

      if (browser != null) {
        browser.heartBeat();
        logger.trace("browser heartbeat {}", browser);
        if (browser.getCommandRunning() == null) {
          writer.write("Waiting...");
        } else {
          writer.write("Running: " + browser.getCommandRunning());
View Full Code Here


    if (browser == null) {
      // re-capture browser as standalone
      response.sendRedirect(
          prefix.prefixPath("/capture/" + CaptureHandler.RUNNER_TYPE + "/" + RunnerType.BROWSER + "/timeout/-1"));
    } else {
      browser.heartBeat();
      // start test running
      response.setContentType(MimeTypes.TEXT_HTML_UTF_8);
      final HtmlWriter writer = new HtmlWriter(response.getWriter(), prefix);
      request.writeDTD(writer);
      pages.get(request.getPageType()).render(writer, request);
View Full Code Here

    if (browser == null) {
      LOGGER.warn("Invalid ID in: {}", request);
      // re-capture browser as standalone
      response.sendRedirect("/capture/" + RUNNER_TYPE + "/" + RunnerType.STANDALONE.toString() + "/timeout/3600000");
    } else {
      browser.heartBeat();
      response.setContentType(MimeTypes.TEXT_HTML_UTF_8);
      final HtmlWriter writer = new HtmlWriter(response.getWriter(), prefix);
      request.writeDTD(writer);
      pages.get(request.getPageType()).render(writer, request);
      // start test running
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.