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

@@ -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 Scenario Outline: Create a case, derivate and cancel. then try do pause or route
#Create case #Create case
Given POST this data: 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 Then the response status code should be 200
And store "app_uid" in session array as variable "app_uid_<case_number>" And store "app_uid" in session array as variable "app_uid_<case_number>"
#Send some variables #Send some variables
And PUT this data: 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 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:
""" """
{ {
@@ -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 response charset is "UTF-8"
And the type is "object" And the type is "object"
#Route case: it should not allow #Route case: it should not allow
And PUT this data: 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 Then the response status code should be 400
And the response status message should have the following text "<error_message_route>" And the response status message should have the following text "<error_message_route>"
#Pause case #Pause 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 Examples:
And PUT this data: | 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
And that I want to delete a resource with the key "app_uid" stored in session array as variable "app_uid_<case_number>" 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 I request "cases"
Then the response status code should be 200
And the content type is "application/json" And the content type is "application/json"
Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the type is "object" And the type is "object"
Examples: 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 | | 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 |