Re: Struts and HttpUnit

2003-02-24 Thread Tim Shadel
I don't use HttpUnit's servlet testing framework, which is what you seem 
to be hinting at here.  The suggestions others have already made are 
probably better substitutes for that.  I do use HttpUnit for functional 
testing by having it simulate a web browser, but use it in connection 
with jWebUnit (http://jwebunit.sourceforge.net).  jWebUnit eliminates a 
lot of the tedious parts of HttpUnit so that my JUnit test cases for 
functional tests are manageable.  It works pretty well for me.

--Tim

Marco Tedone wrote:
*This message was transferred with a trial version of CommuniGate(tm) Pro*
Hi, has anyone of you used HttpUnit to test Struts applications? I would
like to retrieve an attribute stored in the Servlet Context(by means of
servlet.getServletContext() method, inherited by the GenericServlet class)
from an HttpUnit test class but I can't see an easy way to do that. The only
objects I can access are requests and responses from the HttpUnit
package(meaning that they are proprietary of the HttpUnit architecture). I'm
missing the bridge(if one is possible) between an HttpUnit class and the
servlet Context of a running Struts application.
Thanks for the time you'll dedicate.

Marco

-
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]


Re: Struts and HttpUnit

2003-02-22 Thread Thomas L Roche
Marco Tedone [EMAIL PROTECTED] on Fri, 21 Feb 2003 23:24:34
 Hi, has anyone of you used HttpUnit to test Struts applications?

No, but if I wanted to test a Struts app within a JUnit framework, I'd
use StrutsTestCase

http://strutstestcase.sourceforge.net/

 I would like to retrieve an attribute stored in the Servlet Context

Try servletunit.ServletContextSimulator


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



Re: Struts and HttpUnit

2003-02-22 Thread Michael C. Lee Jr.
I use JMeter also on the jakarta web site. It is an excellent tool that even
non-developer's can use. You can put in entire test suites/plans. Real cool
stuff. You don't need JUnit.
Michael Lee

- Original Message -
From: Thomas L Roche [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, February 22, 2003 4:51 PM
Subject: Re: Struts and HttpUnit


 Marco Tedone [EMAIL PROTECTED] on Fri, 21 Feb 2003 23:24:34
  Hi, has anyone of you used HttpUnit to test Struts applications?

 No, but if I wanted to test a Struts app within a JUnit framework, I'd
 use StrutsTestCase

 http://strutstestcase.sourceforge.net/

  I would like to retrieve an attribute stored in the Servlet Context

 Try servletunit.ServletContextSimulator


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



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.456 / Virus Database: 256 - Release Date: 2/18/2003

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



Struts and HttpUnit

2003-02-21 Thread Marco Tedone
Hi, has anyone of you used HttpUnit to test Struts applications? I would
like to retrieve an attribute stored in the Servlet Context(by means of
servlet.getServletContext() method, inherited by the GenericServlet class)
from an HttpUnit test class but I can't see an easy way to do that. The only
objects I can access are requests and responses from the HttpUnit
package(meaning that they are proprietary of the HttpUnit architecture). I'm
missing the bridge(if one is possible) between an HttpUnit class and the
servlet Context of a running Struts application.

Thanks for the time you'll dedicate.

Marco

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



AW: Struts and HttpUnit

2001-08-24 Thread juraj Lenharcik

download httpunit; try the examples; there is no difference between struts
generated frontend or not struts generated. you will need the jtidy too, to
parse the html files (response). with httpunit you can test the
functionality from websites -named black box tests.
the interessting thing with httpunit woud be, when you connect them with ant
and do them continous as a cron job. you can then create then xml logs with
ant ..



juraj


-Ursprüngliche Nachricht-
Von: Matt Raible [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 24. August 2001 00:07
An: [EMAIL PROTECTED]
Betreff: Struts and HttpUnit


Has anyone used HttpUnit to test their struts application?  I'd be willing
to
help compose a bunch of tests for the struts-example if someone can point me
in
the right direction.

Matt

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Struts and HttpUnit

2001-08-23 Thread Matt Raible

Has anyone used HttpUnit to test their struts application?  I'd be willing to
help compose a bunch of tests for the struts-example if someone can point me in
the right direction.

Matt

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/