Openbravo Issue Tracking System - Retail Modules
View Issue Details
0039874Retail ModulesTests Stabilizationpublic2019-01-03 19:092019-01-28 19:06
gorka_gil 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
 
 
gorka_gil
No
0039874: tests conversion rates
There are some tests about conversion rates:
- I39103_VerifyPaymentAmountsInDifferentCurrencies
- I33898_VerifyRoundingWhenPayingInForeignCurrency
- I33059_VerifyPaymentBasedonConversionRate

That have some problems:
1) When executed one test after another , there is an update that fail because found 2 lines instead one:
  'update c_conversion_rate SET updated = NOW(), isactive = 'N' where c_currency_id = '102' and c_currency_id_to = '100' and validfrom = to_date(trunc(now())) - interval '2' day'
2) They left conversion rates disabled
3) These tests can not be executed twice, since the insert fail because fail a constraint.
1) create a suite with:
I33898_VerifyRoundingWhenPayingInForeignCurrency
I39103_VerifyPaymentAmountsInDifferentCurrencies

2) -

3) -
1) change the way that creates and disabled the conversion rates, but since the pos don't get when is deleted, maybe an option is to execute the update without specify the number to registers to return (DatabaseHelperInsertUpdateOrDelete.UNKNOWN_AFFECTED_ROWS).

2) re-enable the conversion rates disabled at the beginning.

3) maybe check at the beginning if the conversion rate exists and activate it.
No tags attached.
Issue History
2019-01-03 19:09gorka_gilNew Issue
2019-01-03 19:09gorka_gilAssigned To => Retail
2019-01-03 19:09gorka_gilTriggers an Emergency Pack => No
2019-01-03 19:12hgbotCheckin
2019-01-03 19:12hgbotNote Added: 0108821
2019-01-08 07:12ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2019-01-08 08:45ranjith_qualiantech_comStatusnew => scheduled
2019-01-10 14:00hgbotCheckin
2019-01-10 14:00hgbotNote Added: 0108896
2019-01-10 14:00hgbotStatusscheduled => resolved
2019-01-10 14:00hgbotResolutionopen => fixed
2019-01-10 14:00hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.sampledata/rev/5fea2a6c56faafb1eff0dc93c4353bdf1c88bc90 [^]
2019-01-10 14:00hgbotCheckin
2019-01-10 14:00hgbotNote Added: 0108897
2019-01-28 19:06gorka_gilReview Assigned To => gorka_gil
2019-01-28 19:06gorka_gilStatusresolved => closed

Notes
(0108821)
hgbot   
2019-01-03 19:12   
Repository: tools/automation/pi-mobile
Changeset: 5055150e6809806ebdb3b593bc58e5090a307ae1
Author: Gorka Gil <gorka.gil <at> openbravo.com>
Date: Thu Jan 03 19:11:59 2019 +0100
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/5055150e6809806ebdb3b593bc58e5090a307ae1 [^]

Related to issue 39874: disabled test I39103_VerifyPaymentAmountsInDifferentCurrencies till issue is fixed

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/payment/I39103_VerifyPaymentAmountsInDifferentCurrencies.java
---
(0108896)
hgbot   
2019-01-10 14:00   
Repository: erp/pmods/org.openbravo.retail.sampledata
Changeset: 5fea2a6c56faafb1eff0dc93c4353bdf1c88bc90
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Jan 10 18:30:14 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.sampledata/rev/5fea2a6c56faafb1eff0dc93c4353bdf1c88bc90 [^]

Fixed issue 39874 : Added Sample data for Currency Conversion

* Added Sample data for Currency Conversion for the issue 39103
* Added Sample data for Currency Conversion for the issue 33059

---
M referencedata/sampledata/The_White_Valley_Group/C_CONVERSION_RATE.xml
---
(0108897)
hgbot   
2019-01-10 14:00   
Repository: tools/automation/pi-mobile
Changeset: 85b3f9db7c06ecc07299b6aa5f998777ee17db23
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Jan 10 18:30:26 2019 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/85b3f9db7c06ecc07299b6aa5f998777ee17db23 [^]

Related to issue 39874 : Modified Sample data for Currency Conversion tests

* Following test has been modified to use the Sample data instead of creating it
  I33059_VerifyPaymentBasedonConversionRate.java
  I33898_VerifyRoundingWhenPayingInForeignCurrency.java
  I39103_VerifyPaymentAmountsInDifferentCurrencies.java

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/payment/I33898_VerifyRoundingWhenPayingInForeignCurrency.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/payment/I39103_VerifyPaymentAmountsInDifferentCurrencies.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I33059_VerifyPaymentBasedonConversionRate.java
---