Openbravo Issue Tracking System - Retail Modules
View Issue Details
0026957Retail ModulesWeb POSpublic2014-06-26 22:372014-07-14 17:30
shuehner 
marvintm 
normalminorhave not tried
closedfixed 
5
 
RR14Q4 
adrianromero
No
0026957: erp-junit test: org.openbravo.test.xml.ClientExportImportTest.testDeleteClient fails in retail db
when running erp junit test against a db with retail installed that testDeleteClient testcase fails.

Error is:
junit.framework.AssertionFailedError: Referenced object ADClient (id: null / ADClient39363B0921BB4293B48383844325E84C) not present in the xml or in the database.
    at org.openbravo.test.xml.ClientExportImportTest.exportImport(ClientExportImportTest.java:300)
    at org.openbravo.test.xml.ClientExportImportTest.testDeleteClient(ClientExportImportTest.java:225)
    at org.openbravo.test.base.BaseTest.runTest(BaseTest.java:306)

Note: this is easily reproducible.
Take erp+retail pack+sample data

run that testcase in debugger.

You will notice that not the deletion test itself fails but the preperation
which consists of:
a.) export client (working, export qa_testing client always)
b.) import that exported file (to duplicate it)
That import step is what is failing for no apparent reason (at least not yet clear).
pi + retail + sampeldata of retail
install.source
run that junit test
No tags attached.
Issue History
2014-06-26 22:37shuehnerNew Issue
2014-06-26 22:37shuehnerAssigned To => marvintm
2014-06-26 22:37shuehnerTriggers an Emergency Pack => No
2014-07-09 23:00hgbotCheckin
2014-07-09 23:00hgbotNote Added: 0068578
2014-07-09 23:01hgbotStatusnew => resolved
2014-07-09 23:01hgbotResolutionopen => fixed
2014-07-09 23:01hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/77527f1051ea8a17591bc505b5d1328061735365 [^]
2014-07-14 17:30adrianromeroReview Assigned To => adrianromero
2014-07-14 17:30adrianromeroNote Added: 0068628
2014-07-14 17:30adrianromeroStatusresolved => closed
2014-07-14 17:30adrianromeroFixed in Version => RR14Q4

Notes
(0068578)
hgbot   
2014-07-09 23:00   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 77527f1051ea8a17591bc505b5d1328061735365
Author: Salvador Zapata <salvador.zapata <at> gmail.com>
Date: Wed Jul 09 17:59:56 2014 -0300
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/77527f1051ea8a17591bc505b5d1328061735365 [^]

Fixed issue 26957: added where clause the dataset initial setup

---
M src-db/database/sourcedata/AD_DATASET_TABLE.xml
---
(0068628)
adrianromero   
2014-07-14 17:30   
Reviewed