OLMIS-230 Edit Program code and name.

Test Case #:230

Test Case Name: Edit Program code and name.

System: OpenLMIS

Subsystem:Requisition

Test case designed by: Piotr Żurawski

Design Date:25.07.2016

Short description: Check possibility to Edit Program code and name

                                                                                                                                                   

Pre – conditions:

                                                                                                                                                                                                      

 

 

Step

Action

Expected system response

Comment

1

Create Program:

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

Method: POST

Body:{

"code":"programCode",
"name":"programName"
}

{
"code": "programCode",
"name": "programName",
"description": null,
"active": null,
"periodsSkippable": false,
"showNonFullSupplyTab": null,
"_links": {
"self": {
"href": "http://localhost:8080/api/programs/2a2f3259-b517-4518-b3c4-63b2c8398eca"
},
"program": {
"href": "http://localhost:8080/api/programs/2a2f3259-b517-4518-b3c4-63b2c8398eca"
}
}
}

 

2

Update Program code and name:

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

Method: POST

Body:

{
"id":"2a2f3259-b517-4518-b3c4-63b2c8398eca",
"code":"programCodee",
"name":"programNamee"
}

{
"id": "2a2f3259-b517-4518-b3c4-63b2c8398eca",
"code": "programCodee",
"name": "programNamee",
"description": null,
"active": null,
"periodsSkippable": false,
"showNonFullSupplyTab": null
}

 

Post – conditions:        

OpenLMIS: the global initiative for powerful LMIS software