Hi Hong, See http://jakarta.apache.org/cactus/faq.html ... :-)
The answer is that the tests are all independents and you don't control the order of execution. However, the way to do what you want is simply to set up in the "second" testXXX() the needed session parameter. In other words the format of a testXXX() method is always : 1 - setup needed environment 2 - execute test 3 - verify results using assertions Thanks -Vincent > -----Original Message----- > From: Yu Hong [mailto:[EMAIL PROTECTED]] > Sent: 24 April 2002 01:10 > To: [EMAIL PROTECTED] > Subject: About server side HttpSession > > Hi, all: > I'm a newcomer to Cactus:-) Right now, in my Cactus test case, I > have several "testXXX" methods, each of them have their own "beginXXX" > method to do some different setup, in methods "testXXX", I will create > my servlet object, then do the test. Now my issue is: suppose there are > some relationship between these requests(I mean each test method will > send one request), e.g. on server side, after servlet received the first > request, it will set some info in it's HttpSession, which also will be > used in the second request, so whether or not in Cactus there are some > method to keep this HttpSession on server side instead of let customer > set in the following "testXXX" methods again and again? > > Any idea will be appreciated!!! > > thanks, > > Hong > > > > -- > To unsubscribe, e-mail: <mailto:cactus-user- > [EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:cactus-user- > [EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
