415: Create a Facility

Test Case #:415

 

Test Case Name: Create a Facility

System: OpenLMIS

Subsystem: requisition

Test case designed by: Anna Czyrko

Design Date:28.06.2016

Short description: Possibility to create a facility in OpenLMIS to represent a physical facility in country so that OpenLMIS can record the supply chain activities that will take place with that facility

                                                                                                                                                   

Pre – conditions:

 

 

Step

Action

Expected system response

Comment

1


Create GeographicLevel.
Method: Post
Example Body:
{
"code": "test12",
"levelNumber": "3"
}
                                                                                                              

status: 201 created,       

facility id: http://localhost:8080/api/geographicLevels/cca4a0bf-a290-484b-9dd9-c5ce23098516

                                                 

2

Create Geographic Zones.
Method: Post
Example Body:
{
"code": "test1",
}

status: 201 created,

geographicZone id:

  http://localhost:8080/api/geographicZones/f183f6ec-b550-46a6-938e-fc30126de199

 

3

Create Facility Type.
Method: Post
Example Body:
{
"code": "2"
}
status: 201 created,
facilityType id:

 

4

Create Facility only with „code”, „geographicZone”, „type”, „enabled” and
„active”.

In URL:
Method: POST
Example Body:
{
"code": "test1",
fc30126de199",
"active": true,
"enabled": true
}
status: 201 created,

 

 

 

 

Post – conditions:

OpenLMIS: the global initiative for powerful LMIS software