David,
Thanks for correcting me. Actually, there was a problem using Demo
Data while preparing test data for order component. OrderTestData.xml
goes in the Order component. All the Demo Data for ProductStore,
DemoCustomer, etc. is in Ecommerce. Now, as the data for order
component is loaded before the data in ecommerce component, it is
getting difficult to use the demo data for the order. Is it possible
and appropriate to move the OrderTestData.xml file in ecommerce component?
Can you please suggest solution for this problem?
--
Thanks & Regards
Mridul Pathak
Team Lead
HotWax Media Inc.
http://www.hotwaxmedia.com
[EMAIL PROTECTED]
_____________________________
Office : 509.855.4113
Mobile : +919425926892
David E Jones wrote:
1. tests SHOULD use the demo data; it is there for demonstration and
testing, and not using it would make various test scenarios more
complicated, and also introduce more dependencies between test cases
(as data that could be simply used would also have to be prepared)
2. please don't use the ext-test data file group; all of the ext* file
groups are meant to be used by components added onto OFBiz, and not by
anything in OFBiz itself; generally the best place for this is in the
"demo" file group, as then the data can be used for manual testing and
demonstration in addition to automated tests
-David
On Mar 12, 2008, at 11:30 PM, Mridul Pathak wrote:
Hi All,
Here are some of my opinions for everyone in the community who
are working on JUnit Test Case implementation for various processes
in OFBiz:
1) While doing entry for any Test Data file in ofbiz-component.xml
use reader-name="ext-test".
2) While running test cases use following build target with ant:
"run-install-exttest".
3) These are the test case specific reader-name and target in OFBiz,
so I think it is more appropriate to use them.
4) While using the target "run-install-exttest", no OFBiz Demo Data
is uploaded to the database. So while preparing the Test Data make
sure that it has no dependencies on any Demo Data.
Any comments for improvement or correction in my thoughts are
appreciable.
--
Thanks & Regards
Mridul Pathak
Team Lead
HotWax Media Inc.
http://www.hotwaxmedia.com
[EMAIL PROTECTED]
_____________________________
Office : 509.855.4113
Mobile : +919425926892