OLMIS-387 : Create a Program.

Test Case #:387

Test Case Name: Create a Program.

System: OpenLMIS

Subsystem:Requisition

Test case designed by: Piotr Żurawski

Design Date:25.07.2016

Short description: Check possibility to create Program.

                                                                                                                                                   

Pre – conditions:

                                                                                                                                                                                                      

 

 

Step

Action

Expected system response

Comment

1

Create Program only with code:

URL: http://localhost:8080/api/programs

Method: POST

Body:{

"code":"code",
}

{
"code": "Code",
"name": null,
"description": null,
"active": null,
"periodsSkippable": false,
"showNonFullSupplyTab": null,
"_links": {
"self": {
"href": "http://localhost:8080/api/programs/b441d350-5f2a-4fcc-882c-785d6a34e4ad"
},
"program": {
"href": "http://localhost:8080/api/programs/b441d350-5f2a-4fcc-882c-785d6a34e4ad"
}
}
}

 

2

Create Program with code, name, description,active:

URL: http://localhost:8080/api/programs

Method: POST

Body:

{
"code":"Codee",
"name":"programName",
"description":"programDescription",
"active":false
}

{
"code": "Codee",
"name": "programName",
"description": "programDescription",
"active": false,
"periodsSkippable": false,
"showNonFullSupplyTab": null,
"_links": {
"self": {
"href": "http://localhost:8080/api/programs/508394a2-401d-4d1c-aec9-f47f5aaf9367"
},
"program": {
"href": "http://localhost:8080/api/programs/508394a2-401d-4d1c-aec9-f47f5aaf9367"
}
}
}

 

Post – conditions:        

OpenLMIS: the global initiative for powerful LMIS software