Hi Scott,

The short answer is there:
http://jakarta.apache.org/cactus/faq.html#faq10

That said, if you are using Cactus 1.5dev, there is a way to get a
session cookie. I would absolutely *not* recommend this solution at all
in most cases. The best solution is what is in the FAQ above.

Here's what the changes page says about it:

"Ability to get a real HTTP Session cookie before the start of the test.
This is achieved by calling the new WebRequest.getSessionCookie() method
which returns a HttpSessionCookie object that you then add to the HTTP
request."

Hope it helps,
-Vincent

> -----Original Message-----
> From: Parmley, Scott C. [mailto:[EMAIL PROTECTED]
> Sent: 03 July 2003 00:09
> To: [EMAIL PROTECTED]
> Subject: Same session tests
> 
> Hello all,
> 
> I have an issue I need some advice on.  I have finally been able to
put
> together a cactus test that examines an HttpSession.  I am using
> RequestDispatcher to forward a request to an XSP page.  The page does
some
> work and populates a session variable with an object.  Here's my
quandary:
> 
> I must perform a series of tests in order.  The first part to be done
is
> logging in.  This, as I mentioned before, populates a session variable
> with an object.  The next test, which is not logging in, is dependent
on
> the use of the same session as was used in the first test.
> 
> What I have noticed is that if I write a test class that contains more
> than one test (i.e.    testXXX()   testYYY()  ), they utilize
different
> sessions for each test.  Is there a way to write a test class such
that
> each subsequent test uses the same HttpSession?
> 
> 
> Thanks in advance,
> -Scott
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to