ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brett Palmer" <brettgpal...@gmail.com>
Subject Re: Database Test Suite
Date Tue, 24 Oct 2006 03:21:23 GMT
Sorry,  there has not been a lot of work done on the JXUnit stuff
since its original creation.  The JXUnit project did not get a lot of
support on sourceforge and the original contributors moved on to other

I continued to use the ofbiz jxunit code for some of my own projects
but creating data driven tests were still difficult to create and

Over the past year, I have been working with a different framework
called grinder (http://grinder.sourceforge.net/).  There have been a
few posts on the subject from David Jones and Al Byers.  Al has
recently been working on it and we have shared some ideas on how to
make it effective for ofbiz.

Here are some of the features that I like about grinder:

- Uses Jython as a the scripting language to implement tests.  This
makes it easier to create new tests without having to compile and
deploy each time.
- TCP Proxy listener to capture web requests and generates a test
script.  This script can then be modified to be more dynamic
- Ability to simulate multiple clients with various load and frequency options

Here are some things that are missing and what Al and I have been discussing:

- Need to be able to separate data from the test
- Need to develop some jython utilities that can read in a common XML
(or something else) format for a test and pass the data to the jython
test script

Al and David can probably share some of their ideas on testing.  We
need to have more test tools but it is always a matter of priorities
and everyone is always busy with other tasks.



On 10/23/06, Tim Ruppert <tim.ruppert@hotwaxmedia.com> wrote:
> I was a committer for DbUnit back in the day, which does stage
> information nicely into the database for running tests.  We used it in
> conjunction with WebTest to drive all testing from ant.  It has worked
> well in the past, but might not be the most up to date solution.
> The only concern that I would have on this front is that there may be
> too much data to stage, With large amounts of data, the DbUnit approach
> could run into some performance issues with certain data sets.  It might
> still be a viable approach for you John depending on your situation.
> I'd still love to hear more about Brett's JXUnit experience whenever he
> gets a chance.
> Cheers,
> Tim
> --
> Tim Ruppert
> HotWax Media
> http://www.hotwaxmedia.com
> o:801.649.6594
> f:801.649.6595
> John Martin wrote:
> > I'm looking for a good way of testing service methods that do CRUD on
> > various tables in the database.
> >
> > I reviewed the framework/testtools and it didn't seem that there was
> > much if anything going on there nor did it appear to address
> > manipulation of test database data.
> >
> > While poking around I ran into ProposedOFBizTestFramework document by
> > Brett Palmer that uses JXUnit
> > (http://ofbizwiki.go-integral.com/Wiki.jsp?page=ProposedOFBizTestFramework
> >
> > ).
> >
> > This document looks quite promising and seems like it is exactly what
> > I am looking for but the ofbiz-test that it referenced no longer
> > exists at SourceForge.  Is this a dead project?  If not, where is it
> > now located?
> >
> > What is the best practices for writing a test suite for new services
> > that are manipulating data?
> >
> > Thanks!
> >
> > John

View raw message