425: Geographic zones
Test Case #: 425 | Test Case Name: Geographic zones |
System: OpenLMIS | Subsystem: Example |
Test case designed by: Anna Czyrko | Design Date:25.07.2016 |
Short description: Allows addition of new geographic zones |
|
Pre – conditions: |
Step | Action | Expected system response | Comment |
1 | Create GeographicLevel entity. URL: http://localhost:8080/api/geographicLevels Method: Post Example Body: { "code": "2", "name": "test2", "levelNumber": "3" } | Should appear: Status 201 Created or 200 OK | |
2 | Create GeographicZone entity. In URL: http://localhost:8080/api/geographicZones Method: Post Body: { "code": "test3", "name": "3", "level": "http://localhost:8080/api/geographicLevels/95d8545c-1f3e-43ad-988c-0cf81b5e5bf6", "latitude":"16.201566", "longitude": "15.94830" }
| ||
3 | Check if API exist. URL: http://localhost:8080/api/geographicZones Method: Get
| ||
|
---|
Post – conditions:
|
OpenLMIS: the global initiative for powerful LMIS software