/
997: Associate non-emergency requisitions with the proper period

997: Associate non-emergency requisitions with the proper period

Test Case #: 997

Test Case Name: Associate non-emergency requisitions with the proper period

System: OpenLMIS

Subsystem: blue

Test case designed by: Anna Czyrko

Design Date:10.11.2016

Short description

Verify that:

  • Regular requisitions are created for the oldest processing-period for which a requisition has not already been created (Note that the “/logistics/periods” endpoint in OpenLMIS v2.0 is defined within RequisitionController.java, and determines which period are displayed on the Requisitions -> Create/Authorize page.)
  • It is possible to filter periods by facility, program, type and date (only periods after given date)
  • we can only use the oldest period which is not associated with any requisition
  • period should be validated. When an earlier requisition was not processed, requisition for next periods cannot be created
  • period for the requisition must belong to a schedule that belongs to the program selected for that requisition

Pre – conditions:

                                                                                                                                                                                                                                                       

Step

Action

Expected system response

Comment

1

                                                                                                                         Create RequisitionGroupProgramSchedule with appropriate program, facility and schedule.


                                                                                                                            

                                                 

2

Create a Requisition with some Period belonging to Scheduled created earlier RequisitionGroupProgramSchedule, program and facility (also with RequisitionGroupProgramSchedule)




It should pass.

3

You make the Requisition with Period, whose schedule is different than createdRequisitionGroupProgramSchedule

Expected result: fail

4




5




Related content

1140: Create regular requisition for period from Initialize Requisition screen
1140: Create regular requisition for period from Initialize Requisition screen
More like this
1077: Associate emergency requisitions with a processing period
1077: Associate emergency requisitions with a processing period
More like this
1004: UI: Initiate a requisition for "My Facilities"
1004: UI: Initiate a requisition for "My Facilities"
More like this
1569: Update dates in demo data for services and contract tests
1569: Update dates in demo data for services and contract tests
More like this
218: Skip a requisition period
218: Skip a requisition period
More like this
1156: RequisitionLineCalculationService initiate beginning balance gets wrong previous period
1156: RequisitionLineCalculationService initiate beginning balance gets wrong previous period
More like this

OpenLMIS: the global initiative for powerful LMIS software