Package net.grinder.engine.common

Examples of net.grinder.engine.common.EngineException


  public GrinderProcess(final Receiver agentReceiver) throws GrinderException {
    try {
      m_initialisationMessage = (InitialiseGrinderMessage) agentReceiver.waitForMessage();

      if (m_initialisationMessage == null) {
        throw new EngineException("No control stream from agent");
      }

      final GrinderProperties properties = m_initialisationMessage.getProperties();

      final WorkerIdentity workerIdentity = m_initialisationMessage.getWorkerIdentity();
View Full Code Here


      context.putProperty("LOG_DIRECTORY", logDirectory);

      try {
        configurator.doConfigure(GrinderProcess.class.getResource("/logback-worker.xml"));
      } catch (final JoranException e) {
        throw new EngineException("Could not initialise logger", e);
      }

      return result;
    } else {
      m_terminalLogger.warn("Logback not found; grinder log configuration will be ignored.\n"
View Full Code Here

      m_groovyClass = loader.parseClass(script.getFile());
      m_grinderRunner = new GrinderContextExecutor(m_groovyClass);
      m_grinderRunner.runBeforeProcess();
      assert m_grinderRunner.testCount() > 0;
    } catch (IOException io) {
      throw new EngineException("Unable to parse groovy script at: " + script.getFile().getAbsolutePath(), io);
    } catch (InitializationError e) {
      throw new EngineException("Error while initialize test runner", e);
    } catch (Throwable e) {
      throw new EngineException("Error while initialize test runner", e);
    }
  }
View Full Code Here

  @Override
  public ScriptEngineService.WorkerRunnable createWorkerRunnable() throws EngineException {
    try {
      return new GroovyWorkerRunnable(new GrinderContextExecutor(m_groovyClass));
    } catch (InitializationError e) {
      throw new EngineException("Exception occurred during initializing runner", exceptionProcessor.sanitize(e));
    }
  }
View Full Code Here

  @Override
  public ScriptEngineService.WorkerRunnable createWorkerRunnable(Object testRunner) throws EngineException {
    try {
      return new GroovyWorkerRunnable(new GrinderContextExecutor(m_groovyClass, testRunner));
    } catch (InitializationError e) {
      throw new EngineException("Exception occurred during initializing runner", exceptionProcessor.sanitize(e));
    }
  }
View Full Code Here

TOP

Related Classes of net.grinder.engine.common.EngineException

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.