Test Case #: 924
Test Case Name: Configure Average Consumption | |
System: openLMIS | Subsystem: blue |
Test case designed by: Lucyna Laska | Design Date:25.01.2017 |
Short description:
For data entry, if not enough periods exist, compute based on the following:
|
|
Pre – conditions: |
Step | Action | Expected system response | Comment |
1 | Add column "Average Consumption" to the Requisition Template | ||
2 | Initiate requisition and veirfy if the column is available. |
|
|
3 | Delete the column "Average Consumption" from Requisition Template. |
| |
4 | initiate a new requisition and check if column is not displayed. |
| |
5 | Change the display order for "Average Consumption" and:
| ||
6 |
|
It's not possible to save the Requisition Template when number of periods to average is set to 1. |
|
7 | Set the n=0 or leave it empty in requisitionTemplate for Family Planning. | It's not possible to save the Requisition Template when number of periods to average is set to 0 or leave it empty. OR |
|
8 | Set the n =2 and save the changes in Family Planning. |
|
|
9 | Initiate a new requisition and calculate the Average Consumption. | The AverageConsumption is the average of the Adjusted Consumption from last periods. The Adjustment Consumption is the multiplying of Total Consumed Quantity and Total Stockout Days from current period. | |
10 | Set the n=5. | ||
11 | Initiate a new requisition and calculate the Average Consumption (the previous periods should contain all needed values) | The Average Consumption has been calculated properly. Average Consumption is set to 15.4 (11+5+4+33+24)/5 = 15.4 | When n=5 and Adjusted COnsumption for product with productCode C600 is set to:
|
12 | Initiate a new requisition, calculate the Adjusted Consumption, submit requisition and skip the requisition. | ||
13 | Initiate another new requisition and check | ||
14 |
Post – conditions: |