Avance del feature cases list

This commit is contained in:
Wendy Nestor
2014-03-24 17:02:28 -04:00
parent 7a76d89d62
commit 71bbb46b57
2 changed files with 933 additions and 2 deletions

View File

@@ -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
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"

View File

@@ -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=<start>&limit=<limit>"
Then the response status code should be <http_code>
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "<type>"
And the response has <records> 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=<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> 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=<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> 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=<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> 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=<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> 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=<start>&limit=<limit>"
Then the response status code should be <http_code>
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "<type>"
And the response has <records> 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=<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> 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=<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> 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=<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> 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=<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> 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=<start>&limit=<limit>"
Then the response status code should be <http_code>
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "<type>"
And the response has <records> 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=<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> 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=<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> 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=<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> 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=<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> 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=<start>&limit=<limit>"
Then the response status code should be <http_code>
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "<type>"
And the response has <records> 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=<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> 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=<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> 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=<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> 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=<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> 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=<start>&limit=<limit>"
Then the response status code should be <http_code>
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "<type>"
And the response has <records> 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=<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> 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=<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> 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=<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> 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=<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> 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
And the response has 1 records
Scenario Outline: Get paging of list Advanced Search
Given I request "cases/advanced-search/paged?Start=<start>&limit=<limit>"
Then the response status code should be <http_code>
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "<type>"
And the response has <records> 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=<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> 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=<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> 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=<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> 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=<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> 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=<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> 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=<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> 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_from>&date_to=<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> 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 | |