Adicion de nuevos escenarios en los features case scheduler, process permissions y export/import project

This commit is contained in:
Wendy Nestor
2014-06-06 09:53:05 -04:00
parent a63a72ffac
commit 2e55e21550
3 changed files with 165 additions and 3 deletions

View File

@@ -182,4 +182,26 @@ Feature: Case Scheduler Main Tests
| 10 |
| 11 |
| 12 |
| 13 |
| 13 |
#Scenario para la revision del "BUG 15040"
#Scenario Outline: Create new Projects for test create new case scheduler and allow to keep the same
# Given POST data from file "<project_template>"
# And I request "projects"
# Then the response status code should be 201
# And the response charset is "UTF-8"
# And the content type is "application/json"
# And the type is "array"
# And store "new_uid" in session array as variable "project_new_uid_<project_new_uid_number>" where an object has "object" equal to "project"
# And store "new_uid" in session array as variable "diagram_new_uid_<project_new_uid_number>" where an object has "object" equal to "diagram"
# And store "new_uid" in session array as variable "activity_new_uid_<project_new_uid_number>" where an object has "object" equal to "activity"
# And store "new_uid" in session array as variable "event_new_uid_<project_new_uid_number>" where an object has "object" equal to "event"
# And store "new_uid" in session array as variable "flow_new_uid_<project_new_uid_number>" where an object has "object" equal to "flow"
#
# Examples:
#
# | Description | project_new_uid_number | project_template |
# | Create a new process with event case scheduler | 1 | process_template_evaluation.json |
# | Create a new process with same case scheduler | 2 | process_template_parallel.json |

View File

@@ -236,4 +236,68 @@ Feature: Process Permissions Resources Tests
Given I request "project/67021149152e27240dc54d2095572343/process-permissions"
Then the response status code should be 200
And the response charset is "UTF-8"
And the response has 0 record
And the response has 0 record
#Prueba del BUG 15085, donde se pueda crear los permisos Resend para Message History
Scenario: Get a List of current Process Permissions of a project
Given I request "project/1455892245368ebeb11c1a5001393784/process-permissions"
Then the response status code should be 200
And the response charset is "UTF-8"
And the response has 1 record
Scenario Outline: Create a new Process permission in proyect "Process Complete BPMN"
Given POST this data:
"""
{
"op_case_status": "<op_case_status>",
"tas_uid": "<tas_uid>",
"op_user_relation": "<op_user_relation>",
"usr_uid": "<usr_uid>",
"op_task_source" : "<op_task_source>",
"op_participate": "<op_participate>",
"op_obj_type": "<op_obj_type>",
"dynaforms" : "<dynaforms>",
"inputs" : "<inputs>",
"outputs" : "<outputs>",
"op_action": "<op_action>"
}
"""
And I request "project/1455892245368ebeb11c1a5001393784/process-permission"
Then the response status code should be 201
And store "op_uid" in session array
And the response charset is "UTF-8"
And the content type is "application/json"
And store "op_uid" in session array as variable "op_uid_<op_number>"
Examples:
| op_number | op_case_status | tas_uid | op_user_relation| usr_uid | op_task_source | op_participate | op_obj_type | dynaforms | inputs | outputs | op_action |
| 1 | COMPLETED | | 1 | 00000000000000000000000000000001 | | 0 | MSGS_HISTORY | | | | RESEND |
Scenario: Get a List of current Process Permissions of a project
Given I request "project/1455892245368ebeb11c1a5001393784/process-permissions"
Then the response status code should be 200
And the response charset is "UTF-8"
And the response has 2 record
Scenario Outline: Delete all Process Supervisor created previously in this script
Given that I want to delete a resource with the key "op_uid" stored in session array as variable "op_uid_<op_number>"
And I request "project/1455892245368ebeb11c1a5001393784/process-permission"
And the content type is "application/json"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
Examples:
| op_number |
| 1 |
Scenario: Get a List of current Process Permissions of a project
Given I request "project/1455892245368ebeb11c1a5001393784/process-permissions"
Then the response status code should be 200
And the response charset is "UTF-8"
And the response has 1 record

View File

@@ -477,4 +477,80 @@ Scenario: Get the Case Trackers Objects of a Project
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "array"
And the response has 0 record
And the response has 0 record
#Revision del BUG xxxx, donde no permite crear un nuevo Output Document
Scenario Outline: Create 17 new Output Documents
Given POST this data:
"""
{
"out_doc_title": "Output Document",
"out_doc_description": "",
"out_doc_filename": "Output Document",
"out_doc_template": "Example",
"out_doc_report_generator": "TCPDF",
"out_doc_landscape": "1",
"out_doc_media": "Letter",
"out_doc_left_margin": "30",
"out_doc_right_margin": "30",
"out_doc_top_margin": "30",
"out_doc_bottom_margin": "30",
"out_doc_generate": "DOC",
"out_doc_type": "HTML",
"out_doc_versioning": "0",
"out_doc_destination_path": "",
"out_doc_tags": "",
"out_doc_pdf_security_enabled": "0",
"out_doc_pdf_security_open_password": "",
"out_doc_pdf_security_owner_password": "",
"out_doc_pdf_security_permissions": ""
}
"""
And I request "project/5195971265375127fce82f4015927137/output-document"
Then the response status code should be 201
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "object"
And store "out_doc_uid" in session array as variable "out_doc_uid_<out_doc_number>"
Examples:
| test_description | out_doc_number |
| Create new output document with same name in other proyect | 1 |
Scenario: Get the Output Documents List when there are exactly zero output documents
Given I request "project/5195971265375127fce82f4015927137/output-documents" with the key "prj_uid" stored in session array
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "array"
And the response has 1 records
And that "out_doc_title" is set to "Output Document"
And that "out_doc_filename" is set to "Output Document"
Scenario Outline: Delete Output documents created previously in this script
Given that I want to delete a resource with the key "out_doc_uid" stored in session array as variable "out_doc_uid_<out_doc_number>"
And I request "project/5195971265375127fce82f4015927137/output-document"
And the content type is "application/json"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
Examples:
| out_doc_number |
| 1 |
Scenario: Get the Output Documents List when there are exactly zero output documents
Given I request "project/5195971265375127fce82f4015927137/output-documents" with the key "prj_uid" stored in session array
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "array"
And the response has 0 records
#Culminacion del BUG xxxx, donde no permite crear un nuevo Output Document en otro proyecto