Hi Prad,
Originally posted by Prad Bhat:
How do I use TestNg for integration testing ? Is there any guideline on this ?
A big portion of our book is dedicated to integration testing. Here are a couple of features that are built natively into TestNG that make integration testing very easy:
- A straightforward API that lets you create and configure a full TestNG runner inside the container (i.e. on the server side) so that you can run tests on your actual logic instead of having to mock it on the client side.
- Dependency testing. With this feature, you can specify that your tests should be run in a certain order ("don't run the
servlet tests unless all the database tests have passed").
There are over a hundred pages in the book dedicated to integration and enterprise testing alone, so we cover a lot of this area...
Hope this answers your question.
--
Cedric