[ grinder-Feature Requests-887214 ] Save "total" results with transaction results

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.java.grinder.devel
Message-ID <[email protected]>
Feature Requests item #887214, was opened at 2004-01-29 20:45
Message generated for change (Comment added) made by kmuszynski
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=368598&aid=887214&group_id=18598

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Console
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Philip Aston (philipa)
Summary: Save "total" results with transaction results

Initial Comment:
When saving results from the console, totals are not
saved, only the results for each transaction.  It would
be nice if the totals were automatically saved instead
of having to manually copy them to the results file.

----------------------------------------------------------------------

Comment By: Karol Muszynski (kmuszynski)
Date: 2010-01-12 16:39

Message:
Exactly. But what I was thinking about ( and in my opinion submitter), was
to have totals in the console result file.

out file - created by the Grinder Agent. Already have Totals, but
calculated only for 1 Agent(Process) !
result file - created by the Grinder Console when user chooses File ->
Save results. Totals for all agents connected to the Console. Data comes
from the model for the swing tables.

----------------------------------------------------------------------

Comment By: Philip Aston (philipa)
Date: 2010-01-12 15:07

Message:
My last comment was incorrect. The existing code is the model for the swing
tables, and is not related to the summary table in the out file.

Nevertheless, I am implementing this.

----------------------------------------------------------------------

Comment By: Philip Aston (philipa)
Date: 2010-01-07 19:57

Message:
The existing code supports the summary table in the out file.

It would be straightforward to implement this feature. I may get around to
it....

----------------------------------------------------------------------

Comment By: Karol Muszynski (kmuszynski)
Date: 2010-01-07 14:45

Message:
Can we add\correct this feature ?

It looks like somebody started implementing this in
CumulativeStatisticsTableModel class

final class CumulativeStatisticsTableModel extends
DynamicStatisticsTableModel {
  private boolean m_includeTotals = true;

...

  public synchronized int getRowCount() {
    return super.getRowCount() + (m_includeTotals ? 1 : 0);
  }

...

  public synchronized void write(Writer writer, String columnDelimiter,
                                 String lineDelimeter)
    throws IOException {

    try {
      m_includeTotals = false;
      super.write(writer, columnDelimiter, lineDelimeter);
    }
    finally {
      m_includeTotals = true;
    }
  }
}

m_includeTotals is always false when saving statistics. Is this a bug or
unfinished implementation ?
Did you want to make it configurable in Menu->Options ?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=368598&aid=887214&group_id=18598

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.