Package com.eviware.soapui.model.testsuite

Examples of com.eviware.soapui.model.testsuite.LoadTestRunner


        log.info( "Overriding threadCount [" + loadTest.getThreadCount() + "] with specified [" + threadCount + "]" );
        loadTest.setThreadCount( threadCount );
      }

      loadTest.addLoadTestRunListener( this );
      LoadTestRunner runner = loadTest.run();

      // wait for test to finish
      while( !runner.hasStopped() )
      {
        if( runner.getStatus() == Status.RUNNING )
        {
          log.info( "LoadTest [" + loadTest.getName() + "] progress: " + runner.getProgress() + ", "
              + runner.getRunningThreadCount() );
        }
        Thread.sleep( 1000 );
      }

      log.info( "LoadTest [" + loadTest.getName() + "] finished with status " + runner.getStatus().toString() );

      if( printReport )
      {
        log.info( "Exporting log and statistics for LoadTest [" + loadTest.getName() + "]" );
View Full Code Here


  @Override
  public void prepare( TestCaseRunner testRunner, TestCaseRunContext testRunContext ) throws Exception
  {
    super.prepare( testRunner, testRunContext );

    LoadTestRunner loadTestRunner = ( LoadTestRunner )testRunContext
        .getProperty( TestCaseRunContext.LOAD_TEST_RUNNER );
    mockRunListener = new InternalMockRunListener();

    for( TestAssertion assertion : getAssertionList() )
    {
View Full Code Here

    }
  }

  public TestStepResult run( TestCaseRunner testRunner, TestCaseRunContext context )
  {
    LoadTestRunner loadTestRunner = ( LoadTestRunner )context.getProperty( TestCaseRunContext.LOAD_TEST_RUNNER );
    if( loadTestRunner == null )
    {
      return internalRun( ( WsdlTestRunContext )context );
    }
    else
    {
      // block other threads during loadtesting -> this should be improved!
      synchronized( STATUS_PROPERTY )
      {
        if( loadTestRunner.getStatus() == LoadTestRunner.Status.RUNNING )
        {
          return internalRun( ( WsdlTestRunContext )context );
        }
        else
        {
View Full Code Here

                log.info("Overriding threadCount [" + loadTest.getThreadCount() + "] with specified [" + threadCount + "]");
                loadTest.setThreadCount(threadCount);
            }

            loadTest.addLoadTestRunListener(this);
            LoadTestRunner runner = loadTest.run();

            // wait for test to finish
            while (!runner.hasStopped()) {
                if (runner.getStatus() == Status.RUNNING) {
                    log.info("LoadTest [" + loadTest.getName() + "] progress: " + runner.getProgress() + ", "
                            + runner.getRunningThreadCount());
                }
                Thread.sleep(1000);
            }

            log.info("LoadTest [" + loadTest.getName() + "] finished with status " + runner.getStatus().toString());

            if (printReport) {
                log.info("Exporting log and statistics for LoadTest [" + loadTest.getName() + "]");

                loadTest.getStatisticsModel().finish();
View Full Code Here

TOP

Related Classes of com.eviware.soapui.model.testsuite.LoadTestRunner

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.