[Wicket-user] automatic testing
Hi, What frameworks are suitable for automatic testing of wicket applications? I'm interested in functional, regression and performance tests. Is it tricky because of wicket's on-the-fly id generation? Thanks Ittay -- === Ittay Dror, Chief architect, openQRM group leader, RD, Qlusters Inc. [EMAIL PROTECTED] +972-3-6081994 Fax: +972-3-6081841 http://www.openQRM.org - Keeps your Data-Center Up and Running - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] automatic testing
WicketTester (http://woogle.billen.dk/search/q/wickettester) is good for functional tests. FrankOn 8/2/06, Ittay Dror [EMAIL PROTECTED] wrote: Hi,What frameworks are suitable for automatic testing of wicket applications? I'm interested in functional, regression and performance tests.Is it tricky because of wicket's on-the-fly id generation? ThanksIttay--===Ittay Dror,Chief architect, openQRM group leader,RD, Qlusters Inc.[EMAIL PROTECTED]+972-3-6081994 Fax: +972-3-6081841 http://www.openQRM.org- Keeps your Data-Center Up and Running-Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] automatic testing
and we are using jWebUnit in wicket-examples for in-container tests. Though the tests are quite simple. Wicket-Bench (eclipse IDE) support Selenium (http://www.openqa.org/selenium/) Performance tests: we deliver a servlet filter (either in the core or extension project) which provides response times etc. See wicket-examples and the information page which provides some insight into session and memory usage. I'm sure there are more possibilities and a kind of (may be MBean based) console would be great. Including clearing internal caches etc. Ideas and contributions are more than welcome. Juergen On 8/2/06, Frank Bille [EMAIL PROTECTED] wrote: WicketTester (http://woogle.billen.dk/search/q/wickettester) is good for functional tests. Frank On 8/2/06, Ittay Dror [EMAIL PROTECTED] wrote: Hi, What frameworks are suitable for automatic testing of wicket applications? I'm interested in functional, regression and performance tests. Is it tricky because of wicket's on-the-fly id generation? Thanks Ittay -- === Ittay Dror, Chief architect, openQRM group leader, RD, Qlusters Inc. [EMAIL PROTECTED] +972-3-6081994 Fax: +972-3-6081841 http://www.openQRM.org - Keeps your Data-Center Up and Running - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] automatic testing
thanx, reply inline Juergen Donnerstag wrote: and we are using jWebUnit in wicket-examples for in-container tests. Though the tests are quite simple. Wicket-Bench (eclipse IDE) support Selenium (http://www.openqa.org/selenium/) Performance tests: we deliver a servlet filter (either in the core or extension project) which provides response times etc. in performance tests, i meant running test scenarios simultaneously. this is also for discovering threading issues. See wicket-examples and the information page which provides some insight into session and memory usage. I'm sure there are more possibilities and a kind of (may be MBean based) console would be great. Including clearing internal caches etc. Ideas and contributions are more than welcome. Juergen On 8/2/06, Frank Bille [EMAIL PROTECTED] wrote: WicketTester (http://woogle.billen.dk/search/q/wickettester) is good for functional tests. Frank On 8/2/06, Ittay Dror [EMAIL PROTECTED] wrote: Hi, What frameworks are suitable for automatic testing of wicket applications? I'm interested in functional, regression and performance tests. Is it tricky because of wicket's on-the-fly id generation? Thanks Ittay -- === Ittay Dror, Chief architect, openQRM group leader, RD, Qlusters Inc. [EMAIL PROTECTED] +972-3-6081994 Fax: +972-3-6081841 http://www.openQRM.org - Keeps your Data-Center Up and Running - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- === Ittay Dror, Chief architect, openQRM group leader, RD, Qlusters Inc. [EMAIL PROTECTED] +972-3-6081994 Fax: +972-3-6081841 http://www.openQRM.org - Keeps your Data-Center Up and Running - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] automatic testing
On 8/2/06, Ittay Dror [EMAIL PROTECTED] wrote: in performance tests, i meant running test scenarios simultaneously. this is also for discovering threading issues.Well JMeter has proven quite useful when we (@work) tested AJAX functionality in Wicket. Frank - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] automatic testing
jmeter, microsoft ACT (studio 2003). Google for 'an overview of load test tools'. Martijn On 8/2/06, Frank Bille [EMAIL PROTECTED] wrote: On 8/2/06, Ittay Dror [EMAIL PROTECTED] wrote: in performance tests, i meant running test scenarios simultaneously. this is also for discovering threading issues. Well JMeter has proven quite useful when we (@work) tested AJAX functionality in Wicket. Frank - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Download Wicket 1.2.1 now! Embed Wicket components in your portals! -- http://wicketframework.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] automatic testing
On Wed, 2006-08-02 at 10:30 +0300, Ittay Dror wrote: Hi, What frameworks are suitable for automatic testing of wicket applications? I'm interested in functional, regression and performance tests. We use wickettester (or something similar) for unit testing the models and listener methods. Then we use Selenium to do functional testing using a real browser. Selenium can be used in two different ways. 1. FIT-like html tables to drive testing 2. JUnit like test cases (selenium remote control) Our experience is that html table is good when tests are made by QA person who can't program, but in a big project the tests done this way get really quickly out of date. That's why we prefer to drive tests with JUnit. Wicket bench provides an integration to selenium (http://www.laughingpanda.org/mediawiki/index.php/Launchers). Btw. This is in no way tied to eclipse and allows the tests to be run from command-line too (thus enabling to run the tests using your favorite continuous integration tool). Is it tricky because of wicket's on-the-fly id generation? A bit yes, for instance see this test (taken from http://svn.sourceforge.net/viewvc/thinglink/trunk/thinglink/src/test/java/org/thinglink/ui_selenium/CreateThinglinkTest.java?revision=1view=markup) public void testCreateThinglink() { openSelenium(createFactory()); getSelenium().type(title, My thing); getSelenium().type(description, My thing is ); assertTrue(getSelenium().isElementPresent(bench_component_form_newLink)); getSelenium().click(save); String text = getText(); assertTrue(text.contains(My thing)); } The line assertTrue(getSelenium().isElementPresent(bench_component_form_newLink)); is very sensitive to the way how Wicket generates ids. For instance, our tests all broke when wicket started to use '_'-char as separator. We have on a roadmap to provide a thin wicket specific support layer on top of selenium where we could write the same line as: assertTrue(getSelenium().isElementPresent(form.newLink)); For performance testing I recommend Grinder 3 (http://grinder.sourceforge.net). It is programmers performance testing tool and does not provide any fancy gui. Joni - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] automatic testing
I tried grinder, but found that jmeter recording was more to my liking as it enables you to see the responses generated by Wicket. Martijn On 8/2/06, Joni Freeman [EMAIL PROTECTED] wrote: On Wed, 2006-08-02 at 10:30 +0300, Ittay Dror wrote: Hi, What frameworks are suitable for automatic testing of wicket applications? I'm interested in functional, regression and performance tests. We use wickettester (or something similar) for unit testing the models and listener methods. Then we use Selenium to do functional testing using a real browser. Selenium can be used in two different ways. 1. FIT-like html tables to drive testing 2. JUnit like test cases (selenium remote control) Our experience is that html table is good when tests are made by QA person who can't program, but in a big project the tests done this way get really quickly out of date. That's why we prefer to drive tests with JUnit. Wicket bench provides an integration to selenium (http://www.laughingpanda.org/mediawiki/index.php/Launchers). Btw. This is in no way tied to eclipse and allows the tests to be run from command-line too (thus enabling to run the tests using your favorite continuous integration tool). Is it tricky because of wicket's on-the-fly id generation? A bit yes, for instance see this test (taken from http://svn.sourceforge.net/viewvc/thinglink/trunk/thinglink/src/test/java/org/thinglink/ui_selenium/CreateThinglinkTest.java?revision=1view=markup) public void testCreateThinglink() { openSelenium(createFactory()); getSelenium().type(title, My thing); getSelenium().type(description, My thing is ); assertTrue(getSelenium().isElementPresent(bench_component_form_newLink)); getSelenium().click(save); String text = getText(); assertTrue(text.contains(My thing)); } The line assertTrue(getSelenium().isElementPresent(bench_component_form_newLink)); is very sensitive to the way how Wicket generates ids. For instance, our tests all broke when wicket started to use '_'-char as separator. We have on a roadmap to provide a thin wicket specific support layer on top of selenium where we could write the same line as: assertTrue(getSelenium().isElementPresent(form.newLink)); For performance testing I recommend Grinder 3 (http://grinder.sourceforge.net). It is programmers performance testing tool and does not provide any fancy gui. Joni - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Download Wicket 1.2.1 now! Embed Wicket components in your portals! -- http://wicketframework.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] automatic testing
Second that. I had the best experiences with JMeter. It can be a bit weird when you start out, but if you follow this tutorial: http://www.javaworld.com/javaworld/jw-07-2005/jw-0711-jmeter-p2.html you'll be up and running in no time. Eelco On 8/2/06, Martijn Dashorst [EMAIL PROTECTED] wrote: I tried grinder, but found that jmeter recording was more to my liking as it enables you to see the responses generated by Wicket. Martijn On 8/2/06, Joni Freeman [EMAIL PROTECTED] wrote: On Wed, 2006-08-02 at 10:30 +0300, Ittay Dror wrote: Hi, What frameworks are suitable for automatic testing of wicket applications? I'm interested in functional, regression and performance tests. We use wickettester (or something similar) for unit testing the models and listener methods. Then we use Selenium to do functional testing using a real browser. Selenium can be used in two different ways. 1. FIT-like html tables to drive testing 2. JUnit like test cases (selenium remote control) Our experience is that html table is good when tests are made by QA person who can't program, but in a big project the tests done this way get really quickly out of date. That's why we prefer to drive tests with JUnit. Wicket bench provides an integration to selenium (http://www.laughingpanda.org/mediawiki/index.php/Launchers). Btw. This is in no way tied to eclipse and allows the tests to be run from command-line too (thus enabling to run the tests using your favorite continuous integration tool). Is it tricky because of wicket's on-the-fly id generation? A bit yes, for instance see this test (taken from http://svn.sourceforge.net/viewvc/thinglink/trunk/thinglink/src/test/java/org/thinglink/ui_selenium/CreateThinglinkTest.java?revision=1view=markup) public void testCreateThinglink() { openSelenium(createFactory()); getSelenium().type(title, My thing); getSelenium().type(description, My thing is ); assertTrue(getSelenium().isElementPresent(bench_component_form_newLink)); getSelenium().click(save); String text = getText(); assertTrue(text.contains(My thing)); } The line assertTrue(getSelenium().isElementPresent(bench_component_form_newLink)); is very sensitive to the way how Wicket generates ids. For instance, our tests all broke when wicket started to use '_'-char as separator. We have on a roadmap to provide a thin wicket specific support layer on top of selenium where we could write the same line as: assertTrue(getSelenium().isElementPresent(form.newLink)); For performance testing I recommend Grinder 3 (http://grinder.sourceforge.net). It is programmers performance testing tool and does not provide any fancy gui. Joni - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Download Wicket 1.2.1 now! Embed Wicket components in your portals! -- http://wicketframework.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] automatic testing
And remember to use the latest version. We had problems with jmeter slaves crashing too soon (couldn't even get them to overload the server ;))On 8/2/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Second that. I had the best experiences with JMeter. It can be a bitweird when you start out, but if you follow this tutorial:http://www.javaworld.com/javaworld/jw-07-2005/jw-0711-jmeter-p2.html you'll be up and running in no time.EelcoOn 8/2/06, Martijn Dashorst [EMAIL PROTECTED] wrote: I tried grinder, but found that jmeter recording was more to my liking as it enables you to see the responses generated by Wicket. Martijn On 8/2/06, Joni Freeman [EMAIL PROTECTED] wrote: On Wed, 2006-08-02 at 10:30 +0300, Ittay Dror wrote: Hi, What frameworks are suitable for automatic testing of wicket applications? I'm interested in functional, regression and performance tests. We use wickettester (or something similar) for unit testing the models and listener methods. Then we use Selenium to do functional testing using a real browser. Selenium can be used in two different ways. 1. FIT-like html tables to drive testing 2. JUnit like test cases (selenium remote control) Our experience is that html table is good when tests are made by QA person who can't program, but in a big project the tests done this way get really quickly out of date. That's why we prefer to drive tests with JUnit. Wicket bench provides an integration to selenium ( http://www.laughingpanda.org/mediawiki/index.php/Launchers). Btw. This is in no way tied to eclipse and allows the tests to be run from command-line too (thus enabling to run the tests using your favorite continuous integration tool).Is it tricky because of wicket's on-the-fly id generation? A bit yes, for instance see this test (taken from http://svn.sourceforge.net/viewvc/thinglink/trunk/thinglink/src/test/java/org/thinglink/ui_selenium/CreateThinglinkTest.java?revision=1view=markup ) public void testCreateThinglink() { openSelenium(createFactory()); getSelenium().type(title, My thing); getSelenium().type(description, My thing is ); assertTrue(getSelenium().isElementPresent(bench_component_form_newLink)); getSelenium().click(save); String text = getText(); assertTrue(text.contains(My thing)); } The line assertTrue(getSelenium().isElementPresent(bench_component_form_newLink)); is very sensitive to the way how Wicket generates ids. For instance, our tests all broke when wicket started to use '_'-char as separator. We have on a roadmap to provide a thin wicket specific support layer on top of selenium where we could write the same line as: assertTrue(getSelenium().isElementPresent(form.newLink)); For performance testing I recommend Grinder 3 (http://grinder.sourceforge.net ). It is programmers performance testing tool and does not provide any fancy gui. Joni- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Download Wicket 1.2.1 now! Embed Wicket components in your portals! -- http://wicketframework.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net 's Techsay panel and you'll get the chance to share youropinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net