On 8/4/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:

I've been playing with Selenium [1] for functional testing ...

... and have added a couple of tests for myfaces-example-simple.  For
the simple form that adds and subtracts numbers, only the submit
buttons work, the links do not.  You can see a screen shot of the
results here:

  http://people.apache.org/~wsmoak/myfaces/selenium/myfaces-simple-failure.jpg

TOMAHAWK-583 is open for comments and contributions of more tests.

When the site is re-published, there should be a page with information
at [3].  Meanwhile, it's not too hard to read the APT source, here:
http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/core/src/site/apt/testing/selenium.apt

I added Cargo plugin configuration to start Tomcat 5 and deploy the
example app.  It looks like there's also configuration for Jetty but I
didn't immediately see how to get it to work.

~/svn/myfaces/current/tomahawk/examples/simple
$ mvn package cargo:start -P selenium -Dcargo.tomcat5x.home=/path/to/tomcat5

Then visit 
http://localhost:8080/myfaces-example-simple/selenium/core/TestRunner.html

[1] http://www.openqa.org/selenium/
[2] http://issues.apache.org/jira/browse/TOMAHAWK-583
[3] http://myfaces.apache.org/tomahawk/testing/selenium.html (not yet published)

Thanks,
--
Wendy

Reply via email to