1518: Manually retry for transferring order file via FTP
Test Case #:1518
Test Case Name: Manually retry for transferring order file via FTP | |
System: openLMIS | Subsystem: blue |
Test case designed by: Lucyna Laska | Design Date:18.01.2017 |
Short description:
|
|
Pre – conditions: |
Step | Action | Expected system response | Comment |
1 | Convert the requisition to order when transferProperties is added with proper facilityId. | The requisition should be successfully converted to order. |
|
2 | Try to manually retry transferring order file via FTP. Method: GET |
The requisition has been successfully converted to order, csv file has been sent via FTP, so there is no need for rettrying seding the file via FTP. The order has status IN_ROUTE so retrying is not possible. | When status is set to IN_ROUTE it means that file has been sent via FTP. |
3 | Try to retry manually the transferring order file via FTP when order does not exist. Method: GET |
The transferring the order file via FTP can't be retried because the ORDER with entered ID is not created. | Check if it's true that the order with provided ID does not exist. Method: GET |
4 | Try to retry manually the transferring order file via FTP when transferProperties for proper facility has been deleted. Method: GET URL: http://10.222.17.134/api/orders/aa70bb2f-c95b-4efd-9d07-9cd4c7320726/retry?access_token=5cf57308-8082-4a9e-abb0-562c79609ca7 | The file can't be send because the transferPropertied do not exist for proper facility. The status should be still TRANSFER_FAILED. |
|
5 | Add the transferProperties to proper facility. URL: http://10.222.17.134/api/transferProperties?access_token=43c3c781-8e4c-458a-bf1f-53f237c3fecf MEthod: POST Body: { "facility": { "id": "19121381-9f3d-4e77-b9e5-d3f59fc1639e", "code": "W01", "name": "CMST Warehouse", "geographicZone": { "code": "Mal-So", "name": "Southern Region", "level": { "code": "Region", "levelNumber": 2, "id": "9b497d87-cdd9-400e-bb04-fae0bf6a9491" }, "id": "0bbd69c1-e20f-48f5-aae4-26dcd8aa7602" }, "type": { "code": "warehouse", "name": "Warehouse", "displayOrder": 3, "active": true, "id": "e2faaa9e-4b2d-4212-bb60-fd62970b2113" }, "operator": { "code": "moh", "name": "Ministry of Health", "displayOrder": 1, "id": "9456c3e9-c4a6-4a28-9e08-47ceb16a4121" }, "active": true, "enabled": true, "openLmisAccessible": true, "supportedPrograms": [ { "id": "66032ea8-b69b-4102-a1eb-844e57143187", "code": "PRG003", "name": "New program", "programActive": true, "periodsSkippable": false, "showNonFullSupplyTab": false, "supportActive": true } ] }, "type": "ftp", "protocol": "FTP", "username": "admin", "password": "p@ssw0rd", "serverHost": "ftp", "serverPort": 21, "remoteDirectory": "/orders/files/csv/W01", "localDirectory": "/var/lib/openlmis/fulfillment/orders/W01", "passiveMode": true } |
| |
8 | Try again manually retry transferring order file via FTP. Method: GET |
| Check if the status of order has been changed properly. Method: GET |
Post – conditions:
|
OpenLMIS: the global initiative for powerful LMIS software