Merged in wnestor/processmaker (pull request #411)

Modificaciones a los features case actions, cases lists y input document cases
This commit is contained in:
Erik Amaru Ortiz
2014-04-22 22:22:58 -04:00
5 changed files with 34 additions and 34 deletions

View File

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

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
#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_<case_number>"
#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 "<error_message_route>"
#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 "<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>"
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_<app_uid_number>"
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 |
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 | 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 |

View File

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

View File

@@ -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 "<document_file>" to "cases/<case_uid>/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/<case_uid>/input-document"
Then the response status code should be 400
And the response status message should have the following text "<error_message>"
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 |