Modificaciones a los features process variables, trigger wizard
This commit is contained in:
@@ -5,12 +5,6 @@ Feature: Process Variables Negative Tests
|
||||
Background:
|
||||
Given that I have a valid access_token
|
||||
|
||||
|
||||
Scenario: Get all variables of a Process bad parameters (negative tests)
|
||||
And I request "project/3306142435318cd22d1eba2015305561/variables"
|
||||
Then the response status code should be 400
|
||||
|
||||
|
||||
Scenario Outline: Get all variables of a Grid bad parameters (negative tests)
|
||||
Given I request "project/14414793652a5d718b65590036026581/grid/00000000000000000000000000000000/variables"
|
||||
And the content type is "application/json"
|
||||
@@ -22,12 +16,3 @@ Feature: Process Variables Negative Tests
|
||||
Examples:
|
||||
| status_code | status_message |
|
||||
| 400 | grid_uid |
|
||||
|
||||
|
||||
Scenario: Get all variables of a Grid bad parameters (negative tests)
|
||||
Given I request "project/3306142435318cd22d1eba2015305561/grid/8246998615318cd7cc451d2089449499/variables"
|
||||
And that "var_name" is set to "desarrollo"
|
||||
Then the response status code should be 400
|
||||
And the response status message should have the following text "var_name"
|
||||
|
||||
|
||||
@@ -29,8 +29,6 @@ Feature: Group
|
||||
| 5 | pmTalend | Talend ETL Integration | class.pmTalend.pmFunctions.php |
|
||||
|
||||
|
||||
|
||||
|
||||
Scenario Outline: Get a single Library
|
||||
And I request "project/14414793652a5d718b65590036026581/trigger-wizard/<lib_name>"
|
||||
And the content type is "application/json"
|
||||
@@ -227,6 +225,7 @@ Scenario Outline: Create new Trigger: createDWS
|
||||
And that "tri_type" is set to "<tri_type>"
|
||||
|
||||
Examples:
|
||||
|
||||
| i | lib_name | fn_name | tri_title | tri_description | tri_type |
|
||||
| 0 | pmFunctions | PMFAddAttachmentToArray | My trigger... | ... | SCRIPT |
|
||||
| 1 | pmTrSharepoint | createDWS | Test DWS | | SCRIPT |
|
||||
|
||||
@@ -47,7 +47,7 @@ Feature: Triggers Wizard Negative Tests
|
||||
| Field required project | | pmFunctions | PMFAddAttachmentToArray | My trigger | sample | SCRIPT | array(1, 2) | 1 | 2 | My Copy({i}) | $respuesta | 400 | prj_uid |
|
||||
| Field required tri_title | 14414793652a5d718b65590036026581 | pmFunctions | PMFAddAttachmentToArray | | sample | SCRIPT | array(1, 2) | 1 | 2 | My Copy({i}) | $respuesta | 400 | tri_title |
|
||||
| Field required tri_type | 14414793652a5d718b65590036026581 | pmFunctions | PMFAddAttachmentToArray | My trigger | sample | | array(1, 2) | 1 | 2 | My Copy({i}) | $respuesta | 400 | tri_type |
|
||||
| Field required tri_params input | 14414793652a5d718b65590036026581 | pmFunctions | PMFAddAttachmentToArray | My trigger | sample | SCRIPT | | | | | $respuesta | 400 | tri_params |
|
||||
| Field required tri_params output | 14414793652a5d718b65590036026581 | pmFunctions | PMFAddAttachmentToArray | My trigger | sample | SCRIPT | array(1, 2) | 1 | 2 | My Copy({i}) | | 400 | tri_params |
|
||||
| Field required tri_params input | 14414793652a5d718b65590036026581 | pmFunctions | PMFAddAttachmentToArray | My trigger | sample | SCRIPT | | | | | $respuesta | 400 | arrayData |
|
||||
| Field required tri_params output | 14414793652a5d718b65590036026581 | pmFunctions | PMFAddAttachmentToArray | My trigger | sample | SCRIPT | array(1, 2) | 1 | 2 | My Copy({i}) | | 400 | tri_answer |
|
||||
| Invalid lib_name | 14414793652a5d718b65590036026581 | processmakerfunction | PMFAddAttachmentToArray | My trigger | sample | SCRIPT | array(1, 2) | 1 | 2 | My Copy({i}) | $respuesta | 400 | lib_name |
|
||||
| Invalid tri_type | 14414793652a5d718b65590036026581 | pmFunctions | PMFAddAttachmentToArray | My trigger | sample | sample | array(1, 2) | 1 | 2 | My Copy({i}) | $respuesta | 400 | tri_type |
|
||||
@@ -931,6 +931,11 @@ class RestContext extends BehatContext
|
||||
*/
|
||||
public function theResponseStatusCodeShouldBe($httpStatus)
|
||||
{
|
||||
if(!(isset($this->_response))){
|
||||
throw new \Exception('HTTP code does not match ' . $httpStatus .
|
||||
' (actual: No response defined)'
|
||||
);
|
||||
}
|
||||
if ((string)$this->_response->getStatusCode() !== $httpStatus) {
|
||||
$message="";
|
||||
if($bodyResponse=json_decode($this->_response->getBody(true))){
|
||||
|
||||
Reference in New Issue
Block a user