786: Display/Hide columns attributes on the requisition form
Test Case #:786
Test Case Name: Display/Hide columns attributes on the requisition form | |
System: OpenLMIS | Subsystem: requisition |
Test case designed by: Lucyna Kwidzińska | Design Date:15.07.2016 |
Short description: Possibility to configure the requisition form to either display or hide column 'attributes' |
|
Pre – conditions: |
Step | Action | Expected system response | Comment |
1 | Create program entity. Method: Post Body: { "code": "newcodetest", "skippable": "true" }
| Status: 201 created, program id: "http://localhost:8080/api/programs/c1ba0445-e856-429a-a1c2-46ec6e31bd3e" | |
2 | Create RequisitionTemplate entity. Method: Post Body: { 46ec6e31bd3e", "columnsMap": {"columnKey": { "name": "newnametest", "label": "label2132", "displayOrder": "5", "isDisplayed": "true", "isDisplayRequired": "true", "canChangeOrder": "true", "source": "reference data" } | Status: 201 created,
requisition template id: "http://localhost:8080/api/requisitionTemplates/71bf3ec9-db08-4dc6-bd91-a880cfb20a20" |
|
3 | Change the isDisplayed value in the RequisitionTemplateColumn. Method: Post Body: { "id": "71bf3ec9-db08-4dc6-bd91-a880cfb20a20", 46ec6e31bd3e", "columnsMap": {"columnKey": { "name": "newnametest", "label": "label2132", "displayOrder": "5", "isDisplayed": "false", "isDisplayRequired": "true", "canChangeOrder": "true", "source": "reference data" } } } | Status: 201 created, The 'isDisplayed' value should be changed.
|
|
4 |
|
Post – conditions: |
OpenLMIS: the global initiative for powerful LMIS software