930: Configure Total Stockout Days

930: Configure Total Stockout Days

Test Case #:284

 

Test Case Name: UI for Total Stockout Days (X) requisition field

System: openLMIS

Subsystem: blue

Test case designed by: Lucyna Laska

Design Date:04.11.2016

Short description: 

FROM OLMIS-1211:

  • if this field is on the requisition template for a given program, then when you initiate a requisition the field will show up in the UI based on the display order applied in the requisition template.

  • the field allows a non-negative integer value (0,1,2,etc) to be entered by user

  • the default value of the field is zero (zero stockout days); the field is optional, meaning that the user can leave it zero and save/submit their requisition

  • invalid entries into the field (like making it a negative number or a string or "") display a friendly warning message, and prevent the user from submitting their requisition (it may cache or save)

FROM OLMIS-1210:

  • in the APIs for configuring a requisition template, this new field can be added into the requisition template (by an admin with permissions to configure the template for their program)

  • if this field is NOT configured/associated to a requisition template, it does not appear on the requisition form

  • the field can be configured with a display order that controls where it appears on the requisition

  • in the APIs for initiating and saving a requisition, if this field is part of the template, then this field appears on the requisitions. Its display order should be based on the requisition template.

  • this field allows a non-negative integer value (0,1,2,etc) to be provided by the user (API should validate and respond with a proper error if invalid)

  • default value of the field is zero (zero stockout days); field is optional, meaning that the user can leave it zero and save/submit their requisition

                                                                                                                                                   

Pre – conditions:

                                                                                                                                                                                                                                                       

Step

Action

Expected system response

Comment

Note:

Demo-data has been used during testing this ticket. In addition, UI was verified on Chrome and Firefox.

 

 

1

Find the ID of program with name: "Family Planing".

  Method: GET

                                                                                                                            

                                                 

2

Find the ID of requisition template associated with program "Family Planing".

Method: GET

 

3

Verify through API, if field "Total Stockout Days" is configured in requisition template.

 

4

Check, If field is available on UI, on requisition details.

 

OpenLMIS: the global initiative for powerful LMIS software