Arreglos y modificaciones a los features output document case, output document, process supervisor, project y web entry

This commit is contained in:
Wendy Nestor
2014-05-05 16:31:42 -04:00
parent 87f46cc757
commit 5361a3e9bd
4 changed files with 610 additions and 198 deletions

View File

@@ -10,10 +10,10 @@ Background:
Scenario Outline: Pull information of an inexistent output document. should return an error Scenario Outline: Pull information of an inexistent output document. should return an error
Given I request "cases/64654381053382b8bb4c415067063003/output-document/<output-document>" Given I request "cases/64654381053382b8bb4c415067063003/output-document/<output-document>"
Then the response status code should be 400 Then the response status code should be 400
And the response charset is "UTF-8" And the response charset is "app_doc_uid"
And the type is "array" And the type is "array"
Examples: Examples:
| test_description | output-document | app_doc_uid | app_doc_filename | doc_uid | app_doc_version | app_doc_create_date | app_doc_create_user | app_doc_type | app_doc_index | app_doc_link | | test_description | output-document | app_doc_uid | app_doc_filename | doc_uid | app_doc_version | app_doc_create_date | app_doc_create_user | app_doc_type | app_doc_index | app_doc_link |
| Get Input "Desert.jpg" | 6075490825331a1c5eebff9015468244 | 6075490825331a1c5eebff9015468244 | Desert.jpg | 68671480353319e5e1dee74089764900 | 1 | 2014-03-25 11:33:25 | , Administrator (admin) | OUTPUT | 1 | cases/cases_ShowDocument?a=6075490825331a1c5eebff9015468244&v=1 | | Get Input "Desert.jpg" | 6075490825eebff9015468244 | 6075490825331a1c5eebff9015468244 | Desert.jpg | 68671480353319e5e1dee74089764900 | 1 | 2014-03-25 11:33:25 | , Administrator (admin) | OUTPUT | 1 | cases/cases_ShowDocument?a=6075490825331a1c5eebff9015468244&v=1 |

View File

@@ -120,7 +120,7 @@ Feature: Output Documents Main Tests
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the content type is "application/json" And the content type is "application/json"
And the type is "array" And the type is "array"
And the response has 19 records And the response has 17 records
Scenario Outline: Update the Output Documents and then check if the values had changed Scenario Outline: Update the Output Documents and then check if the values had changed

View File

@@ -31,7 +31,7 @@ Requirements:
Examples: Examples:
| test_description | project | records | | test_description | project | records |
| List users and groups available to be supervisors | 85794888452ceeef3675164057928956 | 21 | | List users and groups available to be supervisors | 85794888452ceeef3675164057928956 | 3 |
Scenario Outline: Get a List of available groups process supervisor of a project Scenario Outline: Get a List of available groups process supervisor of a project
@@ -44,7 +44,7 @@ Requirements:
Examples: Examples:
| test_description | project | records | | test_description | project | records |
| List the 23 groups available to be supervisors | 85794888452ceeef3675164057928956 | 19 | | List the 23 groups available to be supervisors | 85794888452ceeef3675164057928956 | 1 |
Scenario Outline: Get a List of available users elegible as process supervisor Scenario Outline: Get a List of available users elegible as process supervisor

View File

@@ -47,8 +47,6 @@ Scenario Outline: Create new Projects
| Create a new process with sequencial derivation | 5 | process_template_sequencial.json | | Create a new process with sequencial derivation | 5 | process_template_sequencial.json |
Scenario: Get a list of projects Scenario: Get a list of projects
Given I request "project" Given I request "project"
Then the response status code should be 200 Then the response status code should be 200
@@ -60,195 +58,609 @@ Scenario: Get a list of projects
Scenario Outline: Update the Projects and then check if the values had changed Scenario Outline: Update the Projects and then check if the values had changed
Given PUT this data: Given PUT this data:
""" """
{ {
"prj_name": "Update Prueba New Project", "prj_uid": "9688010085366dc14aef705082114067",
"prj_description": "Update New Project, created of this script", "prj_name": "Update Evaluation",
"prj_target_namespace": "sample", "prj_description": "Update",
"prj_expresion_language": null, "prj_target_namespace": "",
"prj_type_language": null, "prj_expresion_language": null,
"prj_exporter": null, "prj_type_language": null,
"prj_exporter_version": null, "prj_exporter": null,
"prj_create_date": "2014-04-28 11:01:54", "prj_exporter_version": null,
"prj_update_date": "2014-04-30 08:46:17", "prj_create_date": "2014-04-30 11:06:31",
"prj_author": "00000000000000000000000000000001", "prj_update_date": "2014-05-04 20:53:33",
"prj_author_version": null, "prj_author": "00000000000000000000000000000001",
"prj_original_source": null, "prj_author_version": null,
"diagrams": [ "prj_original_source": null,
{ "diagrams": [
"dia_uid": "956446767534fece3179b54016939905", {
"prj_uid": "655001588534fece2d46f86033751389", "dia_uid": "3003875385366dc14bebbe8075027536",
"dia_name": "Prueba", "prj_uid": "9688010085366dc14aef705082114067",
"dia_is_closable": 0, "dia_name": "Evaluation",
"pro_uid": "736054291534fece3342096012897456", "dia_is_closable": 0,
"activities": [ "pro_uid": "2488875965366dc14c0c471041853683",
{ "activities": [
"act_uid": "569214945534fecfa8f0835033274864", {
"act_name": "Task # 1", "act_uid": "1619403425366dd1f8bda80020442132",
"act_type": "TASK", "act_name": "Task # 2",
"act_is_for_compensation": "0", "act_type": "TASK",
"act_start_quantity": "1", "act_is_for_compensation": "0",
"act_completion_quantity": "0", "act_start_quantity": "1",
"act_task_type": "EMPTY", "act_completion_quantity": "0",
"act_implementation": "", "act_task_type": "EMPTY",
"act_instantiate": "0", "act_implementation": "",
"act_script_type": "", "act_instantiate": "0",
"act_script": "", "act_script_type": "",
"act_loop_type": "NONE", "act_script": "",
"act_test_before": "0", "act_loop_type": "NONE",
"act_loop_maximum": "0", "act_test_before": "0",
"act_loop_condition": "0", "act_loop_maximum": "0",
"act_loop_cardinality": "0", "act_loop_condition": "0",
"act_loop_behavior": "0", "act_loop_cardinality": "0",
"act_is_adhoc": "0", "act_loop_behavior": "0",
"act_is_collapsed": "0", "act_is_adhoc": "0",
"act_completion_condition": "0", "act_is_collapsed": "0",
"act_ordering": "0", "act_completion_condition": "0",
"act_cancel_remaining_instances": "0", "act_ordering": "0",
"act_protocol": "0", "act_cancel_remaining_instances": "0",
"act_method": "0", "act_protocol": "0",
"act_is_global": "0", "act_method": "0",
"act_referer": "0", "act_is_global": "0",
"act_default_flow": "0", "act_referer": "0",
"act_master_diagram": "0", "act_default_flow": "0",
"bou_x": "486", "act_master_diagram": "0",
"bou_y": "101", "bou_x": "600",
"bou_width": "161", "bou_y": "266",
"bou_height": "42", "bou_width": "160",
"bou_container": "bpmnDiagram" "bou_height": "40",
} "bou_container": "bpmnDiagram"
], },
"events": [ {
{ "act_uid": "5375356535366dd1f816015034557419",
"evn_uid": "259220802534fecfad49854013091940", "act_name": "Task # 1",
"evn_name": "Start # 1", "act_type": "TASK",
"evn_type": "START", "act_is_for_compensation": "0",
"evn_marker": "MESSAGE", "act_start_quantity": "1",
"evn_is_interrupting": "1", "act_completion_quantity": "0",
"evn_cancel_activity": "0", "act_task_type": "EMPTY",
"evn_activity_ref": null, "act_implementation": "",
"evn_wait_for_completion": "0", "act_instantiate": "0",
"evn_error_name": null, "act_script_type": "",
"evn_error_code": null, "act_script": "",
"evn_escalation_name": null, "act_loop_type": "NONE",
"evn_escalation_code": null, "act_test_before": "0",
"evn_message": "LEAD", "act_loop_maximum": "0",
"evn_operation_name": null, "act_loop_condition": "0",
"evn_operation_implementation_ref": null, "act_loop_cardinality": "0",
"evn_time_date": null, "act_loop_behavior": "0",
"evn_time_cycle": null, "act_is_adhoc": "0",
"evn_time_duration": null, "act_is_collapsed": "0",
"evn_behavior": "CATCH", "act_completion_condition": "0",
"bou_x": "517", "act_ordering": "0",
"bou_y": "19", "act_cancel_remaining_instances": "0",
"bou_width": "33", "act_protocol": "0",
"bou_height": "33", "act_method": "0",
"bou_container": "bpmnDiagram" "act_is_global": "0",
}, "act_referer": "0",
{ "act_default_flow": "0",
"evn_uid": "856003291534fecfae5dff7085708495", "act_master_diagram": "0",
"evn_name": "End # 1", "bou_x": "600",
"evn_type": "END", "bou_y": "135",
"evn_marker": "EMPTY", "bou_width": "160",
"evn_is_interrupting": "1", "bou_height": "40",
"evn_cancel_activity": "0", "bou_container": "bpmnDiagram"
"evn_activity_ref": null, },
"evn_wait_for_completion": "0", {
"evn_error_name": null, "act_uid": "6269797175366e081391de1031612281",
"evn_error_code": null, "act_name": "Task # 3",
"evn_escalation_name": null, "act_type": "TASK",
"evn_escalation_code": null, "act_is_for_compensation": "0",
"evn_message": "", "act_start_quantity": "1",
"evn_operation_name": null, "act_completion_quantity": "0",
"evn_operation_implementation_ref": null, "act_task_type": "EMPTY",
"evn_time_date": null, "act_implementation": "",
"evn_time_cycle": null, "act_instantiate": "0",
"evn_time_duration": null, "act_script_type": "",
"evn_behavior": "THROW", "act_script": "",
"bou_x": "549", "act_loop_type": "NONE",
"bou_y": "181", "act_test_before": "0",
"bou_width": "33", "act_loop_maximum": "0",
"bou_height": "33", "act_loop_condition": "0",
"bou_container": "bpmnDiagram" "act_loop_cardinality": "0",
} "act_loop_behavior": "0",
], "act_is_adhoc": "0",
"gateways": [], "act_is_collapsed": "0",
"flows": [ "act_completion_condition": "0",
{ "act_ordering": "0",
"flo_uid": "17092374253551306216a72013534569", "act_cancel_remaining_instances": "1",
"flo_type": "SEQUENCE", "act_protocol": "0",
"flo_name": null, "act_method": "0",
"flo_element_origin": "569214945534fecfa8f0835033274864", "act_is_global": "0",
"flo_element_origin_type": "bpmnActivity", "act_referer": "0",
"flo_element_dest": "856003291534fecfae5dff7085708495", "act_default_flow": "0",
"flo_element_dest_type": "bpmnEvent", "act_master_diagram": "0",
"flo_is_inmediate": "1", "bou_x": "600",
"flo_condition": null, "bou_y": "371",
"flo_x1": "561", "bou_width": "160",
"flo_y1": "193", "bou_height": "40",
"flo_x2": "577", "bou_container": "bpmnDiagram"
"flo_y2": "193", },
"flo_state": [ {
{ "act_uid": "8394925175366dc14dd60b7026210369",
"x": 566, "act_name": "Init",
"y": 145 "act_type": "TASK",
}, "act_is_for_compensation": "0",
{ "act_start_quantity": "1",
"x": 566, "act_completion_quantity": "0",
"y": 171 "act_task_type": "EMPTY",
}, "act_implementation": "",
{ "act_instantiate": "0",
"x": 602, "act_script_type": "",
"y": 171 "act_script": "",
}, "act_loop_type": "NONE",
{ "act_test_before": "0",
"x": 602, "act_loop_maximum": "0",
"y": 198 "act_loop_condition": "0",
}, "act_loop_cardinality": "0",
{ "act_loop_behavior": "0",
"x": 582, "act_is_adhoc": "0",
"y": 198 "act_is_collapsed": "0",
} "act_completion_condition": "0",
] "act_ordering": "0",
}, "act_cancel_remaining_instances": "0",
{ "act_protocol": "0",
"flo_uid": "304762728534fecfaf3bf88040991913", "act_method": "0",
"flo_type": "SEQUENCE", "act_is_global": "0",
"flo_name": null, "act_referer": "0",
"flo_element_origin": "259220802534fecfad49854013091940", "act_default_flow": "0",
"flo_element_origin_type": "bpmnEvent", "act_master_diagram": "0",
"flo_element_dest": "569214945534fecfa8f0835033274864", "bou_x": "185",
"flo_element_dest_type": "bpmnActivity", "bou_y": "303",
"flo_is_inmediate": "1", "bou_width": "160",
"flo_condition": null, "bou_height": "40",
"flo_x1": "529", "bou_container": "bpmnDiagram"
"flo_y1": "95", },
"flo_x2": "556", {
"flo_y2": "95", "act_uid": "9866636695366e0953c3167018893583",
"flo_state": [ "act_name": "Task # 4",
{ "act_type": "TASK",
"x": 534, "act_is_for_compensation": "0",
"y": 52 "act_start_quantity": "1",
}, "act_completion_quantity": "0",
{ "act_task_type": "EMPTY",
"x": 534, "act_implementation": "",
"y": 76 "act_instantiate": "0",
}, "act_script_type": "",
{ "act_script": "",
"x": 561, "act_loop_type": "NONE",
"y": 76 "act_test_before": "0",
}, "act_loop_maximum": "0",
{ "act_loop_condition": "0",
"x": 561, "act_loop_cardinality": "0",
"y": 100 "act_loop_behavior": "0",
} "act_is_adhoc": "0",
] "act_is_collapsed": "0",
} "act_completion_condition": "0",
], "act_ordering": "0",
"artifacts": [], "act_cancel_remaining_instances": "1",
"laneset": [], "act_protocol": "0",
"lanes": [] "act_method": "0",
} "act_is_global": "0",
] "act_referer": "0",
"act_default_flow": "0",
"act_master_diagram": "0",
"bou_x": "600",
"bou_y": "494",
"bou_width": "160",
"bou_height": "40",
"bou_container": "bpmnDiagram"
}
],
"events": [
{
"evn_uid": "3221094345366dd9d3efe16091256827",
"evn_name": "End # 1",
"evn_type": "END",
"evn_marker": "EMPTY",
"evn_is_interrupting": "1",
"evn_cancel_activity": "0",
"evn_activity_ref": null,
"evn_wait_for_completion": "0",
"evn_error_name": null,
"evn_error_code": null,
"evn_escalation_name": null,
"evn_escalation_code": null,
"evn_message": "",
"evn_operation_implementation_ref": null,
"evn_time_date": null,
"evn_time_cycle": null,
"evn_time_duration": null,
"evn_behavior": "THROW",
"evn_operation_name": null,
"bou_x": "1036",
"bou_y": "289",
"bou_width": "33",
"bou_height": "33",
"bou_container": "bpmnDiagram"
},
{
"evn_uid": "9447601725366dc15043ad0024735511",
"evn_name": "Start # 1",
"evn_type": "START",
"evn_marker": "EMPTY",
"evn_is_interrupting": "1",
"evn_cancel_activity": "0",
"evn_activity_ref": null,
"evn_wait_for_completion": "0",
"evn_error_name": null,
"evn_error_code": null,
"evn_escalation_name": null,
"evn_escalation_code": null,
"evn_message": "LEAD",
"evn_operation_implementation_ref": null,
"evn_time_date": null,
"evn_time_cycle": null,
"evn_time_duration": null,
"evn_behavior": "CATCH",
"evn_operation_name": null,
"bou_x": "39",
"bou_y": "110",
"bou_width": "33",
"bou_height": "33",
"bou_container": "bpmnDiagram"
}
],
"gateways": [
{
"gat_uid": "9472376585366dd4d4ae680099737909",
"gat_name": "undefined # 1",
"gat_type": "EXCLUSIVE",
"gat_direction": "DIVERGING",
"gat_instantiate": "0",
"gat_activation_count": "0",
"gat_waiting_for_start": "1",
"gat_default_flow": "0",
"gat_event_gateway_type": "NONE",
"bou_x": "448",
"bou_y": "306",
"bou_width": "33",
"bou_height": "33",
"bou_container": "bpmnDiagram"
}
],
"flows": [
{
"flo_uid": "1074287855366e0a96d8fc2003748943",
"flo_type": "SEQUENCE",
"flo_name": null,
"flo_element_origin": "1619403425366dd1f8bda80020442132",
"flo_element_origin_type": "bpmnActivity",
"flo_element_dest": "3221094345366dd9d3efe16091256827",
"flo_element_dest_type": "bpmnEvent",
"flo_is_inmediate": "1",
"flo_condition": null,
"flo_x1": "757",
"flo_y1": "301",
"flo_x2": "1031",
"flo_y2": "301",
"flo_state": [
{
"x": 762,
"y": 286
},
{
"x": 899,
"y": 286
},
{
"x": 899,
"y": 306
},
{
"x": 1036,
"y": 306
}
]
},
{
"flo_uid": "1755653195366dd9d46d199052813244",
"flo_type": "SEQUENCE",
"flo_name": null,
"flo_element_origin": "5375356535366dd1f816015034557419",
"flo_element_origin_type": "bpmnActivity",
"flo_element_dest": "3221094345366dd9d3efe16091256827",
"flo_element_dest_type": "bpmnEvent",
"flo_is_inmediate": "1",
"flo_condition": null,
"flo_x1": "757",
"flo_y1": "301",
"flo_x2": "1031",
"flo_y2": "301",
"flo_state": [
{
"x": 762,
"y": 155
},
{
"x": 899,
"y": 155
},
{
"x": 899,
"y": 306
},
{
"x": 1036,
"y": 306
}
]
},
{
"flo_uid": "2757982485366dd614a1d97067354901",
"flo_type": "SEQUENCE",
"flo_name": null,
"flo_element_origin": "9472376585366dd4d4ae680099737909",
"flo_element_origin_type": "bpmnGateway",
"flo_element_dest": "5375356535366dd1f816015034557419",
"flo_element_dest_type": "bpmnActivity",
"flo_is_inmediate": "1",
"flo_condition": "(@@Condicion1 == \"1\") && (@@Condicion2==\"1\")",
"flo_x1": "476",
"flo_y1": "150",
"flo_x2": "594",
"flo_y2": "150",
"flo_state": [
{
"x": 481,
"y": 323
},
{
"x": 540,
"y": 323
},
{
"x": 540,
"y": 155
},
{
"x": 599,
"y": 155
}
]
},
{
"flo_uid": "6590341985366dd614a5a25055473196",
"flo_type": "SEQUENCE",
"flo_name": null,
"flo_element_origin": "9472376585366dd4d4ae680099737909",
"flo_element_origin_type": "bpmnGateway",
"flo_element_dest": "1619403425366dd1f8bda80020442132",
"flo_element_dest_type": "bpmnActivity",
"flo_is_inmediate": "1",
"flo_condition": "(@@Condicion1 == \"1\") || (@@Condicion2==\"1\")",
"flo_x1": "476",
"flo_y1": "281",
"flo_x2": "594",
"flo_y2": "281",
"flo_state": [
{
"x": 481,
"y": 323
},
{
"x": 540,
"y": 323
},
{
"x": 540,
"y": 286
},
{
"x": 599,
"y": 286
}
]
},
{
"flo_uid": "7028178785366dc15100a66037830659",
"flo_type": "SEQUENCE",
"flo_name": null,
"flo_element_origin": "9447601725366dc15043ad0024735511",
"flo_element_origin_type": "bpmnEvent",
"flo_element_dest": "8394925175366dc14dd60b7026210369",
"flo_element_dest_type": "bpmnActivity",
"flo_is_inmediate": "1",
"flo_condition": null,
"flo_x1": "51",
"flo_y1": "318",
"flo_x2": "179",
"flo_y2": "318",
"flo_state": [
{
"x": 56,
"y": 143
},
{
"x": 56,
"y": 326
},
{
"x": 184,
"y": 326
}
]
},
{
"flo_uid": "7235004365366e10d8a11f2035193862",
"flo_type": "SEQUENCE",
"flo_name": null,
"flo_element_origin": "9472376585366dd4d4ae680099737909",
"flo_element_origin_type": "bpmnGateway",
"flo_element_dest": "9866636695366e0953c3167018893583",
"flo_element_dest_type": "bpmnActivity",
"flo_is_inmediate": "1",
"flo_condition": "(@@Condicion1 == \"0\") || (@@Condicion2==\"0\")",
"flo_x1": "476",
"flo_y1": "509",
"flo_x2": "594",
"flo_y2": "509",
"flo_state": [
{
"x": 481,
"y": 323
},
{
"x": 540,
"y": 323
},
{
"x": 540,
"y": 514
},
{
"x": 599,
"y": 514
}
]
},
{
"flo_uid": "7584411255366dd4d53ca74069616451",
"flo_type": "SEQUENCE",
"flo_name": null,
"flo_element_origin": "8394925175366dc14dd60b7026210369",
"flo_element_origin_type": "bpmnActivity",
"flo_element_dest": "9472376585366dd4d4ae680099737909",
"flo_element_dest_type": "bpmnGateway",
"flo_is_inmediate": "1",
"flo_condition": null,
"flo_x1": "342",
"flo_y1": "318",
"flo_x2": "443",
"flo_y2": "318",
"flo_state": [
{
"x": 347,
"y": 326
},
{
"x": 397,
"y": 326
},
{
"x": 397,
"y": 323
},
{
"x": 448,
"y": 323
}
]
},
{
"flo_uid": "8187409105366e0a96dc893029492430",
"flo_type": "SEQUENCE",
"flo_name": null,
"flo_element_origin": "6269797175366e081391de1031612281",
"flo_element_origin_type": "bpmnActivity",
"flo_element_dest": "3221094345366dd9d3efe16091256827",
"flo_element_dest_type": "bpmnEvent",
"flo_is_inmediate": "1",
"flo_condition": null,
"flo_x1": "757",
"flo_y1": "301",
"flo_x2": "1031",
"flo_y2": "301",
"flo_state": [
{
"x": 762,
"y": 391
},
{
"x": 899,
"y": 391
},
{
"x": 899,
"y": 306
},
{
"x": 1036,
"y": 306
}
]
},
{
"flo_uid": "9756728125366e0a96dfff7029306012",
"flo_type": "SEQUENCE",
"flo_name": null,
"flo_element_origin": "9866636695366e0953c3167018893583",
"flo_element_origin_type": "bpmnActivity",
"flo_element_dest": "3221094345366dd9d3efe16091256827",
"flo_element_dest_type": "bpmnEvent",
"flo_is_inmediate": "1",
"flo_condition": null,
"flo_x1": "757",
"flo_y1": "301",
"flo_x2": "1031",
"flo_y2": "301",
"flo_state": [
{
"x": 762,
"y": 514
},
{
"x": 899,
"y": 514
},
{
"x": 899,
"y": 306
},
{
"x": 1036,
"y": 306
}
]
},
{
"flo_uid": "9868876955366e10d89d5e0049466887",
"flo_type": "SEQUENCE",
"flo_name": null,
"flo_element_origin": "9472376585366dd4d4ae680099737909",
"flo_element_origin_type": "bpmnGateway",
"flo_element_dest": "6269797175366e081391de1031612281",
"flo_element_dest_type": "bpmnActivity",
"flo_is_inmediate": "1",
"flo_condition": "(@@Condicion1 == \"0\") && (@@Condicion2==\"0\")",
"flo_x1": "481",
"flo_y1": "386",
"flo_x2": "589",
"flo_y2": "386",
"flo_state": [
{
"x": 481,
"y": 323
},
{
"x": 540,
"y": 323
},
{
"x": 540,
"y": 391
},
{
"x": 599,
"y": 391
}
]
}
],
"artifacts": [],
"laneset": [],
"lanes": []
}
]
} }
""" """
And that I want to update a resource with the key "new_uid" stored in session array as variable "project_new_uid_<project_new_uid_number>" in position 0 And that I want to update a resource with the key "new_uid" stored in session array as variable "project_new_uid_<project_new_uid_number>" in position 0
@@ -270,8 +682,8 @@ Scenario Outline: Get definition of a project
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the content type is "application/json" And the content type is "application/json"
And the type is "object" And the type is "object"
And that "prj_name" is set to "Update Prueba New Project" And that "prj_name" is set to "Update Evaluation"
And that "prj_description" is set to "Update New Project, created of this script" And that "prj_description" is set to "Update"
Examples: Examples: