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 | Column is added to the requisition Template. | |
2 | Initiate requisition and verify if the column is available. | After initiation, Average Consumption column is visible . |
|
3 | Remove the column "Average Consumption" from Requisition Template (unselect the checkbox). |
|
|
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 Average Consumption is calculated properly (45+11)/2 = 28 | 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. The Adjusted Consumption from last period(July) is set to 45. |
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 when previous periods are skipped (n=2). | When previously periods are skipped, the calculation for Average Consumption are based only of current period. | |
13 |
Post – conditions: |