GeeCON Prague 2014*
The moose likes Testing and the fly likes webapp in container testing stategy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Testing
Bookmark "webapp in container testing stategy" Watch "webapp in container testing stategy" New topic
Author

webapp in container testing stategy

peter cooke
Ranch Hand

Joined: Mar 16, 2004
Posts: 316
Hello;
I have a web app that calls webservices and servlets to actually funtion.
I have been asked to come up with a way to validate behavior in the actual container. Not using mocks and stubs and preferably not use the webapp presentation to test the server side function calls.

Hoping for some guidance on current strategies. What I am finding.
one of the desired goals is to not a

(the old way): HTTPUNIT/HTMLUNIT/Cactus ontop of junit - effective, developers have experience using it. Looks like it can be a real pain if you have to build long complex web conversations.


selinium: to track web app conversation. and replay it. pro/con fast easy but cannot separate browser app from back end calls.

There was a desire to use testng but I am not finding any documentation/examples on the web where testng is launching in-container based tests.


any thoughts/ opinions

CIAO Peter M. Cooke
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10142
    
165

You might want to checkout Arquillian http://arquillian.org/

[My Blog] [JavaRanch Journal]
peter cooke
Ranch Hand

Joined: Mar 16, 2004
Posts: 316
thanks for the suggestion. A quick look at the link, but i will look further at the documentation. a quick Look at the link indicates aquillian assumes you are using jboss server.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10142
    
165

peter cooke wrote:a quick Look at the link indicates aquillian assumes you are using jboss server.


JBoss is just one of the many servers that are supported. Tomcat, TomEE and even GlassFish are the others which are supported as far as I remember. Here's the relevant part from the documentation http://arquillian.org/guides/getting_started/#add_a_container_adapter

 
GeeCON Prague 2014
 
subject: webapp in container testing stategy