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..c787d165a 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 @@ -234,8 +234,6 @@ Scenario Outline: Sends variables to a case - - Scenario Outline: Route a case to the next task in the process Given PUT this data: """ 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 | diff --git a/features/backend/application_cases/input_documents_case/basic_sequence_input_document_case.feature b/features/backend/application_cases/input_documents_case/basic_sequence_input_document_case.feature index 1d852279c..e11399d77 100644 --- a/features/backend/application_cases/input_documents_case/basic_sequence_input_document_case.feature +++ b/features/backend/application_cases/input_documents_case/basic_sequence_input_document_case.feature @@ -13,8 +13,7 @@ Scenario: Returns a list of the uploaded documents for a given case Then the response status code should be 200 And the response charset is "UTF-8" And the type is "array" - And the response has 10 records - + Scenario: Returns an uploaded documents for a given case Given I request "cases/170220159534214f642abb8058832933/input-document/925833635534215b9148a64026212674" diff --git a/features/backend/application_cases/input_documents_case/negative_tests_input_document_case.feature b/features/backend/application_cases/input_documents_case/negative_tests_input_document_case.feature index fb003d01d..514c33530 100644 --- a/features/backend/application_cases/input_documents_case/negative_tests_input_document_case.feature +++ b/features/backend/application_cases/input_documents_case/negative_tests_input_document_case.feature @@ -13,7 +13,7 @@ Scenario: Returns a list of the uploaded documents for a given case Then the response status code should be 400 Scenario Outline: Post metadata and then upload documents for a given case - Given POST upload an input document "" to "cases//input-document" + Given POST this data: """ { @@ -24,12 +24,14 @@ Scenario Outline: Post metadata and then upload documents for a given case } """ + And I request "cases//input-document" Then the response status code should be 400 + And the response status message should have the following text "" Examples: - | app_doc_uid_number | document_file | case_uid | inp_doc_uid | tas_uid | app_doc_comment | - | 1 | /inexistent_test1.html | 170220159534214f642abb8058832933 | 68671480353319e5e1dee74089764900 | 19582733053319e304cfa76025663570 | comment 1 | - | 1 | /home/wendy/uploadfiles/test1.html | 170220159534214f642abb8058832933 | 68671480353319e5e1dee74089764900 | | comment 1 | - | 1 | /home/wendy/uploadfiles/test1.html | 170220159534214f642abb8058832933 | | 19582733053319e304cfa76025663570 | comment 1 | + | test_description | case_uid | inp_doc_uid | tas_uid | app_doc_comment | error_message | + | Incorrect tas_uid | 170220159534214f642abb8058832933 | 68671480353319e5e1dee74089764900 | | comment 1 | tas_uid | + | Incorrect inp_doc_uid | 170220159534214f642abb8058832933 | | 19582733053319e304cfa76025663570 | comment 1 | inp_doc_uid | + | No file | 170220159534214f642abb8058832933 | 68671480353319e5e1dee74089764900 | 19582733053319e304cfa76025663570 | comment 1 | filename | \ No newline at end of file