Hi everyone,

I just finished wrapping up the first fully functional implementation of a testing framework for RIFE that allows you to test your web applications without having to setup or embed a servlet container. Since this layer drops, you now also have access to a lot more functionalities for testing (like getting the template instance that was used, or the element instance, or its id, ...)

The snapshot distribution that provides this has been uploaded for early testing here:
http://rifers.org/downloads/rife/snapshots/

The updated javadocs can be read online here:
http://rifers.org/docs/api-1.1-snapshot/index.html

The testing framework is very easy to use and the javadocs should help you a lot. To test the testing framework, I ported a collection of engine tests that used the embedded Jetty container. They can be seen here: http://rifers.org:8088/viewrep/rifers/rife/trunk/src/unittests/com/ uwyn/rife/test/TestEngineMocks.java?r=trunk

A small note about these, each test sets up its own site structure. Of course, you don't need to do that. You can still setup a site in the repository and obtain it from there for the MockConversation instance. If you don't know how to launch a repository manually, you can take a peak at how we do it for RIFE itself: http://rifers.org:8088/viewrep/rifers/rife/trunk/src/unittests/com/ uwyn/rife/TestRifeTests.java?r=trunk

I think that the testing framework is complete at its core, but I'm sure that a lot of convenience methods can still be added. That's why it would be cool if some people could already try it out. Note that for it to work, you need to include four 3rd-party jars in your classpath: nekohtml-0.9.5.jar, resolver-1.1.jar, xercesImpl-2.7.1.jar, xml-apis-2.7.1.jar. These are included in the sumo distribution.

Thanks for giving this a try!

Geert

--
Geert Bevin                       Uwyn bvba
"Use what you need"               Avenue de Scailmont 34
http://www.uwyn.com               7170 Manage, Belgium
gbevin[remove] at uwyn dot com    Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


_______________________________________________
Rife-users mailing list
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users

Reply via email to