Re: User defined mean test times

"[email protected]" <[email protected]>
Newsgroups gmane.comp.java.grinder.user
Message-ID <[email protected]>
Thanks a lot Philip. It worked. For those who are facing the same problem,
here is what I am doing:

grinder.statistics.registerDataLogExpression("200 response", "userLong0")
grinder.statistics.registerDataLogExpression("No. of 200 responses",
"userLong2") 
grinder.statistics.registerDataLogExpression("304 response", "userLong1") 
grinder.statistics.registerDataLogExpression("No. of 304 responses",
"userLong3")
grinder.statistics.registerSummaryExpression("200 average", "(/ userLong0
userLong2)")
grinder.statistics.registerSummaryExpression("304 average", "(/ userLong1
userLong3)")

---In the get feed code----
testStatistics = grinder.statistics.forCurrentTest

if result.getStatusCode() == 200:
          testStatistics.addLong("userLong0", timetogetfeed)
          testStatistics.addLong("userLong2", 1)
elif result.getStatusCode() == 304:
          testStatistics.addLong("userLong1", timetogetfeed)
          testStatistics.addLong("userLong3", 1)



--
View this message in context: http://grinder.996249.n3.nabble.com/User-defined-mean-test-times-tp8712p8756.html
Sent from the Grinder - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
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.