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

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:

Related content

3.2.1 Regression Test Plan
3.2.1 Regression Test Plan
Read with this
770: Save a requisition
770: Save a requisition
More like this
494: User Profile
494: User Profile
Read with this
428:Supply Lines
428:Supply Lines
More like this
Malawi Version 3 Testing Results
Malawi Version 3 Testing Results
Read with this
700: Identify facilities that do not have access to OpenLMIS
700: Identify facilities that do not have access to OpenLMIS
More like this

OpenLMIS: the global initiative for powerful LMIS software