2 Replies Latest reply on Oct 19, 2012 9:19 AM by 968980

    Issues with the decimal symbol with attributes of the data type currency

    968980
      OPA settings and environment settings

      OPA version
      10.3.0.77

      OPA Project properties
      Rule language: Dutch
      Region: Netherlands (Dutch)

      OS configuration
      Windows 7 Professional Service Pack 1
      Region and Language
      Formats>Format: Dutch (Netherlands)
      Formats>Additional settings>Numbers>Decimal symbol: ,
      Location>Current location: Netherlands

      The issues cause some suspicion concerning the way OPA handles the decimcal symbol in localization. Furthermore the issues I have with the decimal symbol are seriously affecting test case and test script maintenance.

      The most important issue with regards to test script maintenance is the following.

      *1) Amounts of attributes of the data type currency are multiplied by 10 when opening a test script (.tsc) in OPM*
      In a test script an amount is stored as below:
      <currency-val>30.0</currency-val>

      When opening this test script in OPM (right click on the Test Scripts folder and in the context menu click Add Existing File) the amount is changed into 300.0

      *2) Decimal symbol changes from ',' to '.' when opening a test script (.tsc) in OPM*
      In a test script an amount is stored as below:
      <currency-val>30,0</currency-val>

      When opening this test script in OPM (right click on the Test Scripts folder and in the context menu click Add Existing File) the decimal symbol is changed from ',' into so the amount is now 30.0

      *3) In OPM an amount entered with comma as decimal symbol is stored incorrectly*
      Steps to reproduce
      A test case is present.
      Open the test case.
      Double click on a base attribute of the data type currency
      Enter an amount with ',' as decimal symbol (for example: 30,05)
      OPM converts this amount to 3005.0
      This obviously is not the intended amount.