Running OFBiz tests without demo data

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Running OFBiz tests without demo data

Martin Kreidenweis
Hello,

To do more realistic testing we would like to run our automated tests without the OFBiz demo data load.
So we would like to load our test data with "ant run-install-exttest" and then run the tests for our
components. The problem is that the included OFBiz tests need the demo data to succeed.

Is there some way to split running our tests and OFBiz tests to have them run with a different data
load? So a regular "run-install" for the OFBiz tests and just the exttest load for our test.

What is the recommended test strategy for our scenario?

Is there some other way than running every test suite in every component separately with
"ant run-single-test-suite -Dtest.component=x -Dtest.suiteName=y"?

Thanks
Martin
Reply | Threaded
Open this post in threaded view
|

Re: Running OFBiz tests without demo data

BJ Freeman
my suggestion would be to add a new target to run just your tests.
if you need the others tests then you either have to rewrite them to use
data you supply or load demo data.

=========================
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>

Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Linkedin
<http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>


Martin Kreidenweis sent the following on 6/24/2010 1:51 AM:

> Hello,
>
> To do more realistic testing we would like to run our automated tests without the OFBiz demo data load.
> So we would like to load our test data with "ant run-install-exttest" and then run the tests for our
> components. The problem is that the included OFBiz tests need the demo data to succeed.
>
> Is there some way to split running our tests and OFBiz tests to have them run with a different data
> load? So a regular "run-install" for the OFBiz tests and just the exttest load for our test.
>
> What is the recommended test strategy for our scenario?
>
> Is there some other way than running every test suite in every component separately with
> "ant run-single-test-suite -Dtest.component=x -Dtest.suiteName=y"?
>
> Thanks
> Martin
>