Modificaciones a los features case actions y cases lists

This commit is contained in:
Wendy Nestor
2014-04-22 12:35:45 -04:00
parent 14a17ac244
commit 53609cf48f
3 changed files with 26 additions and 26 deletions

View File

@@ -240,7 +240,6 @@ Scenario Outline: Route a case to the next task in the process
Given PUT this data: Given PUT this data:
""" """
{ {
"case_uid": "<case_number>",
"del_index": "1" "del_index": "1"
} }
""" """

View File

@@ -81,6 +81,7 @@ Scenario Outline: Create a case, derivate and cancel. then try do pause or route
And the content type is "application/json" And the content type is "application/json"
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the type is "object" And the type is "object"
#Cancel case #Cancel case
And PUT this data: 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 Then the response status code should be 400
And the response status message should have the following text "<error_message_pause>" And the response status message should have the following text "<error_message_pause>"
#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_<case_number>"
And I request "cases"
Then the response status code should be 200
And the content type is "application/json"
And the response charset is "UTF-8"
And the type is "object"
Examples: Examples:
| Description | case_number | pro_uid | tas_uid | error_message_route | error_message_pause | | 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 | | 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_<app_uid_number>"
And I request "cases"
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:
| app_uid_number |
| 1 |

View File

@@ -292,13 +292,13 @@ Scenario Outline: Get paging of list Participated
| high number for start | 1000 | 1 | 0 | 200 | | high number for start | 1000 | 1 | 0 | 200 |
| high number for start | 1000 | 0 | 0 | 200 | | high number for start | 1000 | 0 | 0 | 200 |
| empty result | 1 | 0 | 30 | 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 start | b | 25 | 25 | 200 |
| invalid limit | 1 | c | 30 | 200 | | invalid limit | 1 | c | 30 | 200 |
| start equals zero | 0 | 20 | 20 | 200 | | start equals zero | 0 | 20 | 20 | 200 |
| search 0 | 0 | 0 | 30 | 200 | | search 0 | 0 | 0 | 30 | 200 |
| search 0 | 0 | 100 | 30 | 200 | | search 0 | 0 | 100 | 57 | 200 |
| negative numbers in start | -10 | 25 | 15 | 200 | | negative numbers in start | -10 | 25 | 25 | 200 |
| negative numbers in limit | 1 | -25 | 25 | 200 | | negative numbers in limit | 1 | -25 | 25 | 200 |
| real numbers | 0.0 | 1.0 | 1 | 200 | | real numbers | 0.0 | 1.0 | 1 | 200 |
| real numbers in start | 0.0 | 12 | 12 | 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 | 1 | 0 | 200 |
| high number for start | 1000 | 0 | 0 | 200 | | high number for start | 1000 | 0 | 0 | 200 |
| empty result | 1 | 0 | 30 | 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 start | b | 25 | 25 | 200 |
| invalid limit | 1 | c | 30 | 200 | | invalid limit | 1 | c | 30 | 200 |
| start equals zero | 0 | 20 | 20 | 200 | | start equals zero | 0 | 20 | 20 | 200 |
| search 0 | 0 | 0 | 30 | 200 | | search 0 | 0 | 0 | 30 | 200 |
| search 0 | 0 | 100 | 30 | 200 | | search 0 | 0 | 100 | 57 | 200 |
| negative numbers in start | -10 | 25 | 15 | 200 | | negative numbers in start | -10 | 25 | 25 | 200 |
| negative numbers in limit | 1 | -25 | 25 | 200 | | negative numbers in limit | 1 | -25 | 25 | 200 |
| real numbers | 0.0 | 1.0 | 1 | 200 | | real numbers | 0.0 | 1.0 | 1 | 200 |
| real numbers in start | 0.0 | 12 | 12 | 200 | | real numbers in start | 0.0 | 12 | 12 | 200 |