422: Create and edit a schedule

Test Case #: 422

Test Case Name: Create and edit a schedule

System: OpenLMIS

Subsystem: Requisition

Test case designed by: Anna Czyrko

Design Date:25.07.2016

Short description

Verify that:

  • an Admin user can add a new schedule associated with a specific program
  • an Admin user can edit an existing schedule
  • an Admin can see a list of schedules defined in the system
  • an admin must input a code, name associated with the schedule
  • an admin has the option to put in a description associated with the code and name
  • the system logs the date of creation/modification
  • a schedule's code and name are required to be non-empty and unique (per field, not the combination)

                                                                                                                                                   

Pre – conditions:

                                                                                                                                                                                                                                                       

 

 

Step

Action

Expected system response

Comment

1

Create Schedule entity.

URL: http://localhost:8080/api/schedules

Method: POST

Example Body:

{

"code": "test3",

"name": "test3"

}

 
2

Edit existing Schedule entity.

URL: http://localhost:8080/api/schedules

Method: PUT

Example Body:

{

"code": "test3",

"name": "test4"

}

 

 

Post – conditions:

                                                                                                                   

OpenLMIS: the global initiative for powerful LMIS software