diff --git a/features/backend/project_activity_resources/activity.feature b/features/backend/project_activity_resources/activity.feature index cf81cef31..990819bd7 100644 --- a/features/backend/project_activity_resources/activity.feature +++ b/features/backend/project_activity_resources/activity.feature @@ -1,5 +1,6 @@ @ProcessMakerMichelangelo @RestAPI -Feature: Testing activity +Feature: Activity Resources + @1: TEST FOR GET ACTIVITY /----------------------------------------------------------------------- Scenario: Get a activity Given that I have a valid access_token diff --git a/features/backend/triggers_resources/triggers.feature b/features/backend/triggers_resources/triggers.feature index c137e9be4..126ee2c35 100644 --- a/features/backend/triggers_resources/triggers.feature +++ b/features/backend/triggers_resources/triggers.feature @@ -1,7 +1,16 @@ @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 Given that I have a valid access_token And POST this data: @@ -16,7 +25,7 @@ Feature: Testing triggers And store "tri_uid" in session array - @2: TEST FOR PUT TRIGGER /----------------------------------------------------------------------- + @3: TEST FOR PUT TRIGGER /--------------------------------------------------------------------- Scenario: Update a trigger Given that I have a valid access_token And PUT this data: @@ -33,7 +42,7 @@ Feature: Testing triggers And the type is "object" - @3: TEST FOR GET TRIGGER /----------------------------------------------------------------------- + @4: TEST FOR GET TRIGGER /--------------------------------------------------------------------- Scenario: Get a trigger 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 @@ -45,11 +54,29 @@ Feature: Testing triggers 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 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 I request "project/251815090529619a99a2bf4013294414/trigger" Then the response status code should be 200 And the response charset is "UTF-8" - And the type is "object" \ No newline at end of file + 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 \ No newline at end of file