Openbravo Issue Tracking System - Retail Modules
View Issue Details
0037065Retail ModulesWeb POSpublic2017-10-13 14:572018-08-13 14:49
guilleaer 
Retail 
normaltrivialhave not tried
newopen 
5
 
 
No
0037065: Test to verify attributes functionality are pending
Some test to verify attributes functionality are pending to be developed


Stock validation module
-----------------------
-> Currently we don't have any test which verifies that without having any valid bin in the store marked as overissue (old allow negative stock) the stock validation module doesn't allow to sell the product

Stock Validation Module together with Use Attribute preference
--------------------------------------------------------------
-> Verify that error is shown if nothing is written in the input destinated to write attribute values

-> Using a product which expect 2 attributes (Balaclava) write just one value. An error should be shown and the line shouldn't be added to the ticket

-> Using a product which expect expiration date attribute (Balaclava) write an incorrect string or use a wrong date format. An error should be shown and the line shouldn't be added to the ticket. then the ticket can be removed

-> Using a product which does not have at all inventory (not present in m_storage_detail) try to add it to the ticket. It should work. Then the ticket can be removed (this test assumes that at least there is one bin marked as overissue in the store)

-> Using a product which does not have stock but it is present in m_storage_detail with stock 0. Try to add it to the ticket. It should work. Then the ticket can be removed (this test assumes that the bin which is being pointed by m_storage_detail is marked as overissue)

-> Using a product which does not have stock but it is present in m_storage_detail with stock 0. Try to add it to the ticket. It should not allow to sell it. Then the ticket can be removed (this test assumes that the bin which is being pointed by m_storage_detail is NOT marked as overissue)

-> Basic test using a product (to be defined) which works with several attributes (apart from lot, serialNo, expdate). All of the attributes are marked as "instance attribute" and the value is mandatory.

-> Same as tested above using an attribute which is marked as list.
One test should try to give a value which is not in the list of possible values. In that case the product can't be added to the ticket

//Test for issue 37308

Add to sample data 2 different att set instance ID with the same description
For instance:
AttsetIntanceId: A Description: #0925_16-11-2019
AttsetIntanceId: B Description: #0925_16-11-2019
Add to the sample data stock (1000) for product "Balaclava" with AttSetIntanceId "B"
  -> new entry in m_storage_detail pointing to B
Sell product using the description (0925_16-11-2019)
Ensure that att set instance selected is the one which is related to a m_storage_detail with stock
N/A
No tags attached.
related to design defect 0036966 closed guilleaer When entering the attribute value, the user shouldn't need to follow internal Openbravo format 
related to defect 0037308 closed guilleaer [Support For Attributes]: Attribute set instance without stock selected when there is stock with other instance and same value 
Issue History
2017-10-13 14:57guilleaerNew Issue
2017-10-13 14:57guilleaerAssigned To => Retail
2017-10-13 14:57guilleaerTriggers an Emergency Pack => No
2017-10-13 14:57guilleaerRelationship addedrelated to 0036966
2017-10-13 15:16guilleaerNote Added: 0099912
2017-10-13 15:16guilleaerDescription Updatedbug_revision_view_page.php?rev_id=16101#r16101
2017-10-13 15:16guilleaerNote Deleted: 0099912
2017-11-29 17:09guilleaerRelationship addedrelated to 0037308
2017-11-29 17:15guilleaerDescription Updatedbug_revision_view_page.php?rev_id=16401#r16401
2018-08-09 16:23hgbotCheckin
2018-08-09 16:23hgbotNote Added: 0106260
2018-08-13 14:49hgbotCheckin
2018-08-13 14:49hgbotNote Added: 0106324

Notes
(0106260)
hgbot   
2018-08-09 16:23   
Repository: tools/automation/pi-mobile
Changeset: da7440124fc0f8d64823b316ab4c3cd073f1dc6e
Author: Alejandro <alekosmp86 <at> gmail.com>
Date: Wed Aug 01 13:12:23 2018 -0400
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/da7440124fc0f8d64823b316ab4c3cd073f1dc6e [^]

Related to issue 37065: added automated test

* Test case: verify that an error is thrown when the attribute is not fully defined

---
M src-test/org/openbravo/test/mobile/core/utils/AllowedErrorsHelper.java
A src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/stockvalidation/I37065E_VerifyProductAttributesAreFullyDefined.java
---
(0106324)
hgbot   
2018-08-13 14:49   
Repository: tools/automation/pi-mobile
Changeset: edeb8bfaa9a5d81437026294ff16f332d5422890
Author: Alejandro <alekosmp86 <at> gmail.com>
Date: Fri Aug 10 15:10:50 2018 -0400
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/edeb8bfaa9a5d81437026294ff16f332d5422890 [^]

Stabilization of test for issue 37065: added an entry in AllowedErrorsHelper class
for this test since an error is expected to happen.

---
M src-test/org/openbravo/test/mobile/core/utils/AllowedErrorsHelper.java
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/stockvalidation/I37065E_VerifyProductAttributesAreFullyDefined.java
---