Openbravo Issue Tracking System - Retail Modules
View Issue Details
0054374Retail ModulesLoyalty Programs for Web POSpublic2024-01-17 18:022024-01-25 09:36
aaroncalero 
aaroncalero 
normalmajoralways
newopen 
5
 
 
No
0054374: Burn Coupons and Burn Gift Certificates tests should not depend on Retail Test sampledata
Currently the JUnit tests available in org.openbravo.loyalty.burn.coupon and org.openbravo.loyalty.burn.giftcertificate depend on sampledata belonging to the Retail Test client (which is available in org.openbravo.retail.testsampledata module).

These tests should be refactored to work with White Valley Group sampledata to be compatible with pos2 instances.
Install org.openbravo.loyalty.burn.coupon or org.openbravo.loyalty.burn.giftcertificate in a pos2-modules instance.
Set up the src-test project in Eclipse and link the src-test folders of the newly installed modules.
Try to run the BurnCouponTest or GiftCertificateTest JUnit tests
The tests will fail while setting up the context, as the required IDs are not found on the system.
Create new sampledata belonging to the White Valley Group client.
No tags attached.
related to feature request 0053843 closed Aaron_Alvarez POS2 Implement Burn Coupons rule in ReactPOS 
Issue History
2024-01-17 18:02aaroncaleroNew Issue
2024-01-17 18:02aaroncaleroAssigned To => Retail
2024-01-17 18:02aaroncaleroTriggers an Emergency Pack => No
2024-01-17 18:02aaroncaleroAssigned ToRetail => aaroncalero
2024-01-17 18:02aaroncaleroRelationship addedrelated to 0053843
2024-01-25 09:36aaroncaleroSummaryBurn Coupons tests should not depend on Retail Test sampledata => Burn Coupons and Burn Gift Certificates tests should not depend on Retail Test sampledata
2024-01-25 09:36aaroncaleroDescription Updatedbug_revision_view_page.php?rev_id=27395#r27395
2024-01-25 09:36aaroncaleroSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=27397#r27397

There are no notes attached to this issue.