You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Günther Enthaler <ge...@mac.com> on 2009/05/13 12:41:04 UTC

Re: System test for a Wicket based web application. Do you do it? How?

I've been using  http://storytestiq.solutionsiq.com/ STiQ  for integration
testing on my current project. It's a mashup of Selenium & Fitnesse. It
makes for a really comfortable test construction & running environment. 

I've used JUnit driven Selenium tests in the past, but the tests were
impossible to read, and they weren't particularly refactorable (losing any
benefit of having them driven from code). 

Having the front end tests written in a user-legible DSL forces you to think
about the tests from the point of view of the end user. 

Commenting is a easy and natural thing to do in this environment. It
actually looks a lot like Literate Programming.

Many of the functional tests I'd written for this project exercised
execution paths around session timeouts, something that'd be difficult (or
impossible) to test from a unit-test perspective, but which were easy to
write in STiQ. 

The fact that the tests are running in the SOE is a comfort too.

It's apparently possible to drive it from JUnit/Maven/Ant/whatever, but I
haven't got around to doing that.

An similar FOSS alternative to STiQ is  http://www.fitnesse.info/webtest
WebTest , and an alternative to Selenium is  http://watij.com/ Watij 

-- 
View this message in context: http://www.nabble.com/System-test-for-a-Wicket-based-web-application.-Do-you-do-it--How--tp23513449p23519414.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: System test for a Wicket based web application. Do you do it? How?

Posted by Günther Enthaler <ge...@mac.com>.
To be honest, there's nothing wicket-specific about it. Testing AJAX is
pretty easy, just use waitFor* assertions to delay until the AJAX component
is loaded.

One slight irritation is that Wicket munges the id of its components, making
element identification a bit tedious, so I eventually wrote a custom element
locator.

Best thing is to just get in and install it, try it, take over one of the
provided stubs and modify it to drive your own application. It won't take
you long to get into the groove. The documentation is pretty good too.

Cheers,
Günther


Newgro wrote:
> 
> 
> stiq looks very promising. Can you please provide some small snippets 
> howto use it in correlation with wicket?
> 
> 

-- 
View this message in context: http://www.nabble.com/System-test-for-a-Wicket-based-web-application.-Do-you-do-it--How--tp23513449p23539242.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: System test for a Wicket based web application. Do you do it? How?

Posted by Per Newgro <pe...@gmx.ch>.
Hello Günther,

stiq looks very promising. Can you please provide some small snippets 
howto use it in correlation with wicket?

Cheers
Per

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