760: Create a basic requisition
Test Case #:760 | Test Case Name: Create a basic requisition |
System: OpenLMIS | Subsystem:requisition |
Test case designed by: Paulina Borowa | Design Date:26.07.2016 |
Short description: Verify that: -Create a basic requisition -upon submission the requisition status changes to "submitted" |
|
Pre – conditions: |
Step | Action | Expected system response | Comment |
1 | Initiate requisition: Method: POST URL: requisition/initiate program: 10845cb9-d365-4aaa-badd-b4fa39c6a26a facility: e6799d64-d10d-4011-b8c2-0e4d4a3f65ce
| Requisition is created and associated with program, facility schedule and period. Date of creation is included, status INITIATED appears. | |
2 | Get requisition Method: GET URL: requisitions/id/ id: db69889b-180e-4643-b485-240857ff6984 access_token: 5e16b922-266b-4afc-ab93-5c6fe13875ba | The details of requisition are displayed properly. | |
3 | Submit requisition Method: POST URL: requisitions/id/submit id: db69889b-180e-4643-b485-240857ff6984 access_token: 5e16b922-266b-4afc-ab93-5c6fe13875ba | Requisition has been submitted. The status of requisition has been changed to "SUBMITTED". | Its not possible to submit the requisition when stockOnHand and totalConsumedQuantity are invalid. |
4 | Authorize requisition. Method: POST URL: requisitions/id/authorize id: db69889b-180e-4643-b485-240857ff6984 access_token: 5e16b922-266b-4afc-ab93-5c6fe13875ba | Requisition has been authorized. | |
5 | Approve requisition. Method: POST URL: requisitions/id/approve id: db69889b-180e-4643-b485-240857ff6984 access_token: 5e16b922-266b-4afc-ab93-5c6fe13875ba | Requisition has been approved. | When approvedQuantity is not entered, requisition can not be approved. |
6 | Get requsiition ready for Convert To order. Method: GET URL: requisitions/requisitions-for-convert | ||
7 | Update requisition: Method: PUT URL: requisitions/id Body:
| Requisition has been updated. The approved Quantity was entered, | |
8 | |||
9 | |||
10 | |||
11 | |||
12 |
OpenLMIS: the global initiative for powerful LMIS software