From 8130dfdedee197b39aeb379a4941f63c71040f13 Mon Sep 17 00:00:00 2001 From: Wendy Nestor Date: Tue, 24 Jun 2014 14:53:03 -0400 Subject: [PATCH] Arreglos en scenarios debido a validaciones en los features category, assignee y case scheduler --- .../category/basic_sequence_category.feature | 2 +- .../category/main_tests_category.feature | 6 +- .../assignee/main_tests_assignee.feature | 14 ++-- .../main_tests_case_scheduler.feature | 77 ++++++++++++------- 4 files changed, 58 insertions(+), 41 deletions(-) diff --git a/features/backend/admin_setup/category/basic_sequence_category.feature b/features/backend/admin_setup/category/basic_sequence_category.feature index 0da51b936..1957bbdcc 100644 --- a/features/backend/admin_setup/category/basic_sequence_category.feature +++ b/features/backend/admin_setup/category/basic_sequence_category.feature @@ -33,7 +33,7 @@ Scenario: Create a new Categories } """ And I request "project/category" - Then the response status code should be 200 + 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" diff --git a/features/backend/admin_setup/category/main_tests_category.feature b/features/backend/admin_setup/category/main_tests_category.feature index 1e095bab0..6b1c5148a 100644 --- a/features/backend/admin_setup/category/main_tests_category.feature +++ b/features/backend/admin_setup/category/main_tests_category.feature @@ -36,7 +36,7 @@ Scenario Outline: Create a new Categories } """ And I request "project/category" - Then the response status code should be 200 + 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" @@ -71,7 +71,7 @@ Scenario: Create Category with same name """ And I request "project/category" Then the response status code should be 400 - And the response status message should have the following text "Duplicate" + And the response status message should have the following text "exist" Scenario Outline: Update the Category created in this script @@ -103,7 +103,7 @@ Scenario Outline: Update the Category putting the same name """ And I request "project/category/cat_uid" with the key "cat_uid" stored in session array as variable "cat_uid_" Then the response status code should be 400 - And the response status message should have the following text "Duplicate Process Category" + And the response status message should have the following text "exist" Examples: diff --git a/features/backend/projects/assignee/main_tests_assignee.feature b/features/backend/projects/assignee/main_tests_assignee.feature index 6097e6ba3..9bcd7218a 100644 --- a/features/backend/projects/assignee/main_tests_assignee.feature +++ b/features/backend/projects/assignee/main_tests_assignee.feature @@ -162,7 +162,7 @@ Scenario Outline: Get a single user or group of an activity #BUG 15041 Inactive Groups are display in list of available groups Accounting -Scenario Outline: BUG 15041 Get the list of available groups +Scenario Outline: BUG 15041 Get the list of available groups- Task2 Given I request "project//activity//available-assignee?filter=&start=&limit=" Then the response status code should be 200 And the response charset is "UTF-8" @@ -174,11 +174,9 @@ Scenario Outline: BUG 15041 Get the list of available groups Examples: | test_description | project | activity | filter | start | limit | records | aas_uid | aas_type| - | "Accounting" group is available | 4224292655297723eb98691001100052 | 68911670852a22d93c22c06005808422 | Accounting | 0 | 50 | 1 | 68911670852a22d93c22c06005808422 | group | + | "Accounting" group is available | 4224292655297723eb98691001100052 | 68911670852a22d93c22c06005808422 | Accounting | 0 | 50 | 1 | 54731929352d56741de9d42002704749 | group | - - Scenario: BUG 15041 Update Group to disable group Given PUT this data: """ @@ -201,12 +199,10 @@ Scenario Outline: BUG 15041 Get the list of available users and groups to be ass And the content type is "application/json" And the type is "array" And the response has records - And the "aas_uid" property in row 0 equals "" - And the "aas_type" property in row 0 equals "" - + Examples: - | test_description | project | activity | filter | start | limit | records | aas_uid | aas_type| - | "Accounting" group is available | 4224292655297723eb98691001100052 | 68911670852a22d93c22c06005808422 | Accounting | 0 | 50 | 0 | 68911670852a22d93c22c06005808422 | group | + | test_description | project | activity | filter | start | limit | records | + | "Accounting" group is available | 4224292655297723eb98691001100052 | 68911670852a22d93c22c06005808422 | Accounting | 0 | 50 | 0 | Scenario: BUG 15041 Update Group to enable group diff --git a/features/backend/projects/case_scheduler/main_tests_case_scheduler.feature b/features/backend/projects/case_scheduler/main_tests_case_scheduler.feature index 31c68adcc..5bcd9f6a6 100644 --- a/features/backend/projects/case_scheduler/main_tests_case_scheduler.feature +++ b/features/backend/projects/case_scheduler/main_tests_case_scheduler.feature @@ -217,32 +217,53 @@ Scenario Outline: Delete all case scheduler of a project created previously in t # # | test_description | sch_uid_number | # | Create with Daily | 1 | - -Scenario Outline: Create new Projects with event case scheduler - Given POST data from file "" - 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_" where an object has "object" equal to "project" - - Examples: +# +# +#Scenario Outline: Create new Projects with event case scheduler +# Given POST data from file "" +# 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_" where an object has "object" equal to "project" +# And store "new_uid" in session array as variable "diagram_new_uid_" where an object has "object" equal to "diagram" +# And store "new_uid" in session array as variable "activity_new_uid_" where an object has "object" equal to "activity" +# And store "new_uid" in session array as variable "evn_uid_" where an object has "object" equal to "event" +# And store "new_uid" in session array as variable "flow_new_uid_" where an object has "object" equal to "flow" +# +# Examples: +# +# | Description | project_new_uid_number | evn_uid_number | project_template | +# | Create a new project with event case scheduler | 1 | 3 | project_bug_case_scheduler1.json | +# | Create a new project with event case scheduler | 2 | 4 | project_bug_case_scheduler2.json | +# +# +#Scenario Outline: Delete all Events created previously in this script +# Given that I want to delete a resource with the key "evn_uid" stored in session array as variable "evn_uid_" +# And I request "project//event" +# Then the response status code should be 200 +# And the response charset is "UTF-8" +# And the type is "object" +# +# Examples: +# +# | project_new_uid_number | evn_uid_number | +# | 1 | 3 | +# | 2 | 4 | +# +# +#Scenario Outline: Delete a Project previously created in this script +# Given that I want to delete a resource with the key "new_uid" stored in session array as variable "project_new_uid_" in position 0 +# And I request "projects" +# 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: +# +# | project_new_uid_number | +# | 1 | +# | 2 | - | Description | project_new_uid_number | project_template | - | Create a new project with event case scheduler | 1 | project_bug_case_scheduler1.json | - | Create a new project with event case scheduler | 2 | project_bug_case_scheduler2.json | - -Scenario Outline: Delete a Project previously created in this script - Given that I want to delete a resource with the key "new_uid" stored in session array as variable "project_new_uid_" in position 0 - And I request "projects" - 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: - - | project_new_uid_number | - | 1 | - | 2 |