415: Create a Facility

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,       

                                                 

2

Create Geographic Zones.

Method: Post

Example Body:

{

"code": "test1",

}

status: 201 created,

geographicZone id:

 

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