Re: [Wicket-user] Tree testing
On Fri, 08 Jun 2007, Ingram Chen wrote: I use 1.2.6 and tester.clickLink(foo:bar:navigation:i:6:nodeLink) work for And instead of using the full path like that (which can be tedious to maintain when the component hierarchy changes) you can also use an Ivistor to access the component (and then ask its path from itself). It depends on the case which is wiser. We also use a the hardcoded path a lot in tests, but with repeaters it can get a bit fragile. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tree testing
indeed, we internally develop small extension to allow using partial path to allocate component. tester.clickLink(foo:bar:navigation:i:6:nodeLink) can be written like tester.clickLink(foo, 6, nodeLink) On 6/9/07, Timo Rantalaiho [EMAIL PROTECTED] wrote: On Fri, 08 Jun 2007, Ingram Chen wrote: I use 1.2.6 and tester.clickLink(foo:bar:navigation:i:6:nodeLink) work for And instead of using the full path like that (which can be tedious to maintain when the component hierarchy changes) you can also use an Ivistor to access the component (and then ask its path from itself). It depends on the case which is wiser. We also use a the hardcoded path a lot in tests, but with repeaters it can get a bit fragile. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tree testing
Hi I haven't used the tree yet (and therefore not tried to test it). But what do you do. I would just imagine it would be a call to tester.clickLink (linkPath)?! Frank On 6/8/07, Sven Schliesing [EMAIL PROTECTED] wrote: Hi, I'm trying to heavily rely on test driven development while building my application. Fortunately wicket does a really good job for unit-testing. But unfortunately I do not succeed in simulating a click on a node in a Tree with AjaxLinks. I already searched the svn for a test already handling this part. But i had no luck. Is this possible at all? Thanks in advance! Sven - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tree testing
I use 1.2.6 and tester.clickLink(foo:bar:navigation:i:6:nodeLink) work for me. On 6/8/07, Sven Schliesing [EMAIL PROTECTED] wrote: Hi, I'm trying to heavily rely on test driven development while building my application. Fortunately wicket does a really good job for unit-testing. But unfortunately I do not succeed in simulating a click on a node in a Tree with AjaxLinks. I already searched the svn for a test already handling this part. But i had no luck. Is this possible at all? Thanks in advance! Sven - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Tree testing
Hi, I'm trying to heavily rely on test driven development while building my application. Fortunately wicket does a really good job for unit-testing. But unfortunately I do not succeed in simulating a click on a node in a Tree with AjaxLinks. I already searched the svn for a test already handling this part. But i had no luck. Is this possible at all? Thanks in advance! Sven - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tree testing
Thanks Frank, thanks Ingram! Didn't know that I could just access the links like that. But it seems quite logical. Everything works as expected now. Thanks again! Sven - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user