Test Case #:218
Test Case Name: Skip a requisition period | |
System: OpenLMIS | Subsystem: requisition |
Test case designed by: Paulina Borowa | Design Date:12.07.2016 |
Short description: Possibility to skip a requisition period (or multiple) within a specific program schedule so that I can quickly create a requisition for current period and order my appropriate supplies to serve the patients. |
|
Pre – conditions: |
Step | Action | Expected system response | Comment |
1 | Create geographicZones In URL: http://localhost:8080/api/geographicZones Method: Post: Example Body: { "code":"GeoZon", "level":"http://localhost:8080/api/geographicLevels/a36902f4-e163-499a-936d-5b5554f8deec"
} | status: 201 created, | |
2 | Create facilityTypes In URL: http://localhost:8080/api/facilityTypes Method: Post: Example Body: { "code":"facilityT" } | status: 201 created, |
|
3 | Create facility In URL: http://localhost:8080/api/facilities Method: Post: Example Body: { "code":"facilitiees", "geographicZone":"http://localhost:8080/api/geographicZones/b2f7ed2b-b976-4831-96e4-c4b5d96a4999", "type":"http://localhost:8080/api/facilityTypes/aacdc0cc-9424-4100-b913-0d34331ecd3e", "active":true, "enabled":false } | status: 201 created, |
|
4 | Create program In URL: http://localhost:8080/api/programs Method: Post: Example Body: { "code":"programss", "skippable":true } | status: 201 created,
|
|
5 | Create schedules In URL: http://localhost:8080/api/schedules Method: Post: Example Body: { "code":"scheld", "name":"Scheldues" } | status: 201 created, | |
6 | Create period In URL: http://localhost:8080/api/periods Method: Post: Example Body: { "processingSchedule": { "id":"c5b75ae5-9e98-41ed-878a-04625d51778c", "code" : "scheld", "modifiedDate" : "2016-07-12T12:04:55.631", "name" : "Scheldues" }, "name" : "periodNamee", "description" : "periiodDescription", "startDate" : "2016-07-13", "endDate" : "2016-07-14" } | status: 201 created, |
|
7 | Requisition object is created In URL: http://localhost:8080/api/requisitions Method: Post: Example Body: { "facility":"http://localhost:8080/api/facilities/3e897cc1-b9a7-4fd4-bdfa-40de1d3f71c6", "program":"http://localhost:8080/api/programs/fd1a6eb7-7dcf-4179-ae66-1814a1f88a66", "processingPeriod":"http://localhost:8080/api/periods/d8a32e87-5781-4195-8953-c12834cfad8e" } | status: 201 created, requisition id: 1839154e-5099-478c-aa60-28aa50c73220 |
|
8 | Skip a requisition period In URL: http://localhost:8080/api/requisitions/1839154e-5099-478c-aa60-28aa50c73220/skip Method: Put Send |
Post – conditions: |