Package com.eviware.soapui.impl.wsdl.loadtest.log

Examples of com.eviware.soapui.impl.wsdl.loadtest.log.LoadTestLog


  }

  private void exportLog( WsdlLoadTest loadTest ) throws IOException
  {
    // export log first
    LoadTestLog loadTestLog = loadTest.getLoadTestLog();
    ExportLoadTestLogAction exportLoadTestLogAction = new ExportLoadTestLogAction( loadTestLog, null );
    String logFileName = StringUtils.createFileName( loadTest.getName(), '_' ) + "-log.txt";
    if( getOutputFolder() != null )
    {
      ensureOutputFolder( loadTest );
      logFileName = getAbsoluteOutputFolder( loadTest ) + File.separator + logFileName;
    }

    int cnt = exportLoadTestLogAction.exportToFile( new File( logFileName ) );
    log.info( "Exported " + cnt + " log items to [" + logFileName + "]" );

    int errorCnt = 0;
    for( int c = 0; c < loadTestLog.getSize(); c++ )
    {
      LoadTestLogEntry entry = ( LoadTestLogEntry )loadTestLog.getElementAt( c );

      if( entry != null && entry.isError() )
      {
        String entryFileName = StringUtils.createFileName( loadTest.getName(), '_' ) + "-error-" + errorCnt++
            + "-entry.txt";
View Full Code Here


      getConfig().setCancelExcessiveThreads( true );

    if( getConfig().xgetStrategyInterval() == null )
      getConfig().setStrategyInterval( DEFAULT_STRATEGY_INTERVAL );

    loadTestLog = new LoadTestLog( this );

    for( LoadTestRunListener listener : SoapUI.getListenerRegistry().getListeners( LoadTestRunListener.class ) )
    {
      addLoadTestRunListener( listener );
    }
View Full Code Here

  {
    TestStep step = result.getTestStep();
    if( targetStepMatches( step ) )
    {
      WsdlLoadTest loadTest = ( WsdlLoadTest )loadTestRunner.getLoadTest();
      LoadTestLog loadTestLog = loadTest.getLoadTestLog();

      int errorCount = loadTestLog.getErrorCount( step.getName() );
      if( maxAbsoluteErrors >= 0 && errorCount > maxAbsoluteErrors )
        loadTestRunner.fail( "Maximum number of errors [" + maxAbsoluteErrors + "] exceeded for step ["
            + step.getName() + "]" );

      int index = step.getTestCase().getIndexOfTestStep( step );
View Full Code Here

      TestCaseRunContext runContext )
  {
    if( ALL_TEST_STEPS.equals( getTargetStep() ) )
    {
      WsdlLoadTest loadTest = ( WsdlLoadTest )loadTestRunner.getLoadTest();
      LoadTestLog loadTestLog = loadTest.getLoadTestLog();

      int errorCount = loadTestLog.getErrorCount( null );
      if( maxAbsoluteErrors >= 0 && errorCount > maxAbsoluteErrors )
        loadTestRunner.fail( "Maximum number of errors [" + maxAbsoluteErrors + "] exceeded" );

      LoadTestStatistics statisticsModel = loadTest.getStatisticsModel();
      long totalSteps = statisticsModel.getStatistic( LoadTestStatistics.TOTAL, Statistic.COUNT );
View Full Code Here

        log.info("Exported " + cnt + " statistics to [" + statisticsFileName + "]");
    }

    private void exportLog(WsdlLoadTest loadTest) throws IOException {
        // export log first
        LoadTestLog loadTestLog = loadTest.getLoadTestLog();
        ExportLoadTestLogAction exportLoadTestLogAction = new ExportLoadTestLogAction(loadTestLog, null);
        String logFileName = StringUtils.createFileName(loadTest.getName(), '_') + "-log.txt";
        if (getOutputFolder() != null) {
            ensureOutputFolder(loadTest);
            logFileName = getAbsoluteOutputFolder(loadTest) + File.separator + logFileName;
        }

        int cnt = exportLoadTestLogAction.exportToFile(new File(logFileName));
        log.info("Exported " + cnt + " log items to [" + logFileName + "]");

        int errorCnt = 0;
        for (int c = 0; c < loadTestLog.getSize(); c++) {
            LoadTestLogEntry entry = (LoadTestLogEntry) loadTestLog.getElementAt(c);

            if (entry != null && entry.isError()) {
                String entryFileName = StringUtils.createFileName(loadTest.getName(), '_') + "-error-" + errorCnt++
                        + "-entry.txt";
                if (getOutputFolder() != null) {
View Full Code Here

        if (getConfig().xgetStrategyInterval() == null) {
            getConfig().setStrategyInterval(DEFAULT_STRATEGY_INTERVAL);
        }

        loadTestLog = new LoadTestLog(this);

        for (LoadTestRunListener listener : SoapUI.getListenerRegistry().getListeners(LoadTestRunListener.class)) {
            addLoadTestRunListener(listener);
        }
View Full Code Here

    public String assertResult(LoadTestRunner loadTestRunner, LoadTestRunContext context, TestStepResult result,
                               TestCaseRunner testRunner, TestCaseRunContext runContext) {
        TestStep step = result.getTestStep();
        if (targetStepMatches(step)) {
            WsdlLoadTest loadTest = (WsdlLoadTest) loadTestRunner.getLoadTest();
            LoadTestLog loadTestLog = loadTest.getLoadTestLog();

            int errorCount = loadTestLog.getErrorCount(step.getName());
            if (maxAbsoluteErrors >= 0 && errorCount > maxAbsoluteErrors) {
                loadTestRunner.fail("Maximum number of errors [" + maxAbsoluteErrors + "] exceeded for step ["
                        + step.getName() + "]");
            }
View Full Code Here

    public String assertResults(LoadTestRunner loadTestRunner, LoadTestRunContext context, TestCaseRunner testRunner,
                                TestCaseRunContext runContext) {
        if (ALL_TEST_STEPS.equals(getTargetStep())) {
            WsdlLoadTest loadTest = (WsdlLoadTest) loadTestRunner.getLoadTest();
            LoadTestLog loadTestLog = loadTest.getLoadTestLog();

            int errorCount = loadTestLog.getErrorCount(null);
            if (maxAbsoluteErrors >= 0 && errorCount > maxAbsoluteErrors) {
                loadTestRunner.fail("Maximum number of errors [" + maxAbsoluteErrors + "] exceeded");
            }

            LoadTestStatistics statisticsModel = loadTest.getStatisticsModel();
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.loadtest.log.LoadTestLog

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.