401: Configure Order Number for Export
Test Case #:401 | Test Case Name:Configure Order Number for Export |
System: OpenLmis | Subsystem: blue |
Test case designed by: Paulina Borowa | Design Date:28.10.2016 |
Short description: Acceptance Criteria
|
|
Pre – conditions: |
Demo-data Generate token for administrator
|
Step
Action | Expected system response | Comment | |
1 | Create orderNumberConfigurations. In URL: http://10.222.17.205/requisition/api/orderNumberConfigurations?access_token=07525032-cff0-4dc9-b188-16a49f581904 Method: Post Example Body: { "id": "70543032-b131-4219-b44d-7781d29db330", "orderNumberPrefix": "Pref999", "includeOrderNumberPrefix":true "includeProgramCode": true, "includeRequisitionTypeSuffix": true } |
| |
2 | Check previously created orderNumperConfigurations. Method: Get | ||
3 | Check the correct display of orderCode in URL: http://10.222.17.205/requisition/api/orders?access_token=b311b49e-d2d3-4335-8ce7-78f219a01e07 Method: Get | Should be with: includeOrderNumberPrefix includeProgramCode includeRequisitionTypeSuffix | |
4 | Update previously created orderNumberConfigurations in URL: http://10.222.17.205/requisition/api/orderNumberConfigurations?access_token=07525032-cff0-4dc9-b188-16a49f581904Method: Post Example Body: { "id": "70543032-b131-4219-b44d-7781d29db330", "orderNumberPrefix": "123PRE", "includeOrderNumberPrefix":false "includeProgramCode": false, "includeRequisitionTypeSuffix": false } | ||
5 | Check previously created orderNumperConfigurations Method: Get | ||
6 | Check the correct display of orderCode in URL: http://10.222.17.205/requisition/api/orders?access_token=b311b49e-d2d3-4335-8ce7-78f219a01e07 Method: Get | Should be without: includeOrderNumberPrefix includeProgramCode includeRequisitionTypeSuffix | |
7 | Check validation for prefix Method: Post Example Body: { "id": "70543032-b131-4219-b44d-7781d29db330", "orderNumberPrefix": "@#!@", "includeOrderNumberPrefix":false "includeProgramCode": false, "includeRequisitionTypeSuffix": false } | Status: 400 Bad Request | order number prefix (8 alphanumeric characters) |
OpenLMIS: the global initiative for powerful LMIS software