Merged in wnestor/processmaker (pull request #365)
Arreglos en cases actions, case note, case variables y output document
This commit is contained in:
@@ -82,13 +82,14 @@ Scenario Outline: Create a new case in workspace with process "Derivation rules
|
||||
And the response charset is "UTF-8"
|
||||
And the content type is "application/json"
|
||||
And the type is "object"
|
||||
And store "caseId" in session array as variable "caseId_<case_number>"
|
||||
And store "caseNumber" in session array as variable "caseNumber_<case_number>"
|
||||
And store "app_uid" in session array as variable "app_uid_<case_number>"
|
||||
And store "app_number" in session array as variable "app_number_<case_number>"
|
||||
|
||||
Examples:
|
||||
| Description | case_number | pro_uid | tas_uid |
|
||||
| Create case 16 in draft | 1 | 99209594750ec27ea338927000421575 | 68707275350ec281ada1c95068712556 |
|
||||
| Create case 17 in draft | 2 | 99209594750ec27ea338927000421575 | 68707275350ec281ada1c95068712556 |
|
||||
| Create case 18 in draft | 5 | 99209594750ec27ea338927000421575 | 68707275350ec281ada1c95068712556 |
|
||||
|
||||
|
||||
Scenario Outline: Create a new case Impersonate in workspace with process "Derivation rules - sequential"
|
||||
@@ -106,8 +107,8 @@ Scenario Outline: Create a new case Impersonate in workspace with process "Deriv
|
||||
And the response charset is "UTF-8"
|
||||
And the content type is "application/json"
|
||||
And the type is "object"
|
||||
And store "caseId" in session array as variable "caseId_<case_number>"
|
||||
And store "caseNumber" in session array as variable "caseNumber_<case_number>"
|
||||
And store "app_uid" in session array as variable "app_uid_<case_number>"
|
||||
And store "app_number" in session array as variable "app_number_<case_number>"
|
||||
|
||||
Examples:
|
||||
| Description | case_number | usr_uid |
|
||||
@@ -128,16 +129,15 @@ Scenario Outline: Reassigns a case to a different user, from user "administrator
|
||||
"""
|
||||
{
|
||||
"usr_uid_source": "00000000000000000000000000000001",
|
||||
"usr_uid_target": "51049032352d56710347233042615067",
|
||||
"usr_uid_target": "51049032352d56710347233042615067"
|
||||
}
|
||||
"""
|
||||
And I request "case/<case_number>/reassign-case"
|
||||
And I request "cases/app_uid/reassign-case" with the key "app_uid" stored in session array as variable "app_uid_<case_number>"
|
||||
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"
|
||||
And that I want to update a resource with the key "case_number" stored in session array as variable "caseNumber_<case_number>"
|
||||
And that I want to update a resource with the key "caseId" stored in session array as variable "caseId_<case_number>"
|
||||
|
||||
|
||||
Examples:
|
||||
|
||||
@@ -145,7 +145,7 @@ Scenario Outline: Reassigns a case to a different user, from user "administrator
|
||||
| Reassig case 1, created in this script | 1 |
|
||||
|
||||
|
||||
Scenario: Route a case to the next task in the process
|
||||
Scenario Outline: Route a case to the next task in the process
|
||||
Given PUT this data:
|
||||
"""
|
||||
{
|
||||
@@ -153,14 +153,12 @@ Scenario: Route a case to the next task in the process
|
||||
"del_index": "1"
|
||||
}
|
||||
"""
|
||||
And I request "cases/<case_number>/route-case"
|
||||
And I request "cases/app_uid/route-case" with the key "app_uid" stored in session array as variable "app_uid_<case_number>"
|
||||
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"
|
||||
And that I want to update a resource with the key "case_number" stored in session array as variable "caseNumber_<case_number>"
|
||||
And that I want to update a resource with the key "caseId" stored in session array as variable "caseId_<case_number>"
|
||||
|
||||
|
||||
|
||||
Examples:
|
||||
|
||||
@@ -169,21 +167,19 @@ Scenario: Route a case to the next task in the process
|
||||
|
||||
|
||||
|
||||
Scenario: Cancel a case
|
||||
Scenario Outline: Cancel a case
|
||||
Given PUT this data:
|
||||
"""
|
||||
{
|
||||
|
||||
}
|
||||
"""
|
||||
And I request "cases/<app_uid>/cancel"
|
||||
And I request "cases/app_uid/cancel" with the key "app_uid" stored in session array as variable "app_uid_<case_number>"
|
||||
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"
|
||||
And that I want to update a resource with the key "case_number" stored in session array as variable "caseNumber_<case_number>"
|
||||
And that I want to update a resource with the key "caseId" stored in session array as variable "caseId_<case_number>"
|
||||
|
||||
|
||||
|
||||
Examples:
|
||||
|
||||
@@ -191,21 +187,19 @@ Scenario: Cancel a case
|
||||
| Cancel case 3, created in this script | 3 |
|
||||
|
||||
|
||||
Scenario: Pause a case
|
||||
Scenario Outline: Pause a case
|
||||
Given PUT this data:
|
||||
"""
|
||||
{
|
||||
"unpaused_date": "2016-12-12"
|
||||
}
|
||||
"""
|
||||
And I request "cases/<app_uid>/pause"
|
||||
And I request "cases/app_uid/pause" with the key "app_uid" stored in session array as variable "app_uid_<case_number>"
|
||||
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"
|
||||
And that I want to update a resource with the key "case_number" stored in session array as variable "caseNumber_<case_number>"
|
||||
And that I want to update a resource with the key "caseId" stored in session array as variable "caseId_<case_number>"
|
||||
|
||||
|
||||
|
||||
Examples:
|
||||
|
||||
@@ -213,21 +207,19 @@ Scenario: Pause a case
|
||||
| Pause case 4, created in this script | 4 |
|
||||
|
||||
|
||||
Scenario: Unpause a case
|
||||
Scenario Outline: Unpause a case
|
||||
Given PUT this data:
|
||||
"""
|
||||
{
|
||||
|
||||
}
|
||||
"""
|
||||
And I request "cases/<app_uid>/unpause"
|
||||
And I request "cases/app_uid/unpause" with the key "app_uid" stored in session array as variable "app_uid_<case_number>"
|
||||
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"
|
||||
And that I want to update a resource with the key "case_number" stored in session array as variable "caseNumber_<case_number>"
|
||||
And that I want to update a resource with the key "caseId" stored in session array as variable "caseId_<case_number>"
|
||||
|
||||
|
||||
|
||||
Examples:
|
||||
|
||||
@@ -235,42 +227,41 @@ Scenario: Unpause a case
|
||||
| Unpause case 4, created in this script | 4 |
|
||||
|
||||
|
||||
Scenario: Executes a ProcessMaker trigger for a case
|
||||
Scenario Outline: Executes a ProcessMaker trigger for a case
|
||||
Given PUT this data:
|
||||
"""
|
||||
{
|
||||
|
||||
}
|
||||
"""
|
||||
And I request "cases/<app_uid>/execute-trigger/{tri_uid}"
|
||||
And I request "cases/app_uid/execute-trigger/<tri_uid>" with the key "app_uid" stored in session array as variable "app_uid_<case_number>"
|
||||
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"
|
||||
And that I want to update a resource with the key "case_number" stored in session array as variable "caseNumber_<case_number>"
|
||||
And that I want to update a resource with the key "caseId" stored in session array as variable "caseId_<case_number>"
|
||||
|
||||
|
||||
Examples:
|
||||
|
||||
| test_description | case_number |
|
||||
| | |
|
||||
| test_description | case_number | tri_uid |
|
||||
| Ejecucion de trigger | 5 | 54962158250ec613ba5bc89016850103 |
|
||||
|
||||
|
||||
Scenario: Delete a case
|
||||
Scenario Outline: Delete a case
|
||||
Given PUT this data:
|
||||
"""
|
||||
{
|
||||
|
||||
}
|
||||
"""
|
||||
And I request "cases/<app_uid>"
|
||||
|
||||
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"
|
||||
And that I want to update a resource with the key "case_number" stored in session array as variable "caseNumber_<case_number>"
|
||||
And that I want to update a resource with the key "caseId" stored in session array as variable "caseId_<case_number>"
|
||||
|
||||
|
||||
|
||||
Examples:
|
||||
@@ -280,6 +271,7 @@ Scenario: Delete a case
|
||||
| Delete a case 2, created in this script | 2 |
|
||||
| Delete a case 3, created in this script | 3 |
|
||||
| Delete a case 4, created in this script | 4 |
|
||||
| Delete a case 5, created in this script | 5 |
|
||||
|
||||
|
||||
#Listado de casos
|
||||
|
||||
@@ -26,5 +26,4 @@ Scenario: Create a new case note for specified case
|
||||
Then the response status code should be 201
|
||||
And the response charset is "UTF-8"
|
||||
And the content type is "application/json"
|
||||
And the type is "object"
|
||||
|
||||
And the type is "object"
|
||||
@@ -46,10 +46,7 @@ Scenario: Returns the variables can be system variables and/or case variables.
|
||||
And the "date3" property equals "2014-03-03"
|
||||
And the "date4" property equals "2014-03-01"
|
||||
And the "suggest2" property equals "51049032352d56710347233042615067"
|
||||
And the "suggest2_label" property equals "aaron"
|
||||
|
||||
|
||||
|
||||
And the "suggest2_label" property equals "aaron"
|
||||
And the "sample" property in row 1 of property "grid" equals "jose"
|
||||
And the "currency1" property equals "12,334,444.00"
|
||||
And the "percentage1" property equals "333.00 %"
|
||||
|
||||
@@ -38,58 +38,4 @@ Scenario: Sends variables to a case (negative tests)
|
||||
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"
|
||||
|
||||
|
||||
|
||||
18130826553359171798e40060879912
|
||||
|
||||
"nameany": "wendy344%",
|
||||
"namealphabetic": "nestor123",
|
||||
"namealphanumeric": "rad1233$%",
|
||||
"nameinteger": "342432,7",
|
||||
"namerealnumber": "35353",
|
||||
"nameemail": "wendycolosacom",
|
||||
"namelogin": "sample",
|
||||
"valorreal": "242343253,253.00",
|
||||
"valorinteger": "346436363",
|
||||
"porcentagereal": "64600",
|
||||
"porcentageinteger": "464",
|
||||
"observaciones": "ninguna",
|
||||
"areascolosa": "sample",
|
||||
"areascolosa_label": "sample",
|
||||
"COUNTRY": "BOA",
|
||||
"COUNTRY_label": "Bolivia",
|
||||
"STATE": "aH",
|
||||
"STATE_label": "Chuquisaca",
|
||||
"LOCATION": "SRE",
|
||||
"LOCATION_label": "Sucre",
|
||||
"aprobado": "20",
|
||||
"aprobadohint": "0",
|
||||
"checkbox1": "sample",
|
||||
"checkbox2": "oki",
|
||||
"checkbox3": "Off",
|
||||
"radiogroup1": "hola",
|
||||
"radiogroup1_label": "Primero",
|
||||
"date1": "hola",
|
||||
"date2": "2013-11-08",
|
||||
"date3": "2014-03-09",
|
||||
"date4": "2014-03-02",
|
||||
"suggest2": "51049032352d56710347233042615067",
|
||||
"suggest2_label": "sample",
|
||||
"grid": {
|
||||
"1": {
|
||||
"sample": "hugo",
|
||||
"currency1": "2,424,234.00",
|
||||
"percentage1": "354.00 %",
|
||||
"suggest1_label": "dorothy",
|
||||
"suggest1": "81205219852d56719a97fc3086456770",
|
||||
"textarea1": "ninguno",
|
||||
"dropdown1": "uno",
|
||||
"yesno1": "0",
|
||||
"checkbox1": "On",
|
||||
"date1": "2014-03-20",
|
||||
"link1": "http://www.google.com/",
|
||||
"link1_label": "link1",
|
||||
"file1": "Tuesday.docx",
|
||||
"dropdown1_label": "uno"
|
||||
And the type is "object"
|
||||
@@ -1,3 +1,12 @@
|
||||
@ProcessMakerMichelangelo @RestAPI
|
||||
Feature: Output Documents cases Main Tests
|
||||
Requirements:
|
||||
a workspace with one case of the process "Test Output Document Case"
|
||||
and there are six Output Documents in the process
|
||||
|
||||
Background:
|
||||
Given that I have a valid access_token
|
||||
|
||||
Scenario Outline: Pull information of an inexistent input document. should return an error
|
||||
Given I request "cases/64654381053382b8bb4c415067063003/input-document/<input-document>"
|
||||
Then the response status code should be 200
|
||||
|
||||
Reference in New Issue
Block a user