diff --git a/features/backend/application_cases/case_actions/main_tests_cases_actions.feature b/features/backend/application_cases/case_actions/main_tests_cases_actions.feature index fcb2d1ff1..bff401527 100644 --- a/features/backend/application_cases/case_actions/main_tests_cases_actions.feature +++ b/features/backend/application_cases/case_actions/main_tests_cases_actions.feature @@ -240,7 +240,6 @@ Scenario Outline: Route a case to the next task in the process Given PUT this data: """ { - "case_uid": "", "del_index": "1" } """ diff --git a/features/backend/application_cases/case_actions/negative_tests_cases_actions.feature b/features/backend/application_cases/case_actions/negative_tests_cases_actions.feature index 0858a1365..4b6c0054e 100644 --- a/features/backend/application_cases/case_actions/negative_tests_cases_actions.feature +++ b/features/backend/application_cases/case_actions/negative_tests_cases_actions.feature @@ -54,7 +54,7 @@ Scenario Outline: Create a new case Impersonate (Negative Test) Scenario Outline: Create a case, derivate and cancel. then try do pause or route - #Create case +#Create case Given POST this data: """ { @@ -67,7 +67,7 @@ Scenario Outline: Create a case, derivate and cancel. then try do pause or route Then the response status code should be 200 And store "app_uid" in session array as variable "app_uid_" - #Send some variables +#Send some variables And PUT this data: """ { @@ -81,7 +81,8 @@ Scenario Outline: Create a case, derivate and cancel. then try do pause or route And the content type is "application/json" And the response charset is "UTF-8" And the type is "object" - #Cancel case + +#Cancel case And PUT this data: """ { @@ -94,7 +95,7 @@ Scenario Outline: Create a case, derivate and cancel. then try do pause or route And the response charset is "UTF-8" And the type is "object" - #Route case: it should not allow +#Route case: it should not allow And PUT this data: """ { @@ -106,7 +107,7 @@ Scenario Outline: Create a case, derivate and cancel. then try do pause or route Then the response status code should be 400 And the response status message should have the following text "" - #Pause case +#Pause case And PUT this data: """ { @@ -117,22 +118,22 @@ Scenario Outline: Create a case, derivate and cancel. then try do pause or route Then the response status code should be 400 And the response status message should have the following text "" - #Delete case - And PUT this data: - """ - { - - } - """ - - And that I want to delete a resource with the key "app_uid" stored in session array as variable "app_uid_" + Examples: + | Description | case_number | pro_uid | tas_uid | error_message_route | error_message_pause | + | Create new case with process "Derivation rules - sequential" | 1 | 99209594750ec27ea338927000421575 | 68707275350ec281ada1c95068712556 | This case delegation is already closed | This case delegation is already closed | + + +#Delete case + + Scenario Outline: Delete a case created previously in this script + Given that I want to delete a resource with the key "app_uid" stored in session array as variable "app_uid_" And I request "cases" - Then the response status code should be 200 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: - | Description | case_number | pro_uid | tas_uid | error_message_route | error_message_pause | - | Create new case with process "Derivation rules - sequential" | 1 | 99209594750ec27ea338927000421575 | 68707275350ec281ada1c95068712556 | This case delegation is already closed | This case delegation is already closed | \ No newline at end of file + Examples: + + | app_uid_number | + | 1 | \ No newline at end of file diff --git a/features/backend/application_cases/cases_lists_1-6/main_tests_cases_lists_1_6.feature b/features/backend/application_cases/cases_lists_1-6/main_tests_cases_lists_1_6.feature index 9b7278738..9371f9ffd 100644 --- a/features/backend/application_cases/cases_lists_1-6/main_tests_cases_lists_1_6.feature +++ b/features/backend/application_cases/cases_lists_1-6/main_tests_cases_lists_1_6.feature @@ -292,13 +292,13 @@ Scenario Outline: Get paging of list Participated | high number for start | 1000 | 1 | 0 | 200 | | high number for start | 1000 | 0 | 0 | 200 | | empty result | 1 | 0 | 30 | 200 | - | empty string | 1 | 10000 | 30 | 200 | + | empty string | 1 | 10000 | 57 | 200 | | invalid start | b | 25 | 25 | 200 | | invalid limit | 1 | c | 30 | 200 | | start equals zero | 0 | 20 | 20 | 200 | | search 0 | 0 | 0 | 30 | 200 | - | search 0 | 0 | 100 | 30 | 200 | - | negative numbers in start | -10 | 25 | 15 | 200 | + | search 0 | 0 | 100 | 57 | 200 | + | negative numbers in start | -10 | 25 | 25 | 200 | | negative numbers in limit | 1 | -25 | 25 | 200 | | real numbers | 0.0 | 1.0 | 1 | 200 | | real numbers in start | 0.0 | 12 | 12 | 200 | @@ -610,13 +610,13 @@ Scenario Outline: Get paging of list Advanced Search | high number for start | 1000 | 1 | 0 | 200 | | high number for start | 1000 | 0 | 0 | 200 | | empty result | 1 | 0 | 30 | 200 | - | empty string | 1 | 10000 | 30 | 200 | + | empty string | 1 | 10000 | 57 | 200 | | invalid start | b | 25 | 25 | 200 | | invalid limit | 1 | c | 30 | 200 | | start equals zero | 0 | 20 | 20 | 200 | | search 0 | 0 | 0 | 30 | 200 | - | search 0 | 0 | 100 | 30 | 200 | - | negative numbers in start | -10 | 25 | 15 | 200 | + | search 0 | 0 | 100 | 57 | 200 | + | negative numbers in start | -10 | 25 | 25 | 200 | | negative numbers in limit | 1 | -25 | 25 | 200 | | real numbers | 0.0 | 1.0 | 1 | 200 | | real numbers in start | 0.0 | 12 | 12 | 200 |