Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0058059Openbravo ERPJ. Demo datapublic2025-02-24 13:292025-02-24 15:01
asier_perez 
AtulOpenbravo 
normalmajoralways
newopen 
5
 
 
Core
No
0058059: Junit test fails when configuring Extended Assortment in sample data
When adding the proper configuration to use Extended Assortment to the sample data, some junit tests fail. It seems that those tests and/or some related java classes have to be adapted to be able to use the Extended Assortment correctly.

The failing tests are the following (see the error in the attachment):
  - org.openbravo.distributionorder.purchase.PurchaseAssortmentLineValidationTest.validateRequisitionLine
  - org.openbravo.distributionorder.purchase.PurchaseAssortmentLineValidationTest.validateDistributionOrderReceiptLine
1) Log in to the back office with "The White Valley Group Admin" role
2) Go to the "Organization" window, and open the "Vall Blanca Store" record, then change the following fields
  - In-Store Assortment: White Valley Group Product List
  - Extended Assortment: VBS POS Terminal Type Product List
  - Product Search Target: User-Defined in Search Window
3) Save the record
4) Go to the "Channel - Touchpoint Type" window, and open the "POS2SD VBS POS2 Terminal Type" record, then change the following fields:
  - In-Store Assortment: White Valley Group Product List
  - Extended Assortment: VBS POS Terminal Type Product List
5) Save the record
6) Go to the "Assortment" window
7) Select the "VBS POS Terminal Type Product List" record
8) Click on the "Include All Products" button
9) Export the changes as sample data:
  - To org.openbravo.retail.sampledata for the changes in "Organization" and "Assortment"
  - To org.openbravo.pos2.sampledata for the changes in "Channel - Touchpoint Type"
10) Open the following file in a text editor: org.openbravo.retail.sampledata/referencedata/sampledata/The_White_Valley_Group/OBRETCO_PROL_PRODUCT.xml
11) Remove the records that have the following M_PRODUCT_ID, since they reference tables from other modules:
  - 9F27DC38FC344178BAB982B72874EE2B
  - 804659E1FCD44957BBF89B67B0055560
  - All products with the CREATED field in a previous date to today
12) Shut tomcat down, then execute "ant install.source" and "ant build", and restart tomcat
13) Execute the org.openbravo.distributionorder.purchase.PurchaseAssortmentLineValidationTest tests
No tags attached.
png extendedAssortmentError.png (209,567) 2025-02-24 13:29
https://issues.openbravo.com/file_download.php?file_id=20953&type=bug
png
Issue History
2025-02-24 13:29asier_perezNew Issue
2025-02-24 13:29asier_perezAssigned To => AtulOpenbravo
2025-02-24 13:29asier_perezFile Added: extendedAssortmentError.png
2025-02-24 13:29asier_perezModules => Core
2025-02-24 13:29asier_perezTriggers an Emergency Pack => No
2025-02-24 15:01asier_perezCategory01. General setup => J. Demo data

There are no notes attached to this issue.