Hi Vincent, Thanks for your help. I'm using cactus, strutsTest to test my action classes. Its working fine with individual Action Clases.
We have a generic test case which takes parameters such as Action name, Request parameters, actionforward Name, action forward path etc. from xml file and test that action class. So, with this I am able to test multiple actions. And Thanks for your help in getting this work done. But, to complete testing our functionality I need to test 3 action classes. As I'm using generic Testcase which tests one action class at a time, I need to run 3 testcases (or the generic test case thrice with different parameters) to test these action classes. For this I need session alive in between, so first action class keep some values in session and the other Action classes needs. So, All these 3 test cases needs to share same session. Hope I'm clear in explaining my problem. I tried with WebRequest.setAutomaticSession(false). that didn't work. Any help is greatly appreciated. Thanks and Regards Sunil -----Original Message----- From: Vincent Massol [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 26, 2005 7:22 PM To: [email protected] Subject: RE: Maintaing session between 2 cactus test cases. Hi Sunil, - You can use WebRequest.setAutomaticSession(false) to tell Cactus not to create a new HTTP session, but that may or may not help you. - You can also use WebRequest.getSessionCookie() if you wish to get the session cookie created in order to reuse it in another test See http://tinyurl.com/4qeeb for the test file used by Cactus to test these features. -Vincent > -----Original Message----- > From: Venu Sunil Boyireddy [mailto:[EMAIL PROTECTED] > Sent: lundi 24 janvier 2005 06:53 > To: [email protected]; [email protected] > Subject: Maintaing session between 2 cactus test cases. > > Hi, > > > I have a requirement where I need to maintain the session alive between > the > test cases. > > How can I do it. I know that cactus wont support it by default as its a > unit > test framework. > > Any help is greatly appreciated. > > Thanks in advance. > > Sunil > > --------------------------------------------------------------------- > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
