Avance de los features Database Connections, Process y Report Table

This commit is contained in:
Wendy Nestor
2014-02-11 08:47:26 -04:00
parent dcc9c8eedb
commit fbae93dac4
4 changed files with 129 additions and 19 deletions

View File

@@ -13,6 +13,31 @@ Feature: DataBase Connections Main Tests
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the response has 0 record And the response has 0 record
Scenario Outline: Test database connection to test
Given POST this data:
"""
{
"dbs_type": "<dbs_type>",
"dbs_server": "<dbs_server>",
"dbs_database_name": "<dbs_database_name>",
"dbs_username": "<dbs_username>",
"dbs_password": "<dbs_password>",
"dbs_port": <dbs_port>,
"dbs_encode": "<dbs_encode>",
"dbs_description": "<dbs_description>"
}
"""
And I request "project/74737540052e1641ab88249082085472/database-connection/test"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
Examples:
| test_description | dbs_uid_number | dbs_type | dbs_server | dbs_database_name | dbs_username | dbs_password | dbs_port | dbs_encode | dbs_description |
| Test mysql db connection | 1 | mysql | 192.168.11.71 | rb_cochalo | root | atopml2005 | 3306 | utf8 | mysql connection |
Scenario Outline: Create a new database connection Scenario Outline: Create a new database connection
Given POST this data: Given POST this data:
@@ -30,7 +55,6 @@ Feature: DataBase Connections Main Tests
""" """
And I request "project/74737540052e1641ab88249082085472/database-connection" And I request "project/74737540052e1641ab88249082085472/database-connection"
Then the response status code should be 201 Then the response status code should be 201
And store "dbs_uid" in session array
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"
@@ -39,17 +63,15 @@ Feature: DataBase Connections Main Tests
Examples: Examples:
| test_description | dbs_uid_number | dbs_type | dbs_server | dbs_database_name | dbs_username | dbs_password | dbs_port | dbs_encode | dbs_description | | test_description | dbs_uid_number | dbs_type | dbs_server | dbs_database_name | dbs_username | dbs_password | dbs_port | dbs_encode | dbs_description |
| | 1 | mysql | 192.168.11.71 | rb_cochalo | root | atopml2005 | 3306 | utf8 | conection correcta | | Create mysql db connection | 1 | mysql | 192.168.11.71 | rb_cochalo | root | atopml2005 | 3306 | utf8 | mysql connection |
| | 2 | postgresql | 192.168.11.71 | rb_cochalo | root | atopml2005 | 3306 | utf8 | conection correcta |
| | 3 | microsoftsqlserver | 192.168.11.71 | rb_cochalo | root | atopml2005 | 3306 | utf8 | conection correcta |
Scenario: Get the DataBase Connections List when there are exactly three DataBase Connections Scenario: Get the DataBase Connections List when there are exactly three DataBase Connections
Given I request "project/74737540052e1641ab88249082085472/database-connections" Given I request "project/74737540052e1641ab88249082085472/database-connections"
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 response has 3 record And the response has 1 record
Scenario Outline: Update a database connection Scenario Outline: Update a database connection
@@ -75,10 +97,8 @@ Feature: DataBase Connections Main Tests
Examples: Examples:
| test_description | dbs_uid_number | dbs_type | dbs_server | dbs_database_name | dbs_username | dbs_password | dbs_port | dbs_encode | dbs_description | | test_description | dbs_uid_number | dbs_type | dbs_server | dbs_database_name | dbs_username | dbs_password | dbs_port | dbs_encode | dbs_description |
| | 1 | mysql | 192.168.11.71 | rb_cochalo | root | atopml2005 | 3306 | utf8 | conection correcta | | Update mysql db connection | 1 | mysql | 192.168.11.71 | rb_cochalo | root | atopml2005 | 3306 | utf8 | update mysql connection |
| | 2 | postgresql | 192.168.11.71 | rb_cochalo | root | atopml2005 | 3306 | utf8 | conection correcta |
| | 3 | microsoftsqlserver | 192.168.11.71 | rb_cochalo | root | atopml2005 | 3306 | utf8 | conection correcta |
Scenario Outline: Get a single database connection and check some properties Scenario Outline: Get a single database connection and check some properties
@@ -98,10 +118,8 @@ Feature: DataBase Connections Main Tests
Examples: Examples:
| test_description | dbs_uid_number | dbs_type | dbs_server | dbs_database_name | dbs_username | dbs_password | dbs_port | dbs_encode | dbs_description | | test_description | dbs_uid_number | dbs_type | dbs_server | dbs_database_name | dbs_username | dbs_password | dbs_port | dbs_encode | dbs_description |
| | 1 | mysql | 192.168.11.71 | rb_cochalo | root | atopml2005 | 3306 | utf8 | conection correcta | | Update mysql db connection | 1 | mysql | 192.168.11.71 | rb_cochalo | rb_cochalo | atopml2005 | 3306 | utf8 | update mysql connection |
| | 2 | postgresql | 192.168.11.71 | rb_cochalo | root | atopml2005 | 3306 | utf8 | conection correcta |
| | 3 | microsoftsqlserver | 192.168.11.71 | rb_cochalo | root | atopml2005 | 3306 | utf8 | conection correcta |
Scenario Outline: Delete all Database Connection created previously in this script Scenario Outline: Delete all Database Connection created previously in this script
@@ -115,8 +133,6 @@ Feature: DataBase Connections Main Tests
| dbs_uid_number | | dbs_uid_number |
| 1 | | 1 |
| 2 |
| 3 |
Scenario: Get the DataBase Connections List when there are exactly zero DataBase Connections Scenario: Get the DataBase Connections List when there are exactly zero DataBase Connections

View File

@@ -0,0 +1,76 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Process of a Project Resources Negative Tests
Background:
Given that I have a valid access_token
Scenario Outline: Update Process
Given PUT this data:
"""
{
"pro_title" : "<pro_title>",
"pro_description" : "<pro_description>",
"pro_parent" : "<pro_parent>",
"pro_time" : "<pro_time>",
"pro_timeunit" : "<pro_timeunit>",
"pro_status" : "<pro_status>",
"pro_type_day" : "<pro_type_day>",
"pro_type" : "<pro_type>",
"pro_assignment" : "<pro_assignment>",
"pro_show_map" : "<pro_show_map>",
"pro_show_message" : "<pro_show_message>",
"pro_subprocess" : "<pro_subprocess>",
"pro_tri_deleted" : "<pro_tri_deleted>",
"pro_tri_canceled" : "<pro_tri_canceled>",
"pro_tri_paused" : "<pro_tri_paused>",
"pro_tri_reassigned" : "<pro_tri_reassigned>",
"pro_show_delegate" : "<pro_show_delegate>",
"pro_show_dynaform" : "<pro_show_dynaform>",
"pro_category" : "<pro_category>",
"pro_sub_category" : "<pro_sub_category>",
"pro_industry" : "<pro_industry>",
"pro_update_date" : "<pro_update_date>",
"pro_create_date" : "<pro_create_date>",
"pro_create_user" : "<pro_create_user>",
"pro_debug" : "<pro_debug>",
"pro_derivation_screen_tpl": "<pro_derivation_screen_tpl>",
"pro_summary_dynaform" : "<pro_summary_dynaform>",
"pro_calendar" : "<pro_calendar>"
}
"""
And I request "project/<project>/process"
Then the response status code should be <error_code>
And the response status message should have the following text "<error_message>"
Examples:
| test_description | project | pro_title | pro_description | pro_parent | pro_time | pro_timeunit | pro_status | pro_type_day | pro_type | pro_assignment | pro_show_map | pro_show_message | pro_subprocess | pro_tri_deleted | pro_tri_canceled | pro_tri_paused | pro_tri_reassigned | pro_show_delegate | pro_show_dynaform | pro_category | pro_sub_category | pro_industry | pro_update_date | pro_create_date | pro_create_user | pro_debug | pro_derivation_screen_tpl | pro_summary_dynaform | pro_calendar | error_code | error_message |
| Invalid prj_uid | 79409700000000000004342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | prj_uid |
| Invalid pro_parent | 58773281752f50297d6bf00047802053 | Test Process 1 | | 5877300000000000006bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_parent |
| Invalid pro_time | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 5 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_time |
| Invalid pro_timeunit | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | HOURS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_timeunit |
| Invalid pro_status | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | VALOR | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_status |
| Invalid pro_type | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | INPUT | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_type |
| Invalid pro_assignment | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 4 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_assignment |
| Invalid pro_show_map | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 5 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_show_map |
| Invalid pro_show_message | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 4 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_show_message |
| Invalid pro_subprocess | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 4 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_subprocess |
| Invalid pro_tri_deleted | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | 4541388955000000000e5a4073302257 | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_tri_deleted |
| Invalid pro_tri_canceled | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | 4541380000000000087e5a4073302257 | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_tri_canceled |
| Invalid pro_tri_paused | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | 4541388900000000087e5a4073302257 | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_tri_paused |
| Invalid pro_tri_reassigned | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | 4541380000000000000e5a4073302257 | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_tri_reassigned |
| Invalid pro_show_delegate | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 5 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_show_delegate |
| Invalid pro_show_dynaform | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 8 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_show_dynaform |
| Invalid pro_category | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | 4541380000000000000e5a4073302257 | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_category |
| Invalid pro_industry | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 4 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_industry |
| Invalid pro_create_date | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 01-98-2014 110:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_create_date |
| Invalid pro_create_user | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 0000000000003551 | 0 | | | | 400 | pro_create_user |
| Invalid pro_debug | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 5 | | | | 400 | pro_debug |
| Invalid pro_summary_dynaform | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | 954104947190420f51086854718 | | 400 | pro_summary_dynaform |
| Invalid pro_calendar | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | 954104947190420f51086854718 | 400 | pro_calendar |
| Field required prj_uid | | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | prj_uid |
| Same Name pro_title | 79409754952f8f5110c4342001470580 | Test | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 200 | |
| Same Name pro_title | 58773281752f50297d6bf00047802053 | Test | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_title |
| Set initial values | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-11 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 200 | |
| Set initial values | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-11 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 200 | |

View File

@@ -61,6 +61,8 @@ Scenario: Verify that there are 2 report tables
And the response has 2 record And the response has 2 record
Scenario Outline: Update a created report tables Scenario Outline: Update a created report tables
Given PUT this data: Given PUT this data:
""" """
@@ -118,6 +120,20 @@ Scenario Outline: Get a details of created report tables
| | 922677707524ac7417ce345089010125 | 1 | REPORT_TABLE_1 | Report Table Desc Updated 1 | workflow | NORMAL | | nameany | NAME_ANY | Name Any | VARCHAR | 64 | date1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 150 | | | 922677707524ac7417ce345089010125 | 1 | REPORT_TABLE_1 | Report Table Desc Updated 1 | workflow | NORMAL | | nameany | NAME_ANY | Name Any | VARCHAR | 64 | date1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 150 |
| | 922677707524ac7417ce345089010125 | 2 | REPORT_TABLE_2 | Report Table Desc Updated 2 | workflow | GRID | grid | text1 | TEXT_1 | Text 1 | VARCHAR | 64 | fecha1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 150 | | | 922677707524ac7417ce345089010125 | 2 | REPORT_TABLE_2 | Report Table Desc Updated 2 | workflow | GRID | grid | text1 | TEXT_1 | Text 1 | VARCHAR | 64 | fecha1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 150 |
Scenario Outline: Populate report tables
Given I request "project/<project>/report-table/rep_uid/populate" with the key "rep_uid" stored in session array as variable "rep_uid_<rep_uid_number>"
Then the response status code should be 200
Examples:
| test_description | project | rep_uid_number | rep_tab_name | rep_tab_dsc | rep_tab_connection | rep_tab_type | rep_tab_grid | fld_dyn_1 | fld_name_1 | fld_label_1 | fld_type_1 | fld_size_1 | fld_dyn_2 | fld_name_2 | fld_label_2 | fld_type_2 | fld_size_2 | fld_dyn_3 | fld_name_3 | fld_label_3 | fld_type_3 | fld_size_3 |
| | 922677707524ac7417ce345089010125 | 1 | REPORT_TABLE_1 | Report Table Desc Updated 1 | workflow | NORMAL | | nameany | NAME_ANY | Name Any | VARCHAR | 64 | date1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 150 |
| | 922677707524ac7417ce345089010125 | 2 | REPORT_TABLE_2 | Report Table Desc Updated 2 | workflow | GRID | grid | text1 | TEXT_1 | Text 1 | VARCHAR | 64 | fecha1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 150 |
Scenario Outline: Delete a created report tables Scenario Outline: Delete a created report tables
Given that I want to delete a resource with the key "rep_uid" stored in session array as variable "rep_uid_<rep_uid_number>" Given that I want to delete a resource with the key "rep_uid" stored in session array as variable "rep_uid_<rep_uid_number>"
And I request "project/<project>/report-table" And I request "project/<project>/report-table"
@@ -128,8 +144,8 @@ Scenario Outline: Delete a created report tables
Examples: Examples:
| test_description | project | rep_uid_number | | test_description | project | rep_uid_number |
| | 922677707524ac7417ce345089010125 | 1 | | | 922677707524ac7417ce345089010125 | 100 |
| | 922677707524ac7417ce345089010125 | 2 | | | 922677707524ac7417ce345089010125 | 200 |
Scenario: Verify that the report tables were deleted correctly Scenario: Verify that the report tables were deleted correctly
Given I request "project/922677707524ac7417ce345089010125/report-tables" Given I request "project/922677707524ac7417ce345089010125/report-tables"

View File

@@ -1195,6 +1195,7 @@ class RestContext extends BehatContext
public function theResponseStatusMessageShouldHaveTheFollowingText($arg1) public function theResponseStatusMessageShouldHaveTheFollowingText($arg1)
{ {
if( $arg1!=""){
$message=""; $message="";
if($bodyResponse=json_decode($this->_response->getBody(true))){ if($bodyResponse=json_decode($this->_response->getBody(true))){
if(isset($bodyResponse->error->message)){ if(isset($bodyResponse->error->message)){
@@ -1213,6 +1214,7 @@ class RestContext extends BehatContext
throw new \Exception('This is not a valid response'); throw new \Exception('This is not a valid response');
} }
}