Test Case #:1213
Test Case Name: Reject requisition endpoint should only work on authorized requsitions | |
System: openLMIS | Subsystem: blue |
Test case designed by: Lucyna Laska | Design Date:28.10.2016 |
Short description: Rejecting a requisition should only work, when the requisition is waiting for approval. In any other case the endpoint should not move the requisition back to initiated state |
|
Pre – conditions: |
Step | Action | Expected system response | Comment |
1 |
Using demo-data, find the requisition with status AUTHORIZE and try to reject it:
|
8
Method: PUT | The requisition has been rejected successfully.
| |
2 | Using demo-data, find the requisition with status INITIATED and try to reject it: URL: |
3
4
5
6
7
Method: PUT | The requisition can not be rejected, because status is incorrect, | ||
3 | Using demo-data, find the requisition with status SUBMITTED and try to reject it: Method: PUT | The requisition can not be rejected, because status is incorrect, | |
4 | Using demo-data, find the requisition with status APPROVED and try to reject it: Method: PUT | The requisition can not be rejected, because status is incorrect. | |
5 | |||
6 | |||
7 | |||
8 |
Post – conditions: |