Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Test Case #:229

 

Test Case Name: View requisitions based on selected facility, program, and date filters

System: OpenLMIS

Subsystem: requisition

Test case designed by: Lucyna Kwidzińska

Design Date:19.07.2016

Short description: Allows user to view requisitions based on selected facility, program, and date filters

                                                                                                                                                   

Pre – conditions:

 

 

Step

Action

Expected system response

Comment

1

                                                                          
                 

Create Schedule.   

  
URL:
Method: POST
Example Body:
{
"code": "codetestowy",
"description": "desctestowy",
"modifiedDate": "2016-07-17T13:14:38.910",
"name": "namenametestowy"
}
                                                                                                                           
                                                                                                                            

Status: 201 created,     

schedule id: "http://localhost:8080/api/schedules/eb7b985d-f867-489a-b1bc-3f459bd77f17"           

                                                 

2

  

 

3

  

 

4

  

 

5

   

6

  

 

7

  

 

8

                                                 

Create Period.
Method: POST
Example Body:
{
"processingSchedule": {
"id": "eb7b985d-f867-489a-b1bc-3f459bd77f17",
"code": "testcodetest23",
"description": "testdescription2",
"name": "testnametest2",
"modifiedDate": "2016-07-19T08:04:18.910"
},
"name": "schedulenew2",
"description": "desctest",
"startDate": "2016-07-19",
"endDate": "2016-07-20"
}

Status: 201 created,     

period id: „6db9916e-eb94-4bcc-be5e-05e7fd7a842a”

 

3

Create program.
Method: POST
Example Body:
{
"code": "programmtest",
"name": "programname",
"periodsSkippable": "true"
}
Status: 201 created,
 program id: "
"

 

4

Create geographicLevel.
Method: POST
Example Body:
{
"code": "codelevel",
"name": "namelevel",
"levelNumber": "12"
}
Status: 201 created,
 
geographicLevel id: "
ab9feacba774
"

 

5

Create geographicZone.
Method: POST
Example Body:
{
"code": "codezone999",
ab9feacba774"
}
Status: 201 created,
 geographicZone id: "
471632800c8f
"
 

6

Create FacilityType.
URL:
Method: POST
Example Body:
{
"code": "facilicode",
"name": "facilitest"
}
Status: 201 created,
 facilityType id: "

 

7

Create Facility.
URL:
Method: POST
Example Body:
{
"code": "codefacilytestowy",
440b-9a9d-471632800c8f",
9d8a901e2adc",
"active": "true",
"enabled": "true"
}
Status: 201 created,
 facility id: "
"

 

9Create Requisition entity.
Method: POST
Example Body:
{
"createdDate": "2016-07-19T14:04:38.910",
f0bc26d27fff",
c3f9bea788d0",
05e7fd7a842a",
"status": "INITIATED"
}

Requisition should be created successfully.

 

Image Added

 
9       View the requisition based on facility, program, dates (test endpoint
{program, facility, startDate, endDate})
b322-f0bc26d27fff&program=1907e060-5aa1-4e6c-8dd8-
c3f9bea788d0&startDate=2016-07-19&endDate= 2016-07-20
Method: GET
                                   

Image Added

 

 

 

Post – conditions: