Package com.canoo.webtest.engine

Examples of com.canoo.webtest.engine.WebClientContext$CurrentWindowTracker


            WebtestPropertyHelper.definePropertyHelper(getProject(), originalPropertyHelper);
           
            // clean the WebClient(s) to stop running js scripts (like setTimeout)
            for (final Iterator iter=context.getWebClientContexts().values().iterator(); iter.hasNext();)
            {
              final WebClientContext webClientContext = (WebClientContext) iter.next();
              webClientContext.destroy();
            }
      }

    LOG.info("Finished executing " + message);
View Full Code Here


    }

    public void doExecute() throws Exception {
        LOG.debug("Selecting WebClient " + getName());

        final WebClientContext wcc = getContext().getCurrentWebClientContext();
        getContext().defineCurrentWebClientContext(getName());

        final Page currentResponse = getContext().getCurrentResponse();
        final String message;
        if (currentResponse == null)
        {
          message = "No current response";
        }
        else
        {
          message = "Current response is now: " + currentResponse.getWebResponse().getRequestUrl();
        }
        LOG.debug(message);

        if (!getSteps().isEmpty())
        {
          try
          {
            executeContainedSteps();
          }
          finally
          {
                LOG.debug("Restoring WebClientContext " + wcc.getName());
            getContext().defineCurrentWebClientContext(wcc.getName());
          }
        }
    }
View Full Code Here

TOP

Related Classes of com.canoo.webtest.engine.WebClientContext$CurrentWindowTracker

Copyright © 2018 www.massapicom. 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.