Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Test Case #:813


Test Case Name:Configure Total Received Quantity attribute

System: openLMIS

Subsystem: blue

Test case designed by: Lucyna Kwidzińska

Design Date:03.11.2016

Short description:  I want the option to include and configure the "total received quantity" attribute (Total quantity received in last period. This is quantified in dispensing units) so that storeroom managers can use the information when determining the requested quantities and supervisors understand the amount of inventory received in the last period at the facilities when approving/reviewing requisitions.

  • the source of data is user input (at this time)
  • only non-negative and integer are allowed
  • the attribute is displayed in the defined order on the form
  • data entry validations should match the current 2.0 functionality (please check)

                                                                                                                                                   

Pre – conditions:

                                                                                                                                                                                                                                                       



Step

Action

Expected system response

Comment

1

                                                                 

Generate token for authentication.



                                                                                                      

                                                                                                                            


Image Added
                        

Copy the token from response (e.g. {"access_token":"4425beb8-a9ea-4590-bbc3-bffed45a59b6"...)

                         
2

Verify, if field "total Received Quantity" is available in requisition template.

  • program Id for requisition: dce17f2e-af3e-40ad-8e00-3496adef44c3


URL:  http://10.222.17.134/requisition/api/requisitionTemplates?access_token=4425beb8-a9ea-4590-bbc3-bffed45a59b6

Method: GET



Total Received Quantity is available in requisition template (the source is USER INPUT).

Image AddedImage Added

3

The field "totalReceivedQuantity" is mandatory when submit.

URL:  http://10.222.17.134/requisition/api/requisitions/fd575c05-c469-4bb4-b5d3-4e8937a8c1ff/submit?access_token=4425beb8-a9ea-4590-bbc3-bffed45a59b6


Image Added


4

Edit the requisition → enter the positive value into "totalReceivedQuantity" in requisition.
Method: PUT

The requisition has been submitted. Value in TotalReceivedQuantity has been saved, the "total" value has been recalculated.

Image Added


5

Edit the requisition → enter negative value into "totalReceivedQuantity".

URL:  http://10.222.17.134/requisition/api/requisitions/fd575c05-c469-4bb4-b5d3-4e8937a8c1ff?access_token=4425beb8-a9ea-4590-bbc3-bffed45a59b6

Method: PUT

Image Added


6

Try to submit the requisition.

URL:  http://10.222.17.134/requisition/api/requisitions/6167e65c-6f56-4aeb-bff5-fdfe84e01a21/submitaccess_token=4425beb8-a9ea-4590-bbc3-bffed45a59b6

Method: POST

Image Added

Image Added


7

Try to submit the requisition when totalReceivedQuantity is negative.

URL:  http://10.222.17.134/requisition/api/requisitions/fd575c05-c469-4bb4-b5d3-4e8937a8c1ff/submit?access_token=4425beb8-a9ea-4590-bbc3-bffed45a59b6

Method: POST



Image Added


8


 





Post – conditions: