Groovy Support by nGrinder(built on the Grinder)

Juno Yoon <[email protected]>
Newsgroups gmane.comp.java.grinder.user
Message-ID <CAMh00CHiQv3BzWfWr9kb7uMe+JuOUXN2erHGm==yoMk4b_hp4A@mail.gmail.com>
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("before process.");
    }

    @BeforeThread
    public void beforeThread() {
        test1.record(this, "test1");
        test1.record(this, "test2");
        grinder.statistics.delayReports=true;
        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.

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk

_______________________________________________
grinder-use mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/grinder-use
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.