Arreglos en cases actions, case note, case variables y output document

This commit is contained in:
Wendy Nestor
2014-04-03 10:22:37 -04:00
parent e564861a67
commit 3e2420bc55
5 changed files with 29 additions and 76 deletions

View File

@@ -121,7 +121,7 @@ Scenario: Returns a list of the cases for the logged in user (Draft)
Then the response status code should be 200 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 "array" And the type is "array"
And the response has 17 records And the response has 18 records
Scenario Outline: Reassigns a case to a different user, from user "administrator" to user "aaron" Scenario Outline: Reassigns a case to a different user, from user "administrator" to user "aaron"
@@ -129,10 +129,10 @@ Scenario Outline: Reassigns a case to a different user, from user "administrator
""" """
{ {
"usr_uid_source": "00000000000000000000000000000001", "usr_uid_source": "00000000000000000000000000000001",
"usr_uid_target": "51049032352d56710347233042615067", "usr_uid_target": "51049032352d56710347233042615067"
} }
""" """
And I request "cases/<app_uid>/reassign-case" with the key "app_uid" stored in session array as variable "app_uid_<case_number>" 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 Then the response status code should be 200
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"
@@ -145,7 +145,7 @@ Scenario Outline: Reassigns a case to a different user, from user "administrator
| Reassig case 1, created in this script | 1 | | 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: Given PUT this data:
""" """
{ {
@@ -153,7 +153,7 @@ Scenario: Route a case to the next task in the process
"del_index": "1" "del_index": "1"
} }
""" """
And I request "cases/<app_uid>/route-case" with the key "app_uid" stored in session array as variable "app_uid_<case_number>" 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 Then the response status code should be 200
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"
@@ -167,14 +167,14 @@ Scenario: Route a case to the next task in the process
Scenario: Cancel a case Scenario Outline: Cancel a case
Given PUT this data: Given PUT this data:
""" """
{ {
} }
""" """
And I request "cases/<app_uid>/cancel" with the key "app_uid" stored in session array as variable "app_uid_<case_number>" 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 Then the response status code should be 200
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"
@@ -187,14 +187,14 @@ Scenario: Cancel a case
| Cancel case 3, created in this script | 3 | | Cancel case 3, created in this script | 3 |
Scenario: Pause a case Scenario Outline: Pause a case
Given PUT this data: Given PUT this data:
""" """
{ {
"unpaused_date": "2016-12-12" "unpaused_date": "2016-12-12"
} }
""" """
And I request "cases/<app_uid>/pause" with the key "app_uid" stored in session array as variable "app_uid_<case_number>" 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 Then the response status code should be 200
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"
@@ -207,14 +207,14 @@ Scenario: Pause a case
| Pause case 4, created in this script | 4 | | Pause case 4, created in this script | 4 |
Scenario: Unpause a case Scenario Outline: Unpause a case
Given PUT this data: Given PUT this data:
""" """
{ {
} }
""" """
And I request "cases/<app_uid>/unpause" with the key "app_uid" stored in session array as variable "app_uid_<case_number>" 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 Then the response status code should be 200
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"
@@ -227,14 +227,14 @@ Scenario: Unpause a case
| Unpause case 4, created in this script | 4 | | 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: Given PUT this data:
""" """
{ {
} }
""" """
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>" 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 Then the response status code should be 200
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"
@@ -247,19 +247,21 @@ Scenario: Executes a ProcessMaker trigger for a case
| Ejecucion de trigger | 5 | 54962158250ec613ba5bc89016850103 | | Ejecucion de trigger | 5 | 54962158250ec613ba5bc89016850103 |
Scenario: Delete a case Scenario Outline: Delete a case
Given PUT this data: Given 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" And I request "cases"
Then the response status code should be 200 Then the response status code should be 200
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"
And that I want to delete a resource with the key "app_uid" stored in session array as variable "app_uid_<case_number>"
Examples: Examples:

View File

@@ -26,5 +26,4 @@ Scenario: Create a new case note for specified case
Then the response status code should be 201 Then the response status code should be 201
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the content type is "application/json" And the content type is "application/json"
And the type is "object" And the type is "object"

View File

@@ -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 "date3" property equals "2014-03-03"
And the "date4" property equals "2014-03-01" And the "date4" property equals "2014-03-01"
And the "suggest2" property equals "51049032352d56710347233042615067" 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 "sample" property in row 1 of property "grid" equals "jose"
And the "currency1" property equals "12,334,444.00" And the "currency1" property equals "12,334,444.00"
And the "percentage1" property equals "333.00 %" And the "percentage1" property equals "333.00 %"

View File

@@ -38,58 +38,4 @@ Scenario: Sends variables to a case (negative tests)
Then the response status code should be 200 Then the response status code should be 200
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"
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"

View File

@@ -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 Scenario Outline: Pull information of an inexistent input document. should return an error
Given I request "cases/64654381053382b8bb4c415067063003/input-document/<input-document>" Given I request "cases/64654381053382b8bb4c415067063003/input-document/<input-document>"
Then the response status code should be 200 Then the response status code should be 200