Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#34 KeyError: 'All Transactions

Grinder Analyzer
open
Travis Bear
5
2011-05-25
2011-05-25
Andrew O'Neill
No

Getting this crash on a two-test, single-agent, multi-thread grinder run.

Traceback (most recent call last):
File "analyzer.py", line 536, in <module>
main()
File "analyzer.py", line 478, in main
analyzer = ClientLogAnalyzer(grinderDataFiles, summaryData, agents)
File "analyzer.py", line 202, in __init__
self._analyzeLogs()
File "analyzer.py", line 267, in _analyzeLogs
self.rtimeGroupHandler.addData(data)
File "analyzer.py", line 160, in addData
self._responseTimeGroups[ALL_TRANSACTIONS_VALUE][key] += 1
KeyError: 'All Transactions'

This small fix seems to work. I only spent a few minutes testing it though:

--- analyzer.py.orig 2011-05-25 18:06:53.951292781 -0400
+++ analyzer.py 2011-05-25 18:06:57.571008641 -0400
@@ -86,6 +86,7 @@
for maxTime in CONFIG.rtimeThresholds:
_timeCountMap[maxTime] = 0
self._responseTimeGroups[txName] = _timeCountMap
+ self._responseTimeGroups[ALL_TRANSACTIONS_VALUE] = _timeCountMap

def addRTGroupsToReport(self, analyzerPlugin):
"""

Discussion