427: Supervisory groups

427: Supervisory groups

Test Case #:427

 

Test Case Name: Supervisory groups

System: OpenLMIS

Subsystem: requisition

Test case designed by: Lucyna Kwidzińska

Design Date:26.07.2016

Short description: Allows addition of new and editing of existing requisition groups

                                                                                                                                                   

Pre – conditions:

                                                                                                                                                                                                                                                       

 

 

Step

Action

Expected system response

Comment

1

                                                        

Create FacilityType

Method: POST

 

Example Body:

 

{

"code": "facilitytype"

}

                                                                                                               

   status: 201 created,

         

                                                 

2

Create GeographicLevel.

Method: POST

 

Example Body:

{

"code": "codelevel",

"levelNumber": "11"

}

status: 201 created,

 

3

Create GeographicZone

Method: POST

 

Example Body:

{

"code": "codezone01",

 

}

status: 201 created,

 

4

Create Facility.

Method: POST

 

Example Body:

{

"code": "facilitynew01",

"active": "true",

"enabled": "true"

}

status: 201 created,

 

5

Create SupervisoryNode

Method: POST

 

Example Body:

{

"code": "codenode012",

"supervisorCount": "12",

}

status: 201 created,

 

6

Create requisitionGroup entity.

Method: POST

 

Example Body:

{

"code": "newgorup01",

"name": "groupname",

}

 

status: 201 created,

 

7

Verify the possibility of Editing the requisitionGroup entity

(modify the parameter 'code')

Method: POST

 

Example Body:

{

"id": "ab8c31a8-2374-469d-948f-e4095c88c2af",

"code": "reqgroupcode01",

"name": "groupname",

}

requisitionGroup has been edited successfully.

 

 

 

 

 

Post – conditions:

OpenLMIS: the global initiative for powerful LMIS software