• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

webapp in container testing stategy

 
peter cooke
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to checkout Arquillian http://arquillian.org/
 
peter cooke
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic