/
OLMIS-230 Edit Program code and name.

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:        

Related content

OLMIS-387 : Create a Program.
OLMIS-387 : Create a Program.
More like this
OLMIS-386 : Create a requisition template for a program.
OLMIS-386 : Create a requisition template for a program.
More like this
817: Rename column headers/attributes
817: Rename column headers/attributes
More like this
381: Configure Stock Adjustment Reason by Program
381: Configure Stock Adjustment Reason by Program
More like this
429: Facility approved products
429: Facility approved products
More like this
810: Configure product code attribute
810: Configure product code attribute
More like this

OpenLMIS: the global initiative for powerful LMIS software