Re: can HttpUnit be used for modifying the user's HttpSession

Saladin Sharif <[email protected]>
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <[email protected]>
Is there anybody on this mailing list?
I have waited an entire week for an answer to my
question and not a sign of life on this mailing list.

Anyway, I think I have already figured out the answer
to my original question that I posted a week ago.

I have another question.  I have read up the HttpUnit
tutorial about how to use ServletUnit and
ServletRunner.

The problem that I have is that I am using the Struts
MVC framework.  So I am not dealing with servlets
directly.  Instead I am dealing with struts Action
classes.

Is there anyway I can use the ServletRunner with a
struts Action class rather than a servlet class?  How
would I go about doing that?

Thanks,
-Saladin


--- Saladin Sharif <[email protected]> wrote:

> 
> Hi,
> I am new to HttpUnit.  I have been looking at the
> examples and tutorials on the HttpUnit webpage, to
> learn about how to use HttpUnit.
> 
> I see through the examples that it is possible to
> inspect the user's HttpSession after testing a
> servlet
> using HttpUnit.  However, I am wondering is it
> possible to use HttpUnit for modifying the user's
> session?
> 
> I mean I have a situation where I am testing a
> servlet.  The servlet requires that one or more
> object/values be stored in the user's session in
> order
> for the servlet to function properly.  So is it
> possible for me to use HttpUnit to set those values
> in
> the user's session, then test calling the servlet,
> and
> then inspect the user's session afterwards?
> 
> Please let me know.
> 
> Thanks in advance,
> 
> -Saladin
> 
> 


**********************************************************
* Saladin Sharif
* e-mail:  [email protected]
* Visit homepage @ http://gaia.ecs.csus.edu/~sharifs
**********************************************************


      ____________________________________________________________________________________
Luggage? GPS? Comic books? 
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
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.