Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Current »

Test Case #:284

Test Case Name: Supply Lines

System: OpenLMIS

Subsystem: requisition

Test case designed by: Paulina Borowa

Design Date:22.07.2016

Short description

Allows addition of new and editing of existing supply lines

                                                                                                                                                   

Pre – conditions:

  1.                                                                                                                                                                                                                


Step

Action

Expected system response

Comment

1

Create geographicLevels entity:

In URL: http://localhost:8080/api/geographicLevels

Method: Post:

Body

{

"code":"GL2",

"levelNumber":"12"

}

Status: 201 created,

geographicLevels id: "http://localhost:8080/api/geographicLevels/8e38e02f-29a8-44e9-926a-cfc3eb4d0ca3"

                                                 

2

Create geographicZones entity. 

In URL:http://localhost:8080/api/geographicZones

Method: Post:

{

"code":"GeoZon2",

"level":"http://localhost:8080/api/geographicLevels/8e38e02f-29a8-44e9-926a-cfc3eb4d0ca3"

}

Status: 201 created,

 geographicZones id:"http://localhost:8080/api/geographicZones/be60bba4-c3d0-4d76-9e4b-12f8f50d934b"

 

3

Create facilityTypes entity.

In URL: http://localhost:8080/api/facilityTypes

Method: Post:

{

"code":"facilityT2"

}

Status: 201 created,

facilityTypes id:"http://localhost:8080/api/facilityTypes/99b9e25f-c147-450c-be88-0d1d3a61109e"

 

4

Create facilities entity.

In URL: http://localhost:8080/api/facilities

Method: Post:

{

"code":"facilities2",

"geographicZone": "http://localhost:8080/api/geographicZones/be60bba4-c3d0-4d76-9e4b-12f8f50d934b",

"type":"http://localhost:8080/api/facilityTypes/99b9e25f-c147-450c-be88-0d1d3a61109e",

"active":true,

"enabled":false

}

Status: 201 created,

 facilities id: http://localhost:8080/api/facilities/8ff6f995-0c09-46e3-886c-4313c90334f2"

 

5

Create supervisoryNodes entity.

In URL: http://localhost:8080/api/supervisoryNodes

Method: Post:

{

"code":"supervisoryN",

"name":"Nodes",

"supervisorCount":"2",

"facility": "http://localhost:8080/api/facilities/8ff6f995-0c09-46e3-886c-4313c90334f2"

}

Status: 201 created,

supervisoryNodes id:"http://localhost:8080/api/supervisoryNodes/abeeb7a4-b3bd-4c58-b41d-102e2dacec1c"

 

6

Create another geographicLevels entity:

Method: Post:

Body:

{

"code":"GL1",

"levelNumber":"11"

}

Status: 201 created,

geographicLevels

id:"http://localhost:8080/api/geographicLevels/73f0a091-6004-4bd8-bd32-43f4c143631a"

 

7

Create another geographicZones entity:

Method: Post:

Body:

{

"code":"GeoZon",

"level":"http://localhost:8080/api/geographicLevels/73f0a091-6004-4bd8-bd32-43f4c143631a"

}

Status: 201 created,

geographicZones  id:"http://localhost:8080/api/geographicZones/306c2842-3591-47c6-8276-af3efd8d2657"

 

8

Create another facilityTypes entity.

Method: Post:

Body:

{

"code":"facilityT1"

}

Status: 201 created,

facilityTypes  id: "http://localhost:8080/api/facilityTypes/dc806241-1ee6-4c16-bdf9-8f628f8df005"

 

9

Create another facilities entity:

Method: Post:

Body:

{

"code":"facilities1",

"geographicZone":"http://localhost:8080/api/geographicZones/306c2842-3591-47c6-8276-af3efd8d2657",

"type":"http://localhost:8080/api/facilityTypes/dc806241-1ee6-4c16-bdf9-8f628f8df005",

"active":true,

"enabled":false

}

Status: 201 created,

facilities id:"http://localhost:8080/api/facilities/b4302eda-7b65-46e3-89fb-4fdf1f298da6"

 
10

Create Program entity.

Method: Post:

Body:

{

"code":"Progr",

"showNonFullSupplyTab":true,

"skippable":false

}

Status: 201 created,

Program id:"http://localhost:8080/api/programs/c4dc0f30-7c18-491f-8d8a-44d68c458a72"

 
11

Create SupplyLines entity:

Method: Post:

Body:

{

"id": "a480e3e8-c459-4040-844a-0bc0933774d8",

"supervisoryNode":{"id":"abeeb7a4-b3bd-4c58-b41d-102e2dacec1c","code": "supervisoryN","name": "Nodes","description": null,"supervisorCount": "2"},

"program":{"id":"c4dc0f30-7c18-491f-8d8a-44d68c458a72", "code":"Progr","showNonFullSupplyTab":true,"skippable":false},

"supplyingFacility":{"id":"b4302eda-7b65-46e3-89fb-4fdf1f298da6","code":"facilities1",

"geographicZone":{"id":"306c2842-3591-47c6-8276-af3efd8d2657","code": "GeoZon","name": null,"catchmentPopulation": null,"latitude": null,"longitude": null},

"type":{"id":"dc806241-1ee6-4c16-bdf9-8f628f8df005", "code": "facilityT1","name": null,"description": null,"displayOrder": null,"active": null},

"active":true,

"enabled":false}

}

Status: 201 created,

Program id:"a480e3e8-c459-4040-844a-0bc0933774d8"

 

 

 

Post – conditions:

                                                                                                                   

  • No labels