Re: Testing JSP with sessions

Kazuhito SUGURI <[email protected]>
Newsgroups gmane.comp.jakarta.cactus.user
Message-ID <[email protected]>
Hi Karthik,

In article <[email protected]>,
Tue, 20 Jun 2006 14:52:59 +0530,
"karthik" <[email protected]> wrote: 
karthikn>   Can some body on this form ,be kind to spare me some code on 
karthikn>   HOWTO test a JSP pages which hare secured by session objects.
karthikn>   Suppoes  i have 100 jsp pages which have session Tracked,
karthikn>   so how to set the sessions and Test such jsp pages using  CACTUS .

Please take a look at:
	http://jakarta.apache.org/cactus/writing/howto_testcase_jsp.html
        http://jakarta.apache.org/cactus/writing/howto_jsp.html

You can set session attributes in testXXX() method
before you call JSP under test by using one of forward methods.

Hope this helps,
----
Kazuhito SUGURI
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.