Re: FormTester - submitting more than once

2010-03-12 Thread Kent Tong


Tony Wu-5 wrote:
> 
> Any way to do it without running Selenium?
> 

Not that I know of. What's the problem of running Selenium?

-
--
Kent Tong
Better way to unit test Wicket pages (http://wicketpagetest.sourceforge.net)
Books on CXF, Axis2, Wicket, JSF (http://agileskills2.org)
-- 
View this message in context: 
http://old.nabble.com/FormTester---submitting-more-than-once-tp27873217p27885114.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: FormTester - submitting more than once

2010-03-12 Thread Tony Wu
Any way to do it without running Selenium?

On Mar 12, 2010, at 6:01 AM, Kent Tong wrote:

> 
> 
> Tony Wu-5 wrote:
>> 
>> However, I can't
>> do this unit test in Wicket because a FormTester can only submit once. I
>> can't resetup the FormTester data because the 2nd submit button (checkout)
>> requires a state that the 1st submit button sets.
>> 
> 
> Yes, you can make it work if you use http://wicketpagetest.sourceforge.net/
> 
> -
> --
> Kent Tong
> Better way to unit test Wicket pages (http://wicketpagetest.sourceforge.net)
> Books on CXF, Axis2, Wicket, JSF (http://agileskills2.org)
> -- 
> View this message in context: 
> http://old.nabble.com/FormTester---submitting-more-than-once-tp27873217p27874748.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: FormTester - submitting more than once

2010-03-12 Thread Kent Tong


Tony Wu-5 wrote:
> 
> However, I can't
> do this unit test in Wicket because a FormTester can only submit once. I
> can't resetup the FormTester data because the 2nd submit button (checkout)
> requires a state that the 1st submit button sets.
> 

Yes, you can make it work if you use http://wicketpagetest.sourceforge.net/

-
--
Kent Tong
Better way to unit test Wicket pages (http://wicketpagetest.sourceforge.net)
Books on CXF, Axis2, Wicket, JSF (http://agileskills2.org)
-- 
View this message in context: 
http://old.nabble.com/FormTester---submitting-more-than-once-tp27873217p27874748.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



FormTester - submitting more than once

2010-03-11 Thread Tony Wu
I'm trying to write a unit test for a form. I have a form with 2 submit
buttons. The 1st submit button is an AjaxSubmitButton which allows the user
to enter a ID, that then shows all the products associated with that ID (it
requires validators to run which is why it's a submit button). The 2nd
submit button will validate the entire form and checkout. However, I can't
do this unit test in Wicket because a FormTester can only submit once. I
can't resetup the FormTester data because the 2nd submit button (checkout)
requires a state that the 1st submit button sets.

How can I make my unit test work?

Thanks,
Tony