Hi vincent,

>This is what I call "functional unit testing" on the
>Cactus main page
>(at the bottom of the page :
>http://jakarta.apache.org/cactus).

How to do functional unit testing of a testB (say test
for validateSession of a user who already logged in)
and requires data like cookies etc. which are
available from response of testA(test for
createSession)?

Here I see a need for concatenating two tests. 

There are two ways to do this I think -

1. I save the cookie value as system property (dont
know any other way...??) in the endCreateSession().
Then read this value and set cookie in the request of
beginValidateSession().

2. Use HttpUnit in beginCreateSession() and read the
cookie from response of the conversation and set it in
the request for the current test.

Do these make sense? I tried method 1. Has anyone
tried method2? Is method 2 a better approach if it
will work? Can you please comment on the above.

thanks,
balki

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to