818: Full Supply Data validation in the product grid

Test Case #:380


Test Case Name: Full Supply Data validation in the product grid

System: openLMIS

Subsystem: blue

Test case designed by: Lucyna Laska

Design Date:03.11.2016

Short description

  • Only columns that are part of the template (and shown on the screen are validated
  • All mandatory fields must be set if their source is user input. Non-mandatory fields at submit are: quantity approved, skipped, remarks, losses and adjustments, reason for requested quantity
  • Reason for requested quantity must be provided if requested quantity is provided
  • Expiration date must have correct format
  • Even if both stock on hand and total consumed quantity are both set to user input, they still need to follow the arithmetic: E=A+B(+/-)D-C

                                                                                                                                                   

Pre – conditions:

                                                                                                                                                                                                                                                       

Step

Action

Expected system response

Comment

1

When I want to check, how looks the template for Family Planing program:

When proper requisition template is displayed, all included columns are listed.



2

When i try to submit the requisition, those fields are non-mandatory:

  •  Total losses and adjustments, reason for requested quantity (when Requested Quantity =0).


After filling all required fields, submission can be done.


3

Try to authorize the requisition.


When everything is ok, requisition is authorized successfully.


4During approving the requisition, it's required to fill the Approved Quantity and Remarks fields.



5

When Approved Quantity is filled, try to approve the requisition.



The requisition was successfully approved.


6

Requested Quantity Explanation must be provided if Requested Quantity is filled

  • When requested Quantity = 0, the Requested Quantity Explanation can be empty.


  • Requested Quantity can't be empty, negative values are not allowed



  • When Requested Quantity is different than 0, the Requested Quantity Explanation is required.

7

When both stock on hand and total consumed quantity are set to user input, they still need to follow the arithmetic: E=A+B(+/-)D-C


8




9

                                                


Post – conditions:

OpenLMIS: the global initiative for powerful LMIS software