Bug 42784 - Show the number of errors logged in the GUI
Show the number of errors logged in the GUI
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: HTTP
2.2
All All
: P2 enhancement with 1 vote (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2007-06-30 02:56 UTC by Alf Hogemark
Modified: 2012-05-18 06:46 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alf Hogemark 2007-06-30 02:56:03 UTC
Some errors that happen during the execution of a test, only shows up as "ERROR"
lines in the jmeter log file.
So these errors go unattended by a lot of users, I think.

I suggest to add a short text, displaying the number of errors logged in the
jmeter log file, if possible in only the number of errors in the current test
exectuion.

Currently, in the upper right corner, there is a text showing the number of
threads running. This seems to be kind of a "status" line. Perhaps we could add
a text there, stating  : "Number of errors logged : 3, number of threads running
5/10".
This would make it quite easy to see if anything unexpected has happened in the
test execution.

I am not sure if we should look at the jmeter log file, or if we should set up
our own log listener, which only receives "ERRORS" for all classes. I guess it
would be best to set up our own log listener, because some users might set the
jmeter properties so that nothing is logged.

It would also be nice to have an action or menu item to show the error log,
either the jmeter log file, like the bugzilla 41788 talks about, or just the
errors our own log listener has received.

I think this functionality would be very useful. If someone has better
suggestions on where to display the information, that is fine. But I think it
should always be displayed, so that even novice users will be able to notice it
without having to set something up first.
Comment 1 Sebb 2007-06-30 08:26:29 UTC
Sounds like a good idea, but would need to be carefully implemented to avoid 
causing too much overhead. [The existing counts only need updating for every 
thread event; to maintain an error count could at worst require per-sample 
updates].

I'm not convinced that a count is needed, but it would certainly be useful to 
know if any errors had occurred.
Comment 2 Philippe Mouawad 2012-05-17 22:10:20 UTC
Added option to control wether this counter is displayed or not:
jmeter.errorscounter.display=true

I checked performance, it seems OK, but if you find it's not, then we can switch option to false by default.
Comment 3 Philippe Mouawad 2012-05-17 22:10:35 UTC
Date: Thu May 17 22:09:03 2012
New Revision: 1339882

URL: http://svn.apache.org/viewvc?rev=1339882&view=rev
Log:
Bug 42784 - Show the number of errors logged in the GUI

Added:
   jmeter/trunk/src/core/org/apache/jmeter/images/warning.png   (with props)
Modified:
   jmeter/trunk/bin/jmeter.properties
   jmeter/trunk/src/core/org/apache/jmeter/gui/MainFrame.java
   jmeter/trunk/src/core/org/apache/jmeter/gui/action/Clear.java
   jmeter/trunk/src/jorphan/org/apache/jorphan/logging/LoggingManager.java
   jmeter/trunk/xdocs/changes.xml
Comment 4 Milamber 2012-05-18 06:46:23 UTC
URL: http://svn.apache.org/viewvc?rev=1339996&view=rev
Log:
Use a JLabel instead of JButton to display warning icon
Increase space between error indicator and running indicator
Add a tooltip text on warning icon
Add one space before If parenthesis

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/MainFrame.java
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.properties