You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@beehive.apache.org by Dan Doyle <da...@gmail.com> on 2006/11/20 19:16:20 UTC

Question on unit testing page flows

Will someone please point me at some resources that illustrate how to
unit test pageflows in container? I am just learning Beehive so I am
behind the curve in understanding, but I have created a basic pageflow
with a control and I am trying to create a prototype for TDD and
pageflows. I am sure I will ask more specific questions after I have a
chance to understand pageflows better. Any articles on using httpunit
with pageflows and portals will also be useful as I evaluate a good
strategy for unit testing.

Thank you,
Dan

Re: Question on unit testing page flows

Posted by Carlin Rogers <ca...@gmail.com>.
Hi Dan,

I think HttpUnit may be your best bet. There should be some example
HttpUnit tests that ship with the petstore sample located in:

  <beehive-dist>/samples/petstoreWeb/test-src/

I also came across an archived email with explanation about of using
the MockPageFlowTestCase class based on StrutsTestCase for JUnit...
http://mail-archives.apache.org/mod_mbox/beehive-user/200505.mbox/%3C428D1C90.6030304@bea.com%3E

The original JIRA issue to support StrutsTestCase and container-less
"mock objects" testing was
http://issues.apache.org/jira/browse/BEEHIVE-615

You can view source at
https://svn.apache.org/repos/asf/beehive/trunk/netui/test/src/junitTests/org/apache/beehive/netui/test/pageflow/MockPageFlowTestCase.java

Currently, there's an open JIRA issue for a new feature to provide
support for in-container and out-of-container testing. See
http://issues.apache.org/jira/browse/BEEHIVE-982

...an open area for some contributions.

Kind regards,
Carlin

On 11/20/06, Dan Doyle <da...@gmail.com> wrote:
> Will someone please point me at some resources that illustrate how to
> unit test pageflows in container? I am just learning Beehive so I am
> behind the curve in understanding, but I have created a basic pageflow
> with a control and I am trying to create a prototype for TDD and
> pageflows. I am sure I will ask more specific questions after I have a
> chance to understand pageflows better. Any articles on using httpunit
> with pageflows and portals will also be useful as I evaluate a good
> strategy for unit testing.
>
> Thank you,
> Dan
>