Hi Phil, > -----Original Message----- > From: Philemon Siclone [mailto:[EMAIL PROTECTED] > Sent: lundi 23 ao�t 2004 15:53 > To: Cactus Users List > Subject: RE: How to write "testsuite server-side fixtures" > > --- Vincent Massol <[EMAIL PROTECTED]> a �crit�: > > Hi Phil, > > > > The following page > > http://jakarta.apache.org/cactus/writing/howto_testcase.html says it > > all too > > :-) > > Does it? > According to the page, the only way to run "server-side testsuite > fixtures" is to use the ServletTestSuite class. The problem is that it > force me to use (classic JUnit) TestCases inside the suite, when I'd > like to use Servlet or JSP-TestCases. > Or maybe I didn't understand the documentation...
I thought that steps 3 and 4 of this page were answering your question but I now realize that maybe I have not understood the question correctly. More precisely the setUp()/teardown() methods will be executed on the server side (which is what you want) but I now understand that you want this for a set of Cactus Test Cases and not just for one test case. Is that correct? Then, why don't you create a MyServletTestCase class which has a default setUp()/teardown() and then have your tests extend MyServletTestCase, ensuring they call super.setUp()/super.tearDown()? Another option is to create this common setup/teardown in a separate helper class and call them from your test classes. Would that do it for you? There is currently no notion of "server-side test suites". Thanks -Vincent > > Regards, > > Phil > > > > > > > > > > > > Thanks > > -Vincent > > > > > -----Original Message----- > > > From: Philemon Siclone [mailto:[EMAIL PROTECTED] > > > Sent: mercredi 18 ao�t 2004 14:54 > > > To: [EMAIL PROTECTED] > > > Subject: How to write "testsuite server-side fixtures" > > > > > > Hi, > > > > > > The title says it all (almost). I'd like to execute some code on > > the > > > server-side before and after a set of (servlet)testcases is run. At > > the > > > moment I have written a (classic junit) testSuite containing the > > > servletTestCases, but the fixtures of this testSuite get executed > > on > > > the client-side (obviously). > > > > > > It seems like a quite simple need but I could not find any answer > > on > > > the cactus-website. > > > > > > Regards, > > > (and sorry for my bad english) > > > > > > Phil > > > > > > PS: I do not use cactus-ant tasks for tests-execution : my IDE does > > it. > > > > > > > > > > > > > > > > > > > > > > > > Vous manquez d�espace pour stocker vos mails ? > > > Yahoo! Mail vous offre GRATUITEMENT 100 Mo ! > > > Cr�ez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ > > > > > > Le nouveau Yahoo! Messenger est arriv� ! D�couvrez toutes les > > nouveaut�s > > > pour dialoguer instantan�ment avec vos amis. A t�l�charger > > gratuitement > > > sur http://fr.messenger.yahoo.com > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > Vous manquez d�espace pour stocker vos mails ? > Yahoo! Mail vous offre GRATUITEMENT 100 Mo ! > Cr�ez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ > > Le nouveau Yahoo! Messenger est arriv� ! D�couvrez toutes les nouveaut�s > pour dialoguer instantan�ment avec vos amis. A t�l�charger gratuitement > sur http://fr.messenger.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
