Merged in cochalo/processmaker (pull request #72)
Correcion en los behats de Activity y Triggers
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
@ProcessMakerMichelangelo @RestAPI
|
@ProcessMakerMichelangelo @RestAPI
|
||||||
Feature: Testing activity
|
Feature: Activity Resources
|
||||||
|
|
||||||
@1: TEST FOR GET ACTIVITY /-----------------------------------------------------------------------
|
@1: TEST FOR GET ACTIVITY /-----------------------------------------------------------------------
|
||||||
Scenario: Get a activity
|
Scenario: Get a activity
|
||||||
Given that I have a valid access_token
|
Given that I have a valid access_token
|
||||||
|
|||||||
@@ -1,7 +1,16 @@
|
|||||||
@ProcessMakerMichelangelo @RestAPI
|
@ProcessMakerMichelangelo @RestAPI
|
||||||
Feature: Testing triggers
|
Feature: Triggers Resources
|
||||||
|
|
||||||
@1: TEST FOR POST TRIGGER /--------------------------------------------------------------------
|
@1: TEST FOR GET TRIGGERS /--------------------------------------------------------------------
|
||||||
|
Scenario: List all the events (result 1 trigger)
|
||||||
|
Given that I have a valid access_token
|
||||||
|
And I request "project/251815090529619a99a2bf4013294414/triggers"
|
||||||
|
Then the response status code should be 200
|
||||||
|
And the response charset is "UTF-8"
|
||||||
|
And the response has 1 record
|
||||||
|
|
||||||
|
|
||||||
|
@2: TEST FOR POST TRIGGER /--------------------------------------------------------------------
|
||||||
Scenario: Create a trigger
|
Scenario: Create a trigger
|
||||||
Given that I have a valid access_token
|
Given that I have a valid access_token
|
||||||
And POST this data:
|
And POST this data:
|
||||||
@@ -16,7 +25,7 @@ Feature: Testing triggers
|
|||||||
And store "tri_uid" in session array
|
And store "tri_uid" in session array
|
||||||
|
|
||||||
|
|
||||||
@2: TEST FOR PUT TRIGGER /-----------------------------------------------------------------------
|
@3: TEST FOR PUT TRIGGER /---------------------------------------------------------------------
|
||||||
Scenario: Update a trigger
|
Scenario: Update a trigger
|
||||||
Given that I have a valid access_token
|
Given that I have a valid access_token
|
||||||
And PUT this data:
|
And PUT this data:
|
||||||
@@ -33,7 +42,7 @@ Feature: Testing triggers
|
|||||||
And the type is "object"
|
And the type is "object"
|
||||||
|
|
||||||
|
|
||||||
@3: TEST FOR GET TRIGGER /-----------------------------------------------------------------------
|
@4: TEST FOR GET TRIGGER /---------------------------------------------------------------------
|
||||||
Scenario: Get a trigger
|
Scenario: Get a trigger
|
||||||
Given that I have a valid access_token
|
Given that I have a valid access_token
|
||||||
And that I want to get a resource with the key "tri_uid" stored in session array
|
And that I want to get a resource with the key "tri_uid" stored in session array
|
||||||
@@ -45,11 +54,29 @@ Feature: Testing triggers
|
|||||||
And that "tri_description" is set to "descripcion editada"
|
And that "tri_description" is set to "descripcion editada"
|
||||||
|
|
||||||
|
|
||||||
@4: TEST FOR DELETE TRIGGER /-----------------------------------------------------------------------
|
@5: TEST FOR GET TRIGGERS /--------------------------------------------------------------------
|
||||||
|
Scenario: List all the events (result 2 trigger)
|
||||||
|
Given that I have a valid access_token
|
||||||
|
And I request "project/251815090529619a99a2bf4013294414/triggers"
|
||||||
|
Then the response status code should be 200
|
||||||
|
And the response charset is "UTF-8"
|
||||||
|
And the response has 2 record
|
||||||
|
|
||||||
|
|
||||||
|
@6: TEST FOR DELETE TRIGGER /-----------------------------------------------------------------------
|
||||||
Scenario: Get a trigger
|
Scenario: Get a trigger
|
||||||
Given that I have a valid access_token
|
Given that I have a valid access_token
|
||||||
And that I want to delete a resource with the key "tri_uid" stored in session array
|
And that I want to delete a resource with the key "tri_uid" stored in session array
|
||||||
And I request "project/251815090529619a99a2bf4013294414/trigger"
|
And I request "project/251815090529619a99a2bf4013294414/trigger"
|
||||||
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 "object"
|
And the type is "object"
|
||||||
|
|
||||||
|
|
||||||
|
@7: TEST FOR GET TRIGGERS /--------------------------------------------------------------------
|
||||||
|
Scenario: List all the events (result 1 trigger)
|
||||||
|
Given that I have a valid access_token
|
||||||
|
And I request "project/251815090529619a99a2bf4013294414/triggers"
|
||||||
|
Then the response status code should be 200
|
||||||
|
And the response charset is "UTF-8"
|
||||||
|
And the response has 1 record
|
||||||
Reference in New Issue
Block a user