Re: Groovy Support by nGrinder(built on the Grinder)
Philip Aston <[email protected]>
| Newsgroups | gmane.comp.java.grinder.user |
|---|---|
| Message-ID | <[email protected]> |
[very delayed response].
Thanks Juno. For now, I've linked this from
http://grinder.sourceforge.net/links.html
- Phil
On 21/10/13 04:56, Juno Yoon wrote:
> nGrinder built on excellent "The Grinder" supports Groovy as its
> scripting language.
>
> http://www.cubrid.org/wiki_ngrinder/entry/groovy-script
> https://github.com/nhnopensource/ngrinder/tree/master/ngrinder-groovy
>
> I implemented this by myself. it supports the test script like following.
> It combines JUnit and Groovy, so that It can be executed by
> generic JUnit runner in the local IDE.
>
> RunWith(GrinderRunner)
> class TestRunner {
> static GTest test1
> @BeforeProcess
> public static void beforeProcess() {
> test1 = new GTest(1,"test1_statistics")
> request1 = new HTTPRequest();
> grinder.logger.info <http://grinder.logger.info>("before
> process.");
> }
>
> @BeforeThread
> public void beforeThread() {
> test1.record(this, "test1");
> test1.record(this, "test2");
> grinder.statistics.delayReports=true;
> grinder.logger.info <http://grinder.logger.info>("before
> thread.");
> }
>
> def i = 0
>
> @RunRate(1) // Provide 1% run rate
> @Test
> public void test1(){
> ....
> }
>
> @RunRate(10) // Provide 10% run rate
> @Test
> public void test2(){
> ....
> }
> }
>
> I hope this engine can be included in "The Grinder core" in the future.
> Regards.
>
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
grinder-use mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/grinder-use