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

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


    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 )
        {
          ensureOutputFolder( loadTest );
          entryFileName = getAbsoluteOutputFolder( loadTest ) + File.separator + entryFileName;
        }

        try
        {
          entry.exportToFile( entryFileName );
        }
        catch( Exception e )
        {
          SoapUI.logError( e );
        }
View Full Code Here


    int row = logTable.convertRowIndexToModel( selectedRow );
    if( row < 0 )
      return;

    LoadTestLogEntry entry = ( LoadTestLogEntry )loadTestLog.getElementAt( row );
    ActionList actions = entry.getActions();

    if( actions == null || actions.getActionCount() == 0 )
      return;

    JPopupMenu popup = ActionSupport.buildPopup( actions );
View Full Code Here

    public Object getValueAt( int rowIndex, int columnIndex )
    {
      if( rowIndex == -1 )
        return null;

      LoadTestLogEntry entry = ( LoadTestLogEntry )loadTestLog.getElementAt( rowIndex );

      switch( columnIndex )
      {
      case 0 :
        return entry.getIcon();
      case 1 :
        return entry.getTimeStamp();
      case 2 :
        return entry.getType();
      case 3 :
        return entry.getTargetStepName();
      case 4 :
        return entry.getMessage();
      }

      return null;
    }
View Full Code Here

        int row = logTable.convertRowIndexToModel( selectedRow );
        if( row < 0 )
          return;

        LoadTestLogEntry entry = ( LoadTestLogEntry )loadTestLog.getElementAt( row );
        ActionList actions = entry.getActions();
        if( actions != null )
          actions.performDefaultAction( new ActionEvent( logTable, 0, null ) );
      }
    }
View Full Code Here

        int index = logTable.getFilters().convertRowIndexToView( c );
        if( index == -1 )
          continue;
      }

      LoadTestLogEntry logEntry = ( LoadTestLogEntry )loadTestLog.getElementAt( c );
      writer.write( sdf.format( new Date( logEntry.getTimeStamp() ) ) );
      writer.write( ',' );
      writer.write( logEntry.getType() );
      writer.write( ',' );
      String targetStepName = logEntry.getTargetStepName();
      writer.write( targetStepName == null ? "" : targetStepName );
      writer.write( ",\"" );
      writer.write( logEntry.getMessage() );
      writer.write( '"' );
      writer.println();
      cnt++ ;
    }
View Full Code Here

        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) {
                    ensureOutputFolder(loadTest);
                    entryFileName = getAbsoluteOutputFolder(loadTest) + File.separator + entryFileName;
                }

                try {
                    entry.exportToFile(entryFileName);
                } catch (Exception e) {
                    SoapUI.logError(e);
                }
            }
        }
View Full Code Here

                if (index == -1) {
                    continue;
                }
            }

            LoadTestLogEntry logEntry = (LoadTestLogEntry) loadTestLog.getElementAt(c);
            writer.write(DateUtil.formatFull(new Date(logEntry.getTimeStamp())));
            writer.write(',');
            writer.write(logEntry.getType());
            writer.write(',');
            String targetStepName = logEntry.getTargetStepName();
            writer.write(targetStepName == null ? "" : targetStepName);
            writer.write(",\"");
            writer.write(logEntry.getMessage());
            writer.write('"');
            writer.println();
            cnt++;
        }
View Full Code Here

        int row = logTable.convertRowIndexToModel(selectedRow);
        if (row < 0) {
            return;
        }

        LoadTestLogEntry entry = (LoadTestLogEntry) loadTestLog.getElementAt(row);
        ActionList actions = entry.getActions();

        if (actions == null || actions.getActionCount() == 0) {
            return;
        }
View Full Code Here

        public Object getValueAt(int rowIndex, int columnIndex) {
            if (rowIndex == -1) {
                return null;
            }

            LoadTestLogEntry entry = (LoadTestLogEntry) loadTestLog.getElementAt(rowIndex);

            switch (columnIndex) {
                case 0:
                    return entry.getIcon();
                case 1:
                    return entry.getTimeStamp();
                case 2:
                    return entry.getType();
                case 3:
                    return entry.getTargetStepName();
                case 4:
                    return entry.getMessage();
            }

            return null;
        }
View Full Code Here

                int row = logTable.convertRowIndexToModel(selectedRow);
                if (row < 0) {
                    return;
                }

                LoadTestLogEntry entry = (LoadTestLogEntry) loadTestLog.getElementAt(row);
                ActionList actions = entry.getActions();
                if (actions != null) {
                    actions.performDefaultAction(new ActionEvent(logTable, 0, null));
                }
            }
        }
View Full Code Here

TOP

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

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.