Re: [Wicket-user] Testing repeaters
On Thu, 15 Mar 2007, Daniele Dellafiore wrote: How can I access a cell in the table? What is the path for, say, cell 1,1? Or there are other way using tester? You mean WicketTester? I suppose that you need to know the wicket component paths to use it. As Igor said, you can deduce them from the markup, but if there is any confusion, you can also get your table Component Component table = wicketTester.getComponentFromLastRenderedPage(table:path); and then inspect its children with the debugger of your IDE. This should clear any doubts of the actual paths (which, in the case of repeaters, have confused me as well). Till now I am using httpunit to test tables but I would like to test the wicket component by itself and, more over, the WebPage stays in a Modal Window and I do not know how to test a page in a modal window via httpunit. How's it going with HttpUnit? As I haven't advertised the Selenium RC integration of Wicket Bench in several weeks, here goes again: http://svn.laughingpanda.org/svn/wicket-bench/trunk/wicket-bench-test/src/test/java/test/DictionaryPanelTest.java I find it to nicely complement WicketTester (of 2.0), and like the fact that Selenium uses a real browser, unlike HttpUnit and friends. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - 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] Testing repeaters
On 3/15/07, Daniele Dellafiore [EMAIL PROTECTED] wrote: Hi. I am trying to make a test to check the content of a DataTable that is in a WebPage. I can get the table with page.get(table); where table is of course the path to my table component in the page. How can I access a cell in the table? What is the path for, say, cell 1,1? Or there are other way using tester? Till now I am using httpunit to test tables but I would like to test the wicket component by itself and, more over, the WebPage stays in a Modal Window and I do not know how to test a page in a modal window via httpunit. PS: also to know how to test a model window would be very useful. What exactly do you want to test when you say you want to test the Wicket component by itself? Typically you want to do a black box test and look at the renderings, right? In which case you best use HttpUnit or jWebUnit and the likes. Eelco - 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] Testing repeaters
you can deduce the path by looking at the markup the datatable uses. -igor On 3/15/07, Daniele Dellafiore [EMAIL PROTECTED] wrote: Hi. I am trying to make a test to check the content of a DataTable that is in a WebPage. I can get the table with page.get(table); where table is of course the path to my table component in the page. How can I access a cell in the table? What is the path for, say, cell 1,1? Or there are other way using tester? Till now I am using httpunit to test tables but I would like to test the wicket component by itself and, more over, the WebPage stays in a Modal Window and I do not know how to test a page in a modal window via httpunit. PS: also to know how to test a model window would be very useful. Thanks. - 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
[Wicket-user] Testing repeaters
Hi. I am trying to make a test to check the content of a DataTable that is in a WebPage. I can get the table with page.get(table); where table is of course the path to my table component in the page. How can I access a cell in the table? What is the path for, say, cell 1,1? Or there are other way using tester? Till now I am using httpunit to test tables but I would like to test the wicket component by itself and, more over, the WebPage stays in a Modal Window and I do not know how to test a page in a modal window via httpunit. PS: also to know how to test a model window would be very useful. Thanks. - 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