I added a FAQ for it: http://cwiki.apache.org/confluence/pages/viewpage.action?pageId=2853342 it points to the "Testing Actions" page. Feel free to edit that page and add more stuff to it.
musachy On Fri, Sep 4, 2009 at 6:19 AM, Greg Lindholm<greg.lindh...@gmail.com> wrote: > You probably should sure the mail archives (on Nabble) as this question come > up very often. > In fact it should be in a FAQ but there is some disagreement as what > constitutes appropriate testing and what methods should be used. > > I've written up this article [1] on how to unit test actions in the full > Struts 2 context with the Interceptor stack and validations. > > Others, seem to think this is the wrong approach and this type of testing > should be done with a tool like Selenium. Here is the last big thread on > testing methods [2]. > > [1] http://glindholm.wordpress.com/2008/06/30/unit-testing-struts-2-actions/ > > [2] > http://www.nabble.com/unit-testing-Struts2-application-%28with-Spring-and-Hibernate%29-ts24517800.html > > On Fri, Sep 4, 2009 at 3:23 AM, Rusty Wright <rusty.wri...@gmail.com> wrote: > >> For example, how can I test the validations if I'm using an xml file with >> the validation specifications in it? Seems like there are a lot of moving >> parts around the invocation of the action classes that make testing hard. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> > -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org