428:Supply Lines

428:Supply Lines

Test Case #428

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:

Method: Post:

Body

{

"code":"GL2",

"levelNumber":"12"

}

Status: 201 created,

                                                 

2

Create geographicZones entity. 

Method: Post:

{

"code":"GeoZon2",

}

Status: 201 created,

 

3

Create facilityTypes entity.

Method: Post:

{

"code":"facilityT2"

}

Status: 201 created,

 

4

Create facilities entity.

Method: Post:

{

"code":"facilities2",

"active":true,

"enabled":false

}

Status: 201 created,

 

5

Create supervisoryNodes entity.

Method: Post:

{

"code":"supervisoryN",

"name":"Nodes",

"supervisorCount":"2",

}

Status: 201 created,

 

6

Create another geographicLevels entity:

Method: Post:

Body:

{

"code":"GL1",

"levelNumber":"11"

}

Status: 201 created,

geographicLevels

 

7

Create another geographicZones entity:

Method: Post:

Body:

{

"code":"GeoZon",

}

Status: 201 created,

 

8

Create another facilityTypes entity.

Method: Post:

Body:

{

"code":"facilityT1"

}

Status: 201 created,

 

9

Create another facilities entity:

Method: Post:

Body:

{

"code":"facilities1",

"active":true,

"enabled":false

}

Status: 201 created,

 

10

Create Program entity.

Method: Post:

Body:

{

"code":"Progr",

"showNonFullSupplyTab":true,

"skippable":false

}

Status: 201 created,

 

11

Create SupplyLines entity:

Method: Post:

Body:

{

    "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,

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

 

12

Edit existing supplyLines and check if it's confirmed (for example change program values)

Method: Post:

Body:

{

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

    "supervisoryNode":{"id":"6a711103-5bd7-4d6b-bb64-faee481bca10","code": "supeRRN","name": "Nodess","description": null,"supervisorCount": "23"},

    "program":{"id":"6ed06dab-7dd4-44ec-ae11-8f21c82f3b4f", "code":"Apppp","showNonFullSupplyTab":true,"skippable":false},

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

    "geographicZone":{"id":"3b1d7e2d-173e-4475-a7f3-7b9e2e14b78f","code": "Zon","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,

 

 

 

 

Post – conditions:

                                                                                                                   

OpenLMIS: the global initiative for powerful LMIS software