Re: problem to test form in modal window with wicket tester

2011-05-26 Thread Mathilde Pellerin
...@ciseonweb.it Form id is corret, but remember that form and feedback panel are not added directly to modal window. They are inside ConnexionContentPanel which in turn is added to modalwindow. In your test you should be able to access form calling getContent() before get(loginForm), i.e

Re: problem to test form in modal window with wicket tester

2011-05-26 Thread Andrea Del Bene
Sorry, I didn't noticed that getContent() is protected. The solution you found is perfect :-) I didn't find getContent() method to modalWindow component, but it works well in two steps : ConnexionContentPanel loginPanel = (ConnexionContentPanel) modalWindow.get(modalWindow.getContentId()); Form?

Re: test pages with selenuim

2011-04-17 Thread Per Newgro
Am 16.04.2011 22:11, schrieb shetc: What is advantage of Wicket Page Test over WicketTester? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/test-pages-with-selenuim-tp3452652p3454541.html Sent from the Users forum mailing list archive at Nabble.com

Re: test pages with selenuim

2011-04-17 Thread shetc
I use WicketTester on its own now. Will it help me to also use Selenium to test Wicket as well? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/test-pages-with-selenuim-tp3452652p3455847.html Sent from the Users forum mailing list archive at Nabble.com

Re: test pages with selenuim

2011-04-17 Thread Per Newgro
Am 17.04.2011 19:54, schrieb shetc: I use WicketTester on its own now. Will it help me to also use Selenium to test Wicket as well? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/test-pages-with-selenuim-tp3452652p3455847.html Sent from the Users forum mailing list

Re: test pages with selenuim

2011-04-16 Thread Per Newgro
Am 15.04.2011 20:04, schrieb fachhoch: I am trying to test my wicket application using selenuim , I had no success , did anybody try ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/test-pages-with-selenuim-tp3452652p3452652.html Sent from the Users forum

Re: test pages with selenuim

2011-04-16 Thread shetc
What is advantage of Wicket Page Test over WicketTester? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/test-pages-with-selenuim-tp3452652p3454541.html Sent from the Users forum mailing list archive at Nabble.com

test pages with selenuim

2011-04-15 Thread fachhoch
I am trying to test my wicket application using selenuim , I had no success , did anybody try ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/test-pages-with-selenuim-tp3452652p3452652.html Sent from the Users forum mailing list archive at Nabble.com

Re: test pages with selenuim

2011-04-15 Thread William Sargent
On Apr 15, 2011, at 11:04 AM, fachhoch wrote: I am trying to test my wicket application using selenuim , I had no success , did anybody try ? Yeah. I use Selenium with a ruby solution, just because that's how I was introduced to it. http://tersesystems.com/2010/10/05/simplest

Re: test pages with selenuim

2011-04-15 Thread YK
Do you know that wicket provides a page tester ? If not take a look at http://wicket.apache.org/apidocs/1.4/org/apache/wicket/util/tester/WicketTester.html WicketTester -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/test-pages-with-selenuim-tp3452652p3452716

TEST

2011-03-01 Thread Zoltán Nagy
Hi! I've received this message when I tried to answer a question: Delivery to the following recipient failed permanently: users@wicket.apache.org Technical details of permanent failure: Google tried to deliver your message, but it was rejected by the recipient domain. We recommend

Re: TEST

2011-03-01 Thread Martijn Dashorst
HTML email raises the score pretty much. Martijn On Tue, Mar 1, 2011 at 1:45 PM, Zoltán Nagy zberke...@gmail.com wrote: Hi! I've received this message when I tried to answer a question: Delivery to the following recipient failed permanently:     users@wicket.apache.org Technical details

Re: TEST

2011-03-01 Thread Zoltán Nagy
Thanks! I turn off formating. 2011/3/1 Martijn Dashorst martijn.dasho...@gmail.com HTML email raises the score pretty much. Martijn -- Zoltán Nagy - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: Test

2011-02-25 Thread Josh Kamau
I have been having the same problem for the last 2 weeks. Every time i send a mail or a reply, i get a mail delivery failure. Today it however seemed to be working. I have been able to send a reply. If this gets through, i will conclude that the issue has been resolved or resolved its self.

Re: Test

2011-02-25 Thread Jim Goodwin
In my case it turned out that (A) I was pasting in a snippet of XML; (B) my mail client (Thunderbird ) decided therefore to send the whole message as HTML; (C) apache's SpamAssassin has rules about HTML and decided it was spam. The fix (in TBird) was to edit the Contact record for

Test

2011-02-24 Thread Jim Goodwin
Everything I send to this list is being bounced by a spam-filter at the list-serv end. Just testing a very simple text-only message. Very sorry if this actually goes through, nothing else would - To unsubscribe, e-mail:

Re: Test

2011-02-24 Thread Jeremy Thomerson
Oh, it worked! :) On Thu, Feb 24, 2011 at 3:49 PM, Jim Goodwin jwg...@gmail.com wrote: Everything I send to this list is being bounced by a spam-filter at the list-serv end. Just testing a very simple text-only message. Very sorry if this actually goes through, nothing else would

Re: WicketTester and the test of image visibility

2011-02-07 Thread Igor Vaynberg
: visibility can be triggered from a lot of places, isvisible() only checks the visibility flag. the best way to test it is to see if the image tag appears in the rendered markup. -igor On Thu, Feb 3, 2011 at 1:16 AM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Hello everybody

Re: WicketTester and the test of image visibility

2011-02-04 Thread Dmitriy Neretin
Could you provide me a simple exmaplte how can I do that? Thank you! On 3 February 2011 18:33, Igor Vaynberg igor.vaynb...@gmail.com wrote: visibility can be triggered from a lot of places, isvisible() only checks the visibility flag. the best way to test it is to see if the image tag

WicketTester and the test of image visibility

2011-02-03 Thread Dmitriy Neretin
Hello everybody! Is the WicketTester method isVisible() the right solution to test if the Image is shown on the webpage? Thank you!

Re: WicketTester and the test of image visibility

2011-02-03 Thread Igor Vaynberg
visibility can be triggered from a lot of places, isvisible() only checks the visibility flag. the best way to test it is to see if the image tag appears in the rendered markup. -igor On Thu, Feb 3, 2011 at 1:16 AM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Hello everybody

Re: Unit-Test AjaxLazyLoadPanel on a page after successful load

2010-12-27 Thread Per Newgro
Thanks, after i got it that i have to set the second parameter to the parent of my lazyload the tester worked. Cheers Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Unit-Test AjaxLazyLoadPanel on a page after successful load

2010-12-22 Thread Per Newgro
Hi *, i try to get it for hours now, but i can't. I have a page with an AjaxLazyLoadPanel on it. The lazyLoadComponent on it is a simple panel. Everything works as expected. But if i start my unit test (wickettester.startPage) the content panel is not exchanged. All i get is the lazy load

Re: Unit-Test AjaxLazyLoadPanel on a page after successful load

2010-12-22 Thread Pedro Santos
Hi Per, you can use the AjaxLazyLoadPanelTester there is an example at: http://svn.apache.org/repos/asf/wicket/releases/wicket-1.4.14/wicket-extensions/src/test/java/org/apache/wicket/extensions/markup/html/AjaxLazyLoadPanelTesterTest.java On Wed, Dec 22, 2010 at 5:07 PM, Per Newgro per.new

Test CheckBoxMultipleChoice or CheckGroup

2010-12-15 Thread Anton Bessonov
Hello list, I'm trying to set checkboxes with junit but without significant success. My trouble is to find checkboxes. I've not found any way to access it if I use CheckBoxMultipleChoice. With CheckGroup I get access with Visitor tester.getLastRenderedPage().visitChildren(Check.class, new

Re: Test CheckBoxMultipleChoice or CheckGroup

2010-12-15 Thread Martin Makundi
Use getters: https://cwiki.apache.org/WICKET/type-safe-testing-in-wicket.html 2010/12/15 Anton Bessonov exe...@googlemail.com: Hello list, I'm trying to set checkboxes with junit but without significant success. My trouble is to find checkboxes. I've not found any way to access it if I use

Re: Test CheckBoxMultipleChoice or CheckGroup

2010-12-15 Thread Anton Bessonov
Thanks, I will try! Use getters: https://cwiki.apache.org/WICKET/type-safe-testing-in-wicket.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

issue using executeAjaxEvent for a test

2010-09-07 Thread Antonio Mauriello
Hi All, I have an issue trying to test an ajax event. I have two different wicket classes which need to talk each other. Both classes have a TextField plus a ListMultipleChoice. When the user types a word into the class A textField the items of the class A list get filtered and, based on the new

inmethod grid test fails

2010-08-17 Thread nino martinez wael
Hi Guys I am having some trouble testing the inmethod grid, specifically when I remove a row from the data list. On pagerender the grid tries to render the deleted row, which of course does not exist anymore. This problem does not occur running the application for real. I try to click the column

Wicket page test 2.0.0 is now available (for Wicket 1.5)

2010-08-14 Thread Kent Tong
Dear all, Wicket page test 2.0.0 is now available. It is the first version that works with Wicket 1.5-M1 and onwards. It is a library allowing you to unit test your Wicket pages easily, supporting AJAX and Javascript without changes to your pages. Get it from maven as described in http

Wicket page test 1.6.1 is now available

2010-08-11 Thread Kent Tong
Dear all, Wicket page test 1.6.1 is now available. It is a library allowing you to unit test your Wicket pages easily, supporting AJAX and Javascript without changes to your pages. This minor release contains the follow changes: * Fixed issue 3043110[1]. * Fixed issue 3037392[2

Wicket page test 1.6 is now available

2010-07-10 Thread Kent Tong
Dear all, Wicket page test 1.6 is now available. It is a library allowing you to unit test your Wicket pages easily, supporting AJAX and Javascript without changes to your pages. This release contains the follow changes: * Support manual testing: allow some things to be mocked, without

[BLOG] Canned Wicket Test Examples

2010-07-10 Thread Per Lundholm
Hello! Just wanted to honk my horn: three examples of using the built in wicket test facilities to test AJAX enabled controls, the check box, radio group and the drop down. http://blog.crisp.se/perlundholm/2010/06/20/127701780.html /Per

Re: Unit Test InMethod DataGrid

2010-06-04 Thread Ronan O'Connell
is the deepest level with a wicket id: ... panel:storyGrid:form:bodyContainer:body:row:2:item com.inmethod.grid.common.AbstractGridRow If you use http://wicketpagetest.sourceforge.net, then you can test it easily like: Selenium s = ...; assert s.getText(wicket=//storyGrid//body//row[2

Unit Test InMethod DataGrid

2010-06-03 Thread Ronan O'Connell
Hi, Does anybody know how to check the values of individual cells of an InMethod DataGrid/Treedrid. in a unit test? Looking at the output of WicketTester.debugComponentTrees() I can see that the grid row is the deepest level with a wicket id: NFO - BaseWicketTester - path

Re: Unit Test InMethod DataGrid

2010-06-03 Thread nino martinez wael
what about grabbing the model behind and checking that instead? 2010/6/3 Ronan O'Connell ronanoconnell1...@gmail.com: Hi, Does anybody know how to check the values of individual cells of an InMethod DataGrid/Treedrid. in a unit test? Looking at the output of WicketTester.debugComponentTrees

Re: Unit Test InMethod DataGrid

2010-06-03 Thread Kent Tong
, then you can test it easily like: Selenium s = ...; assert s.getText(wicket=//storyGrid//body//row[2]//item[3]).equals(foo; In this example you're checking the the 3rd cell in the 2nd row (both are 0-based). -- Kent Tong Useful news for CIO's at http://www2.cpttm.org.mo/cyberlab/cio-news

Re: How to test a link in wicket:links

2010-06-03 Thread Kent Tong
Hi Kent, Thanks for the answer, but that looks like it requires Spring, I'm not using Spring. I was hoping to use the test framework that is included in Wicket, not go outside it. Well, it doesn't require you to use Spring in your code. However, it is indeed assumed that you're using a IoC

Re: How to test a link in wicket:links

2010-06-02 Thread cat-in-a-hat
Hi Kent, Thanks for the answer, but that looks like it requires Spring, I'm not using Spring. I was hoping to use the test framework that is included in Wicket, not go outside it. I come across this doing a demo of Wicket and it kind of broke the whole spiel about Look, you can do unittests

Re: How to test a link in wicket:links

2010-06-02 Thread Igor Vaynberg
, cat-in-a-hat peter_is...@yahoo.com wrote: Hi Kent, Thanks for the answer, but that looks like it requires Spring, I'm not using Spring. I was hoping to use the test framework that is included in Wicket, not go outside it. I come across this doing a demo of Wicket and it kind of broke

Re: How to test a link in wicket:links

2010-05-28 Thread Kent Tong
Hi Peter, If I use wicket:link around a link, how can I click on it with WicketTester.clickLink()? It don't have a wicket:id so what would the path be? Please try http://wicketpagetest.sourceforge.net which supports testing the links. You can do it like: selenium.click(link=My Page); ...

How to test a link in wicket:links

2010-05-27 Thread cat-in-a-hat
Hi, If I use wicket:link around a link, how can I click on it with WicketTester.clickLink()? It don't have a wicket:id so what would the path be? Thanks/Peter -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-test-a-link-in-wicket-links-tp2233376p2233376.html

Wicket page test 1.5 is now available

2010-05-15 Thread Kent Tong
Dear all, Wicket page test 1.5 is now available. It is a library allowing you to unit test your Wicket pages easily, supporting AJAX and Javascript without changes to your pages. New features implemented in this version: * Start the Selenium server automatically. * Support JUnit4

Wicket-Spring 1.4.8 runs into exception in unit test

2010-05-04 Thread Per Newgro
Hi *, today i updated wicket from 1.4.7 to 1.4.8. I found a hardcoded dependency to wicket-spring 1.4.1 in my pom. I updated it to 1.4.8 to. Now i get in my page test the following exception in setup. But what does it mean? Where can i change something to make this work. Until now i didn't

Re: Wicket-Spring 1.4.8 runs into exception in unit test

2010-05-04 Thread Jeremy Thomerson
Is your unit test setting up the application before it starts (i.e. in the setUp method if you're using junit?). If you can't figure it out, create a quickstart that demonstrates it, and attach that to a JIRA. -- Jeremy Thomerson http://www.wickettraining.com On Tue, May 4, 2010 at 11:42 AM

Re: Wicket-Spring 1.4.8 runs into exception in unit test

2010-05-04 Thread Ben Tilford
Did you upgrade to spring 3? I ran into an issue with the testng spring test not creating the application context before wicket tester tried to use it (iirc @BeforeTest executed before the super classes @BeforeClass) Ended up switching anything annotated with @BeforeTest to @BeforeMethod. I

Wicket page test 1.4 is now available

2010-04-30 Thread Kent Tong
Dear all, Wicket page test 1.4 is now available. It is a library allowing you to unit test your Wicket pages easily, supporting AJAX and Javascript without changes to your pages. New features implemented in this version: * Provide a super easy way to locate a DOM element with the Wicket ID

Best way to test clickLink on a bookmarkable page link in ListView

2010-04-03 Thread l yeung
Hi, What would be the best way to test clickLink on a bookmarkabel page link added into ListView? How should I construct URL for assertPageLink, clickLink and assertLabel methods? Test code: tester.assertComponent(userLinks, ListView.class); tester.assertListView(userLinks, new

Re: Wicket page test 1.3 is now available

2010-03-27 Thread Martin Makundi
If you want to compose test pages on the fly, you should try also mashupwebpage: public void testSomeFieldComponent() { Page page = new MashupWebPage(); Form form; page.add(form = new MashUpForm(GID)); FormComponent customField; form.add(customField = new CustomFieldToBeTested(GID

Wicket page test 1.3 is now available

2010-03-26 Thread Kent Tong
Dear all, Wicket page test 1.3 is now available. It is a library allowing you to unit test your Wicket pages easily, supporting AJAX and Javascript without changes to your pages. New features implemented in this version: * Provide a generic starter page to launch another page whose

Announce: wicket page test 1.2 is now available

2010-03-06 Thread Kent Tong
Dear all, Wicket page test allows you to unit test Wicket pages easily including its AJAX functionality. Major enhancements in 1.2 is that now you can wait for the completion of Ajax easily, without writing any Javascript. For example, in a test case, do something like: WicketSelenium

Serialization test

2010-01-27 Thread pieter claassen
I want to test the following: 1. Whether I have any private members stored on my pages that are not a primitive java type, or IModel 2. If they are IModels, that I do call onDetach() on them. Reflection helps me to answer the 1st question but the second one baffles me. Any tips on how to verify

Re: Serialization test

2010-01-27 Thread Marat Radchenko
Force your servlet container to serialize sessions after each request and add non-serializable field to objects that you don't want to be serialized. 2010/1/27 pieter claassen pie...@claassen.co.uk: I want to test the following: 1. Whether I have any private members stored on my pages

Re: Serialization test

2010-01-27 Thread Jonas
() On Wed, Jan 27, 2010 at 3:51 PM, pieter claassen pie...@claassen.co.uk wrote: I want to test the following: 1. Whether I have any private members stored on my pages that are not a primitive java type, or IModel 2. If they are IModels, that I do call onDetach() on them. Reflection helps me

starting tomcat in pre-integration-test haults build

2010-01-27 Thread Douglas Ferguson
If I start tomcat in the pre-integration-test the build hangs. Why is this? D/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Announce: wicket page test 1.1.0 available

2010-01-16 Thread Kent Tong
Dear all, wicket page test allows you to unit test Wicket pages including its AJAX functionality. Major enhancements in 1.1.0: * It now supports Google Guice along with the existing support for Spring (Thanks to our new member developer, Andy Chu). * It is now organized in modules so that you

Re: unit test of AjaxLazyLoadPanel and ModalWindow

2009-12-16 Thread Kent Tong
/examples.html which supports AJAX without any special work by you. - -- Kent Tong Better way to unit test Wicket pages (http://wicketpagetest.sourceforge.net) -- View this message in context: http://old.nabble.com/unit-test-of-AjaxLazyLoadPanel-and-ModalWindow-tp16851306p26809771.html Sent from

Re: unit test of AjaxLazyLoadPanel and ModalWindow

2009-12-15 Thread Bernard Lupin
commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/unit-test-of-AjaxLazyLoadPanel-and-ModalWindow-tp16851306p26793515.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: JNDI and mvn test

2009-12-08 Thread Ilja Pavkovic
Hi, I'm executing the standard Wicket maven archetype's test target and it is having trouble finding my JNDI datasource. *mvn jetty:run* works just fine but when I execute the *mvn test* target from within m2eclipse, I get a huge stracktrace with the following excerpt: Caused

Wicket Test Harness and HTTP objects

2009-12-08 Thread Loritsch, Berin C.
I discovered as I implemented the SessionListener to clean up user record locks that the WicketTester object does not behave as expected in regards to the HttpSession objects. I expected to have my MockHttpSession already configured with the application session object bound in the specified

Test (sorry)

2009-12-08 Thread Stefan Lindner
Please ignore

JNDI and mvn test

2009-12-07 Thread Luther Baker
I'm executing the standard Wicket maven archetype's test target and it is having trouble finding my JNDI datasource. *mvn jetty:run* works just fine but when I execute the *mvn test* target from within m2eclipse, I get a huge stracktrace with the following excerpt: Caused

Re: Wicket tester test coverage

2009-12-01 Thread ZedroS Schwart
should test it ! zedros wrote: on a broader picture, my main question was about the way you proceed, Do you test every page, including every validator or.. ? If doing so, for pages that quite often are then not touched much, i would fear the time needed for proper testing quite hard

Re: test for dropdownchoice with ajax - response is homepage always

2009-12-01 Thread Martin Grotzke
On Tue, 2009-12-01 at 08:32 +0200, Martin Makundi wrote: Hi! When I test a page like this http://www.wicket-library.com/wicket-examples/ajax/choice with wicket tester and submit the form, the response page is the HomePage instead of the expected page (ChoicePage). Do you use

Re: test for dropdownchoice with ajax - response is homepage always

2009-12-01 Thread Martin Makundi
Thanx for your feedback! Did you have a look at http://is.gd/58mq3 which shows the test? Ofcourse I didn't look ;) Now, having looked at it your bug is that FORMTESTER CAN BE SUBMITTED ONLY ONCE! If you want to use it another time, you need to call newFormTester again. ** Martin

Re: test for dropdownchoice with ajax - response is homepage always

2009-12-01 Thread Martin Grotzke
On Tue, 2009-12-01 at 11:44 +0200, Martin Makundi wrote: Thanx for your feedback! Did you have a look at http://is.gd/58mq3 which shows the test? Ofcourse I didn't look ;) Now, having looked at it your bug is that FORMTESTER CAN BE SUBMITTED ONLY ONCE! If you want to use it another

Re: test for dropdownchoice with ajax - response is homepage always

2009-12-01 Thread Martin Makundi
Line 63 you are re-using the same formTester. Cannot work. ** Martin 2009/12/1 Martin Grotzke martin.grot...@javakaffee.de: On Tue, 2009-12-01 at 11:44 +0200, Martin Makundi wrote: Thanx for your feedback! Did you have a look at http://is.gd/58mq3 which shows the test? Ofcourse I didn't

Re: test for dropdownchoice with ajax - response is homepage always

2009-12-01 Thread Martin Grotzke
On Tue, 2009-12-01 at 15:46 +0200, Martin Makundi wrote: Line 63 you are re-using the same formTester. Cannot work. Wow, really fast! :) However, I already had tested this and it doesn't make any difference - the test still fails with the same error. FWIW, I updated and pushed the test so

Re: test for dropdownchoice with ajax - response is homepage always

2009-12-01 Thread Martin Makundi
However, I already had tested this and it doesn't make any difference - the test still fails with the same error. I am not sure what you are doing. Do like this { // Operation 1 FormTester f1 = tester.newFormTester (...); f1.setValue tester.execute ... } { // Operation 2

Re: test for dropdownchoice with ajax - response is homepage always

2009-12-01 Thread Martin Grotzke
this and it doesn't make any difference - the test still fails with the same error. I am not sure what you are doing. Do like this { // Operation 1 FormTester f1 = tester.newFormTester (...); f1.setValue tester.execute ... } { // Operation 2 FormTester f1

test for dropdownchoice with ajax - response is homepage always

2009-11-30 Thread Martin Grotzke
Hi, When I test a page like this http://www.wicket-library.com/wicket-examples/ajax/choice with wicket tester and submit the form, the response page is the HomePage instead of the expected page (ChoicePage). This issue was already reported some time ago without a final result: http

Re: test for dropdownchoice with ajax - response is homepage always

2009-11-30 Thread Martin Makundi
Hi! When I test a page like this http://www.wicket-library.com/wicket-examples/ajax/choice with wicket tester and submit the form, the response page is the HomePage instead of the expected page (ChoicePage). Do you use a formtester? The wicket tester executeajax does not properly submit

Re: Wicket tester test coverage

2009-11-27 Thread Kent Tong
is not in a loop, just specify the HTML ID in the template. If it is in a loop, use xpath. zedros wrote: on a broader picture, my main question was about the way you proceed, Do you test every page, including every validator or.. ? If doing so, for pages that quite often are then not touched much, i

Re: Wicket tester test coverage

2009-11-25 Thread Pierre Goupil
I use it, and what I'm looking for is a mean to ensure my test coverage. On Wed, Nov 25, 2009 at 6:13 AM, Kent Tong k...@cpttm.org.mo wrote: Pierre Goupil wrote: So I'm looking for a way to list all Page instances in a Wicket app, which could then allow me to be sure

Re: Wicket tester test coverage

2009-11-25 Thread ZedroS Schwart
Hi Kent On Wed, Nov 25, 2009 at 6:13 AM, Kent Tong k...@cpttm.org.mo wrote: What you need is TDD. Once you adopt TDD, you will have every page tested. I was under the assumption that unit testing isn't valuable for GUI, esp. web gui, since the effort is too important... I think I even read

Re: Wicket tester test coverage

2009-11-25 Thread Jeremy Thomerson
Use Cobertura or similar. It will work for both your use cases and provide you with coverage metrics. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Nov 25, 2009 at 2:23 AM, Pierre Goupil goupilpie...@gmail.comwrote: I use it, and what I'm looking for is a mean to ensure my test

Re: Wicket tester test coverage

2009-11-25 Thread Daan van Etten
Hi, What you can do is scan all Page classes (or Panel classes, etc) on the class-path and check if there are tests for them. Put this code in a unit test. Fail the test if you find a class without accompanying test. You can use this example to get started with the class path scanning: http

Re: Wicket tester test coverage

2009-11-25 Thread Martijn Dashorst
Goupil goupilpie...@gmail.com wrote: Guys, One thing that I like regarding Wicket tester is that it easily allows one to check a Page under design for any exception that it could throw at creation-time. Actually, doing such a basic test is for me essential, so as it takes only two lines of code

Re: Wicket tester test coverage

2009-11-25 Thread Kent Tong
that it may be pointless to test the position or the color of a button in automated tests. On the other hand, functionality of GUI can definitely be tested. For example, I am writing a Wicket application with TDD (sort of) with the library shown in my signature. It is working very well. - -- Kent Tong

Re: Wicket tester test coverage

2009-11-25 Thread Daan van Etten
In my other post I gave a link to a full-fledged example which scans for Panel classes with the default constructor and instantiates them. http://stuq.nl/weblog/2009-11-01/automatically-test-your-wicket-panel-html-markup This has almost no value (in my opinion) for reporting unit testing

Re: Wicket tester test coverage

2009-11-25 Thread Pierre Goupil
is that it easily allows one to check a Page under design for any exception that it could throw at creation-time. Actually, doing such a basic test is for me essential, so as it takes only two lines of code, I systematically check all my pages this way. You know

Re: Wicket tester test coverage

2009-11-25 Thread Kent Tong
Pierre Goupil wrote: I use it, and what I'm looking for is a mean to ensure my test coverage. If you're using TDD, you will have developed the page and the unit test for that page at the same time and by definition you won't have a page that is not tested. - -- Kent Tong Better way

Re: Wicket tester test coverage

2009-11-25 Thread Pierre Goupil
: Pierre Goupil wrote: I use it, and what I'm looking for is a mean to ensure my test coverage. If you're using TDD, you will have developed the page and the unit test for that page at the same time and by definition you won't have a page that is not tested. - -- Kent Tong Better way

Re: Wicket tester test coverage

2009-11-25 Thread Pierre Goupil
Yeah, test coverage is a big word here. But as I said I was not looking for a way to generate a report, just a mean to have my test suit fail if 1) a page throws an exception at instantiation 2) a page has not been so tested. That's exactly what you did and I'm not surprised not to be the first

Re: Wicket tester test coverage

2009-11-25 Thread Daan van Etten
Item 2 (fail if a page has not been tested) is not in my solution, but I'm glad I could help :-) Regards, Daan van Etten On Wed, 2009-11-25 at 10:32 +0100, Pierre Goupil wrote: Yeah, test coverage is a big word here. But as I said I was not looking for a way to generate a report, just a mean

Re: Wicket tester test coverage

2009-11-25 Thread Pierre Goupil
No, it isn't but: -with your solution, no test has to be written especially for each Component / Page (if one just want to check for exception) -so we are assured that no Page / Component is forgotten (in the check for exception process)) :-) On Wed, Nov 25, 2009 at 10:40 AM, Daan van Etten d

Re: Wicket tester test coverage

2009-11-25 Thread ZedroS Schwart
Without reference to his article, I can only guess that it may be pointless to test the position or the color of a button in automated tests. I think it was this one : http://www.infoq.com/news/2009/11/uncle-bob-tdd-applicability but in fact uncle bob mainly says it's pointless to do TDD when

Wicket tester test coverage

2009-11-24 Thread Pierre Goupil
Guys, One thing that I like regarding Wicket tester is that it easily allows one to check a Page under design for any exception that it could throw at creation-time. Actually, doing such a basic test is for me essential, so as it takes only two lines of code, I systematically check all my pages

Re: Wicket tester test coverage

2009-11-24 Thread Kent Tong
Pierre Goupil wrote: So I'm looking for a way to list all Page instances in a Wicket app, which could then allow me to be sure that they are all covered by a test. And when it's done maybe I could use the same system in order to ensure that Selenium (the automated functional testing

small library to unit test Wicket pages

2009-11-08 Thread Kent Tong
Dear all, I've made a small library to unit test Wicket pages: It launches Jetty to run your webapp in-process and launches the Selenium client. Then you inject POJO mock objects into @SpringBean annotated fields and use the Selenium client to drive your page. Why I think it is useful

How to do unit test for a session protected wicket page?

2009-10-22 Thread Haulyn R. Jason
Hi, all: I have a page which is protected by MySession.isLogin(). I want to unit test this page and write the following code: --- WicketTester tester = new WicketTester(new

Re: How to do unit test for a session protected wicket page?

2009-10-22 Thread Martin Grigorov
El jue, 22-10-2009 a las 17:07 +0800, Haulyn R. Jason escribió: Hi, all: I have a page which is protected by MySession.isLogin(). I want to unit test this page and write the following code

Re: How to do unit test for a session protected wicket page?

2009-10-22 Thread Haulyn R. Jason
Thanks very much, it works! On Thu, Oct 22, 2009 at 6:17 PM, Martin Grigorov mcgreg...@e-card.bg wrote: El jue, 22-10-2009 a las 17:07 +0800, Haulyn R. Jason escribió: Hi, all: I have a page which is protected by MySession.isLogin(). I want to unit test this page and write the following

test

2009-10-14 Thread wicketmonkey

Re: test

2009-10-14 Thread Jeremy Thomerson
Test test? -- Jeremy Thomerson http://www.wickettraining.com On Wed, Oct 14, 2009 at 11:03 PM, wicketmon...@comcast.net wrote:

Howto test redirect to non-wicket base page

2009-10-12 Thread Per Newgro
Hi *, i would like to test behavior of my page. In constructor there is a redirect if page parameter not set. But the redirect target is a url and not a wicket page instance. What is the best attribute to add my assertion to? MyPage(PageParams p) { if (p.get(xyz) == null) { redirectTo

Re: Howto test redirect to non-wicket base page

2009-10-12 Thread Erik van Oosten
Per, You can also throw a RestartResponseException or a subclass thereof. That is the recommended way within a constructor anyway. For you it would be RedirectToUrlException (or something like that). Regards, Erik. Per Newgro wrote: Hi *, i would like to test behavior of my page

Re: Howto test redirect to non-wicket base page

2009-10-12 Thread Per Newgro
Thanks Erik, this is definitly worth a shot. There seem to be many new classes in 1.4. So i have to dig deeper into wicket again. Thanks for showing me the light on this. Per - To unsubscribe, e-mail:

How to test AjaxFallbackButtons with WicketTester

2009-09-16 Thread Denis Kandrov
Hi, All! I have user update form, and it have search users subform. This subform use AjaxFallbackButton as submit button. I want to test this functionality with WicketTester, but when I try do it: FormTester ft=tester.newFormTester(updateForm:selectUserForm); ft.setValue

Re: How test modal windows with wicket tester?

2009-09-10 Thread Denis Kandrov
Hi, Martin! I try use tester.assertVisible(messageTabs:panel:company:commentForm:commentCreateModal) where messageTabs:panel:company:commentForm:commentCreateModal is my.app.class.NotificationModalWindow where NotificationModalWindow extends ModalWindow. But it not work,

<    1   2   3   4   5   >