On Sun, December 01, 2013, Martin Grigorov wrote: > In this case you may want to use Selenium/WebDriver tests. > Or any kind of robot that will execute your test scenarios against a > running web application.
I am using geb for frontend tests. However frontend tests do not really help when testing complex cases within the business logic. As I wrote, one would normally create a test data generator to fill an in-memory database with stuff that you can rely on when running your tests. However due to the fact that this is a JEE application in which infrastructure like the database message queues etc. are provided by the container (glassfish) I would like to run tests against anonymised productive data. Thus I start the application within its JEE container with a fresh set of test data in the database and then run the test suite by wget-ing a page which runs my TestNG tests which have thus access to all those resources. As mentioned before, I am dealing with pre-spring/guice legacy code here, thus this is simply a pragmatic approach. In an ideal world I would not have to do this :) Cheers, M'bert -- ----------- / http://herbert.the-little-red-haired-girl.org / ------------- =+= * Free Speech Online!!! Support the Blue Ribbon Campaign! * --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
