Changing the Test Time for a Grinder Test?
"Gary (Gary) Olmsted" <[email protected]>
| Newsgroups | gmane.comp.java.grinder.user |
|---|---|
| Message-ID | <CA+VhOoC8Ap1QgLJB-Jbvg2Rcjk3uic0sGZFVFs4cRwaMG98-hQ@mail.gmail.com> |
I have a situation where I run two Grinder Tests that are waiting asynchronously for information. The first always is shorter than the second. What I need to do is take the time of the first Test and add it to the second one. I found a nice write-up on the Statistics object<http://grinder.sourceforge.net/g3/script-javadoc/net/grinder/script/Statistics.html>. Specifically the addLong() method<http://grinder.sourceforge.net/g3/script-javadoc/net/grinder/script/Statistics.StatisticsForTest.html#addLong(java.lang.String, long)>. It seems to imply I could do this, but it seems this is only for custom counters? Is there any way to change the time the current or last time took? I tried all sorts of things (short of downloading the source and looking). As a workaround I thought of potentially just adding a sleep after the operation within the second test for the first tests time, but I can't afford to wait that extra time really. I thought of wrapping the two tests and using the overall total, but wanted to do this with two Tests (and not three). :) Any ideas? Thanks, Gary ------------------------------------------------------------------------------ Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure. http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk _______________________________________________ grinder-use mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/grinder-use