From 71bbb46b57ded842ce7bf16a546a985abae41211 Mon Sep 17 00:00:00 2001 From: Wendy Nestor Date: Mon, 24 Mar 2014 17:02:28 -0400 Subject: [PATCH] Avance del feature cases list --- .../basic_sequence_cases_lists_1_6.feature | 296 +++++++- .../main_tests_cases_lists_1_6.feature | 639 +++++++++++++++++- 2 files changed, 933 insertions(+), 2 deletions(-) diff --git a/features/backend/application_cases/cases_lists_1-6/basic_sequence_cases_lists_1_6.feature b/features/backend/application_cases/cases_lists_1-6/basic_sequence_cases_lists_1_6.feature index 683d54cf7..ef951e6e7 100644 --- a/features/backend/application_cases/cases_lists_1-6/basic_sequence_cases_lists_1_6.feature +++ b/features/backend/application_cases/cases_lists_1-6/basic_sequence_cases_lists_1_6.feature @@ -15,6 +15,55 @@ Scenario: Returns a list of the cases for the logged in user (Inbox) And the response has 1 records +Scenario: Get paging of list inbox + Given I request "cases/paged" + 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 + + +Scenario: Get order type of Descending + Given I request "cases?dir=DESC" + 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" + + +Scenario: Get order type of Acending + Given I request "cases?dir=ASC" + 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" + + +Scenario: Get order type of Process Category + Given I request "cases?category=4177095085330818c324501061677193" + 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" + + +Scenario: Get order type of Process + Given I request "cases?process=99209594750ec27ea338927000421575" + 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" + + +Scenario: Get order type of Search + Given I request "cases?search=92535130653271a60de2e73021469732" + 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" + + Scenario: Returns a list of the cases for the logged in user (Draft) Given I request "cases/draft" Then the response status code should be 200 @@ -23,6 +72,55 @@ Scenario: Returns a list of the cases for the logged in user (Draft) And the response has 1 records +Scenario: Get paging of list Draft + Given I request "cases/draft/paged" + 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 + + +Scenario: Get order type of Descending + Given I request "cases/draft?dir=DESC" + 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" + + +Scenario: Get order type of Acending + Given I request "cases/draft?dir=ASC" + 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" + + +Scenario: Get order type of Process Category + Given I request "cases/draft?category=4177095085330818c324501061677193" + 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" + + +Scenario: Get order type of Process + Given I request "cases/draft?process=99209594750ec27ea338927000421575" + 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" + + +Scenario: Get order type of Search + Given I request "cases/draft?search=92535130653271a60de2e73021469732" + 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" + + Scenario: Returns a list of the cases for the logged in user (Participated) Given I request "cases/participated" Then the response status code should be 200 @@ -31,6 +129,55 @@ Scenario: Returns a list of the cases for the logged in user (Participated) And the response has 6 records +Scenario: Get paging of list Participated + Given I request "cases/participated/paged" + 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 + + +Scenario: Get order type of Descending + Given I request "cases/participated?dir=DESC" + 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" + + +Scenario: Get order type of Acending + Given I request "cases/participated?dir=ASC" + 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" + + +Scenario: Get order type of Process Category + Given I request "cases/participated?category=4177095085330818c324501061677193" + 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" + + +Scenario: Get order type of Process + Given I request "cases/participated?process=99209594750ec27ea338927000421575" + 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" + + +Scenario: Get order type of Search + Given I request "cases/participated?search=92535130653271a60de2e73021469732" + 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" + + Scenario: Returns a list of the cases for the logged in user (Unassigned) Given I request "cases/unassigned" Then the response status code should be 200 @@ -39,6 +186,55 @@ Scenario: Returns a list of the cases for the logged in user (Unassigned) And the response has 1 records +Scenario: Get paging of list Unassigned + Given I request "cases/unassigned/paged" + 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 + + +Scenario: Get order type of Descending + Given I request "cases/unassigned?dir=DESC" + 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" + + +Scenario: Get order type of Acending + Given I request "cases/unassigned?dir=ASC" + 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" + + +Scenario: Get order type of Process Category + Given I request "cases/unassigned?category=4177095085330818c324501061677193" + 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" + + +Scenario: Get order type of Process + Given I request "cases/unassigned?process=99209594750ec27ea338927000421575" + 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" + + +Scenario: Get order type of Search + Given I request "cases/unassigned?search=92535130653271a60de2e73021469732" + 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" + + Scenario: Returns a list of the cases for the logged in user (Paused) Given I request "cases/paused" Then the response status code should be 200 @@ -47,9 +243,107 @@ Scenario: Returns a list of the cases for the logged in user (Paused) And the response has 1 records +Scenario: Get paging of list Paused + Given I request "cases/paused/paged" + 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 + + +Scenario: Get order type of Descending + Given I request "cases/paused?dir=DESC" + 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" + + +Scenario: Get order type of Acending + Given I request "cases/paused?dir=ASC" + 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" + + +Scenario: Get order type of Process Category + Given I request "cases/paused?category=4177095085330818c324501061677193" + 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" + + +Scenario: Get order type of Process + Given I request "cases/paused?process=99209594750ec27ea338927000421575" + 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" + + +Scenario: Get order type of Search + Given I request "cases/paused?search=92535130653271a60de2e73021469732" + 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" + + Scenario: Returns a list of the cases for the logged in user (Advanced Search) Given I request "cases/advanced-search" Then the response status code should be 200 And the response charset is "UTF-8" And the type is "array" - And the response has 1 records \ No newline at end of file + And the response has 1 records + + +Scenario: Get paging of list Advanced Search + Given I request "cases/advanced-search/paged" + 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 + + +Scenario: Get order type of Descending + Given I request "cases/advanced-search?dir=DESC" + 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" + + +Scenario: Get order type of Acending + Given I request "cases/advanced-search?dir=ASC" + 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" + + +Scenario: Get order type of Process Category + Given I request "cases/advanced-search?category=4177095085330818c324501061677193" + 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" + + +Scenario: Get order type of Process + Given I request "cases/advanced-search?process=99209594750ec27ea338927000421575" + 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" + + +Scenario: Get order type of Search + Given I request "cases/advanced-search?search=92535130653271a60de2e73021469732" + 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" \ 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 683d54cf7..7d53eed58 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 @@ -15,6 +15,103 @@ Scenario: Returns a list of the cases for the logged in user (Inbox) And the response has 1 records +Scenario Outline: Get paging of list inbox + Given I request "cases/paged?Start=&limit=" + Then the response status code should be + And the response charset is "UTF-8" + And the content type is "application/json" + And the type is "" + And the response has records + + Examples: + + | test_description | start | limit | records | http_code | type | + | lowercase in Start | a | 1 | | 200 | array | + | uppercase in Start | A | 1 | | 200 | array | + | lowercase in Limit | 1 | a | | 200 | array | + | uppercase in Limit | 1 | A | | 200 | array | + | limit=3 | 1 | 3 | | 200 | array | + | start=3 | 3 | 3 | | 200 | array | + | limit and start =3 | 3 | 3 | | 200 | array | + | high number for start | 1000 | 1 | | 200 | array | + | high number for start | 1000 | 0 | | 200 | array | + | empty result | 1 | 0 | | 200 | array | + | empty string | 1 | 10000 | | 200 | array | + | invalid start | b | 25 | | 400 | string | + | invalid limit | 1 | c | | 400 | string | + | start equals zero | 0 | 20 | | 400 | string | + | search 0 | 0 | 0 | | 200 | array | + | search 0 | 0 | 100 | | 200 | array | + | negative numbers in start | -10 | 25 | | 400 | string | + | negative numbers in limit | 1 | -25 | | 400 | string | + | real numbers | 0.0 | 1.0 | | 200 | string | + | real numbers in start | 0.0 | 25 | | 200 | string | + | real numbers in limit | 1 | 1.4599 | | 400 | string | + | only start | 1 | | | 400 | string | + | only limit | | 25 | | 400 | string | + | without start and limit | | | | 400 | string | + + +Scenario Outline: Get order type of Descending and Acending + Given I request "cases?dir=" + 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 records + +Examples: + + | test_description | dir | records | + | Order for Acending | asc | | + | Order for Descending | desc | | + + +Scenario Outline: Get order type of Process Category + Given I request "cases?cat_uid=" + 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 records + +Examples: + + | test_description | cat_uid | records | + | Filter for Category "Category Cases Lists" | 4177095085330818c324501061677193 | | + | Filter all categories | | | + + +Scenario Outline: Get order type of Process + Given I request "cases?pro_uid=" + 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 records + +Examples: + + | test_description | pro_uid | records | + | Filter for cases "Derivation rules - sequential" | 99209594750ec27ea338927000421575 | | + | Filter all cases | | | + + +Scenario Outline: Get order type of Search of number the process + Given I request "cases?search=" + 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 records + +Examples: + + | test_description | search | records | + | Filter for cases "Derivation rules - Parallel -> Case number 6" | 92535130653271a60de2e73021469732 | | + | Filter all cases | | | + + Scenario: Returns a list of the cases for the logged in user (Draft) Given I request "cases/draft" Then the response status code should be 200 @@ -23,6 +120,104 @@ Scenario: Returns a list of the cases for the logged in user (Draft) And the response has 1 records +Scenario Outline: Get paging of list Draft + Given I request "cases/draft/paged?Start=&limit=" + Then the response status code should be + And the response charset is "UTF-8" + And the content type is "application/json" + And the type is "" + And the response has records + + Examples: + + | test_description | start | limit | records | http_code | type | + | lowercase in Start | a | 1 | | 200 | array | + | uppercase in Start | A | 1 | | 200 | array | + | lowercase in Limit | 1 | a | | 200 | array | + | uppercase in Limit | 1 | A | | 200 | array | + | limit=3 | 1 | 3 | | 200 | array | + | start=3 | 3 | 3 | | 200 | array | + | limit and start =3 | 3 | 3 | | 200 | array | + | high number for start | 1000 | 1 | | 200 | array | + | high number for start | 1000 | 0 | | 200 | array | + | empty result | 1 | 0 | | 200 | array | + | empty string | 1 | 10000 | | 200 | array | + | invalid start | b | 25 | | 400 | string | + | invalid limit | 1 | c | | 400 | string | + | start equals zero | 0 | 20 | | 400 | string | + | search 0 | 0 | 0 | | 200 | array | + | search 0 | 0 | 100 | | 200 | array | + | negative numbers in start | -10 | 25 | | 400 | string | + | negative numbers in limit | 1 | -25 | | 400 | string | + | real numbers | 0.0 | 1.0 | | 200 | string | + | real numbers in start | 0.0 | 25 | | 200 | string | + | real numbers in limit | 1 | 1.4599 | | 400 | string | + | only start | 1 | | | 400 | string | + | only limit | | 25 | | 400 | string | + | without start and limit | | | | 400 | string | + + +Scenario Outline: Get order type of Descending and Ascending + Given I request "cases/draft?dir=" + 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 records + +Examples: + + | test_description | dir | records | + | Order for Acending | asc | | + | Order for Descending | desc | | + + + +Scenario Outline: Get order type of Process Category + Given I request "cases/draft?cat_uid=" + 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 records + +Examples: + + | test_description | cat_uid | records | + | Filter for Category "Category Cases Lists" | 4177095085330818c324501061677193 | | + | Filter all categories | | | + + +Scenario Outline: Get order type of Process + Given I request "cases/draft?pro_uid=" + 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 records + +Examples: + + | test_description | pro_uid | records | + | Filter for cases "Derivation rules - sequential" | 99209594750ec27ea338927000421575 | | + | Filter all cases | | | + + +Scenario Outline: Get order type of Search of the process + Given I request "cases/draft?search=" + 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 records + +Examples: + + | test_description | search | records | + | Filter for cases "Derivation rules - Parallel -> Case number 6" | 92535130653271a60de2e73021469732 | | + | Filter all cases | | | + + Scenario: Returns a list of the cases for the logged in user (Participated) Given I request "cases/participated" Then the response status code should be 200 @@ -31,6 +226,105 @@ Scenario: Returns a list of the cases for the logged in user (Participated) And the response has 6 records +Scenario Outline: Get paging of list Participated + Given I request "cases/participated/paged?Start=&limit=" + Then the response status code should be + And the response charset is "UTF-8" + And the content type is "application/json" + And the type is "" + And the response has records + + Examples: + + | test_description | start | limit | records | http_code | type | + | lowercase in Start | a | 1 | | 200 | array | + | uppercase in Start | A | 1 | | 200 | array | + | lowercase in Limit | 1 | a | | 200 | array | + | uppercase in Limit | 1 | A | | 200 | array | + | limit=3 | 1 | 3 | | 200 | array | + | start=3 | 3 | 3 | | 200 | array | + | limit and start =3 | 3 | 3 | | 200 | array | + | high number for start | 1000 | 1 | | 200 | array | + | high number for start | 1000 | 0 | | 200 | array | + | empty result | 1 | 0 | | 200 | array | + | empty string | 1 | 10000 | | 200 | array | + | invalid start | b | 25 | | 400 | string | + | invalid limit | 1 | c | | 400 | string | + | start equals zero | 0 | 20 | | 400 | string | + | search 0 | 0 | 0 | | 200 | array | + | search 0 | 0 | 100 | | 200 | array | + | negative numbers in start | -10 | 25 | | 400 | string | + | negative numbers in limit | 1 | -25 | | 400 | string | + | real numbers | 0.0 | 1.0 | | 200 | string | + | real numbers in start | 0.0 | 25 | | 200 | string | + | real numbers in limit | 1 | 1.4599 | | 400 | string | + | only start | 1 | | | 400 | string | + | only limit | | 25 | | 400 | string | + | without start and limit | | | | 400 | string | + + +Scenario Outline: Get order type of Descending an Descending + Given I request "cases/participated?dir=" + 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 records + +Examples: + + | test_description | dir | records | + | Order for Acending | asc | | + | Order for Descending | desc | | + + + +Scenario Outline: Get order type of Process Category + Given I request "cases/participated?cat_uid=" + 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 records + +Examples: + + | test_description | cat_uid | records | + | Filter for Category "Category Cases Lists" | 4177095085330818c324501061677193 | | + | Filter all categories | | | + + +Scenario Outline: Get order type of Process + Given I request "cases/participated?pro_uid=" + 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 records + +Examples: + + | test_description | pro_uid | records | + | Filter for cases "Derivation rules - sequential" | 99209594750ec27ea338927000421575 | | + | Filter all cases | | | + + + +Scenario Outline: Get order type of Search + Given I request "cases/participated?search=" + 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 records + +Examples: + + | test_description | search | records | + | Filter for cases "Derivation rules - Parallel -> Case number 6" | 92535130653271a60de2e73021469732 | | + | Filter all cases | | | + + Scenario: Returns a list of the cases for the logged in user (Unassigned) Given I request "cases/unassigned" Then the response status code should be 200 @@ -39,6 +333,104 @@ Scenario: Returns a list of the cases for the logged in user (Unassigned) And the response has 1 records +Scenario Outline: Get paging of list Unassigned + Given I request "cases/Unassigned/paged?Start=&limit=" + Then the response status code should be + And the response charset is "UTF-8" + And the content type is "application/json" + And the type is "" + And the response has records + + Examples: + + | test_description | start | limit | records | http_code | type | + | lowercase in Start | a | 1 | | 200 | array | + | uppercase in Start | A | 1 | | 200 | array | + | lowercase in Limit | 1 | a | | 200 | array | + | uppercase in Limit | 1 | A | | 200 | array | + | limit=3 | 1 | 3 | | 200 | array | + | start=3 | 3 | 3 | | 200 | array | + | limit and start =3 | 3 | 3 | | 200 | array | + | high number for start | 1000 | 1 | | 200 | array | + | high number for start | 1000 | 0 | | 200 | array | + | empty result | 1 | 0 | | 200 | array | + | empty string | 1 | 10000 | | 200 | array | + | invalid start | b | 25 | | 400 | string | + | invalid limit | 1 | c | | 400 | string | + | start equals zero | 0 | 20 | | 400 | string | + | search 0 | 0 | 0 | | 200 | array | + | search 0 | 0 | 100 | | 200 | array | + | negative numbers in start | -10 | 25 | | 400 | string | + | negative numbers in limit | 1 | -25 | | 400 | string | + | real numbers | 0.0 | 1.0 | | 200 | string | + | real numbers in start | 0.0 | 25 | | 200 | string | + | real numbers in limit | 1 | 1.4599 | | 400 | string | + | only start | 1 | | | 400 | string | + | only limit | | 25 | | 400 | string | + | without start and limit | | | | 400 | string | + + +Scenario Outline: Get order type of Descending and Acending + Given I request "cases/unassigned?dir=" + 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 records + +Examples: + + | test_description | dir | records | + | Order for Acending | asc | | + | Order for Descending | desc | | + + +Scenario Outline: Get order type of Process Category + Given I request "cases/unassigned?cat_uid=" + 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 records + +Examples: + + | test_description | cat_uid | records | + | Filter for Category "Category Cases Lists" | 4177095085330818c324501061677193 | | + | Filter all categories | | | + + +Scenario Outline: Get order type of Process + Given I request "cases/unassigned?pro_uid=" + 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 records + +Examples: + + | test_description | pro_uid | records | + | Filter for cases "Derivation rules - sequential" | 99209594750ec27ea338927000421575 | | + | Filter all cases | | | + + +Scenario Outline: Get order type of Search + Given I request "cases/unassigned?search=" + 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 records + +Examples: + + | test_description | search | records | + | Filter for cases "Derivation rules - Parallel -> Case number 6" | 92535130653271a60de2e73021469732 | | + | Filter all cases | | | + + + Scenario: Returns a list of the cases for the logged in user (Paused) Given I request "cases/paused" Then the response status code should be 200 @@ -47,9 +439,254 @@ Scenario: Returns a list of the cases for the logged in user (Paused) And the response has 1 records +Scenario Outline: Get paging of list Paused + Given I request "cases/paused/paged?Start=&limit=" + Then the response status code should be + And the response charset is "UTF-8" + And the content type is "application/json" + And the type is "" + And the response has records + + Examples: + + | test_description | start | limit | records | http_code | type | + | lowercase in Start | a | 1 | | 200 | array | + | uppercase in Start | A | 1 | | 200 | array | + | lowercase in Limit | 1 | a | | 200 | array | + | uppercase in Limit | 1 | A | | 200 | array | + | limit=3 | 1 | 3 | | 200 | array | + | start=3 | 3 | 3 | | 200 | array | + | limit and start =3 | 3 | 3 | | 200 | array | + | high number for start | 1000 | 1 | | 200 | array | + | high number for start | 1000 | 0 | | 200 | array | + | empty result | 1 | 0 | | 200 | array | + | empty string | 1 | 10000 | | 200 | array | + | invalid start | b | 25 | | 400 | string | + | invalid limit | 1 | c | | 400 | string | + | start equals zero | 0 | 20 | | 400 | string | + | search 0 | 0 | 0 | | 200 | array | + | search 0 | 0 | 100 | | 200 | array | + | negative numbers in start | -10 | 25 | | 400 | string | + | negative numbers in limit | 1 | -25 | | 400 | string | + | real numbers | 0.0 | 1.0 | | 200 | string | + | real numbers in start | 0.0 | 25 | | 200 | string | + | real numbers in limit | 1 | 1.4599 | | 400 | string | + | only start | 1 | | | 400 | string | + | only limit | | 25 | | 400 | string | + | without start and limit | | | | 400 | string | + + +Scenario Outline: Get order type of Descending and Acending + Given I request "cases/paused?dir=" + 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 records + +Examples: + + | test_description | dir | records | + | Order for Acending | asc | | + | Order for Descending | desc | | + + +Scenario Outline: Get order type of Process Category + Given I request "cases/paused?cat_uid=" + 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 records + +Examples: + + | test_description | cat_uid | records | + | Filter for Category "Category Cases Lists" | 4177095085330818c324501061677193 | | + | Filter all categories | | | + + +Scenario Outline: Get order type of Process + Given I request "cases/paused?pro_uid=" + 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 records + +Examples: + + | test_description | pro_uid | records | + | Filter for cases "Derivation rules - sequential" | 99209594750ec27ea338927000421575 | | + | Filter all cases | | | + + +Scenario Outline: Get order type of Search + Given I request "cases/paused?search=" + 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 records + +Examples: + + | test_description | search | records | + | Filter for cases "Derivation rules - Parallel -> Case number 6" | 92535130653271a60de2e73021469732 | | + | Filter all cases | | | + + Scenario: Returns a list of the cases for the logged in user (Advanced Search) Given I request "cases/advanced-search" Then the response status code should be 200 And the response charset is "UTF-8" And the type is "array" - And the response has 1 records \ No newline at end of file + And the response has 1 records + + +Scenario Outline: Get paging of list Advanced Search + Given I request "cases/advanced-search/paged?Start=&limit=" + Then the response status code should be + And the response charset is "UTF-8" + And the content type is "application/json" + And the type is "" + And the response has records + + Examples: + + | test_description | start | limit | records | http_code | type | + | lowercase in Start | a | 1 | | 200 | array | + | uppercase in Start | A | 1 | | 200 | array | + | lowercase in Limit | 1 | a | | 200 | array | + | uppercase in Limit | 1 | A | | 200 | array | + | limit=3 | 1 | 3 | | 200 | array | + | start=3 | 3 | 3 | | 200 | array | + | limit and start =3 | 3 | 3 | | 200 | array | + | high number for start | 1000 | 1 | | 200 | array | + | high number for start | 1000 | 0 | | 200 | array | + | empty result | 1 | 0 | | 200 | array | + | empty string | 1 | 10000 | | 200 | array | + | invalid start | b | 25 | | 400 | string | + | invalid limit | 1 | c | | 400 | string | + | start equals zero | 0 | 20 | | 400 | string | + | search 0 | 0 | 0 | | 200 | array | + | search 0 | 0 | 100 | | 200 | array | + | negative numbers in start | -10 | 25 | | 400 | string | + | negative numbers in limit | 1 | -25 | | 400 | string | + | real numbers | 0.0 | 1.0 | | 200 | string | + | real numbers in start | 0.0 | 25 | | 200 | string | + | real numbers in limit | 1 | 1.4599 | | 400 | string | + | only start | 1 | | | 400 | string | + | only limit | | 25 | | 400 | string | + | without start and limit | | | | 400 | string | + + +Scenario Outline: Get order type of Descending and Acending + Given I request "cases/advanced-search?dir=" + 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 records + + Examples: + + | test_description | dir | records | + | Order for Acending | asc | | + | Order for Descending | desc | | + + +Scenario Outline: Get order type of Process Category + Given I request "cases/advanced-search?cat_uid=" + 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 records + + Examples: + + | test_description | cat_uid | records | + | Filter for Category "Category Cases Lists" | 4177095085330818c324501061677193 | | + | Filter all categories | | | + + + +Scenario Outline: Get order type of Process + Given I request "cases/advanced-search?pro_uid=" + 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 records + + Examples: + + | test_description | pro_uid | records | + | Filter for cases "Derivation rules - sequential" | 99209594750ec27ea338927000421575 | | + | Filter all cases | | | + + + +Scenario Outline: Get order type of Search + Given I request "cases/advanced-search?search=" + 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 records + + Examples: + + | test_description | search | records | + | Filter for cases "Derivation rules - Parallel -> Case number 6" | 92535130653271a60de2e73021469732 | | + | Filter all cases | | | + + +Scenario Outline: Get order for Status + Given I request "cases/advanced-search?app_status=" + 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 records + + Examples: + + | test_description | app_status | records | + | Filter Status = All Status | | | + | Filter Status = Completed | COMPLETED | | + | Filter Status = Draft | DRAFT | | + | Filter Status = To Do | TO_DO | | + + +Scenario Outline: Get order for User + Given I request "cases/advanced-search?usr_uid=" + 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 records + + Examples: + + | test_description | usr_uid | records | + | Filter Status = All User | | | + | Filter Status = aaron | 51049032352d56710347233042615067 | | + | Filter Status = admin | 00000000000000000000000000000001 | | + | Filter Status = chris | 24166330352d56730cdd525035621101 | | + + +Scenario Outline: Get order for date + Given I request "cases/advanced-search?date_from=&date_to=" + 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 records + + Examples: + + | test_description | date_from | date_to | records | + | Filter date = 2014-03-01 | 2014-03-01 | 2014-03-20 | | + | Filter date = 2014-03-15 | 2014-03-15 | 2014-03-20 | | \ No newline at end of file