Test Case #:226
Test Case Name: Convert approved requisition to orders | |
System: openLMIS | Subsystem: requisition |
Test case designed by: Lucyna Kwidzinska | Design Date:10.08.2016 |
Short description: As a storeroom manager creating a requisition, I want my requisitions to be converted to an order for my filling warehouse once my requisition has been approved so that supplying warehouse is aware of my stock needs.
|
|
Pre – conditions: |
Step | Action | Expected system response | Comment |
Note: Remember to generate token for authentication using some rest client. | Copy the token from response (e.g. {"access_token":"121d02ed-b6b4-4233-9566-cac2b8a3aec9"...). The token will expire after 1 hour. Then, it's necessary to generate the new one. | ||
1 |
Create geographicZone URL: http://localhost:8080/api/geographicZones/?access_token=68be1238-021f-4126-a676-8fdb7dca0d6d Method: POST Example body: { "code": "zonecode", "name": "zonename", "level": "http://localhost:8080/api/geographicLevels/37bf6690-9fdd-4b90-bb51-1d9e83d1d0b2" } |
status: 201 created is returned, id: "http://localhost:8080/api/geographicZones/e39d79d7-6c65-47ac-9be5-c4090b40753c" | ||
2 | Create geographicLevel URL: http://localhost:8080/api/geographicLevels/?access_token=68be1238-021f-4126-a676-8fdb7dca0d6d Method: POST Example body: { "code": "levelcode", "name": "levelname", "levelNumber": "2" } |
|
3
4
5
6
7
8
Post – conditions: |