From c821e91b6d20dcd8d08573c201befd96a21c61f5 Mon Sep 17 00:00:00 2001 From: m3ik0 Date: Tue, 13 Jan 2015 14:15:29 -0400 Subject: [PATCH] Were fixed the negatives tests related to start tasks with bad credentials. --- .../negative_tests_project_user.feature | 38 ++++++++++--------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/features/backend/projects/project_user/negative_tests_project_user.feature b/features/backend/projects/project_user/negative_tests_project_user.feature index d2ac8b4b8..2982da15c 100644 --- a/features/backend/projects/project_user/negative_tests_project_user.feature +++ b/features/backend/projects/project_user/negative_tests_project_user.feature @@ -1,36 +1,38 @@ @ProcessMakerMichelangelo @RestAPI Feature: Project User Resources Negative Tests - Background: Given that I have a valid access_token - Scenario: Get a list of start task of a specific user - Given I request "project/1265557095225ff5c688f46031700471/user/23348978752d567259ea6f3004731611/starting-tasks" + + # GET /api/1.0/{workspace}/project//user//starting-tasks + # Get started tasks list by a user + Scenario: Get a list of start task of a specific user + Given I request "project/1265557095225ff5c688f46031700471/user/23348978752d567259ea6f3004731611/starting-tasks" Then the response status code should be 400 And the response charset is "UTF-8" And the content type is "application/json" -Scenario Outline: Verify if a user can start a task with bad parameters (negative tests) - Given POST this data: - """ + # POST /api/1.0/{workspace}/project//ws/user/can-start-task + # Start a task with bad credentials + Scenario Outline: Verify if a user can start a task with bad parameters (negative tests) + Given POST this data: + """ { "act_uid": "", "username": "", "password": "" } """ - And I request "project//ws/user/can-start-task" - Then the response status code should be - And the response status message should have the following text "" - + And I request "project//ws/user/can-start-task" + Then the response status code should be + And the response status message should have the following text "" - Examples: - - | test_description | project | act_uid | username | password | error_code | error_message | - | Invalid act_uid | 1265557095225ff5c688f46031700471 | 00000000009999f5fe54de2005407079 | admin | sample123* | 400 | act_uid | - | Invalid username | 1265557095225ff5c688f46031700471 | 1546168275225ff617b6a34046164891 | ain | admin | 400 | usr_uid | - | Invalid password | 1265557095225ff5c688f46031700471 | 1546168275225ff617b6a34046164891 | erick | sle | 400 | usr_uid | - | Field requered project | | 46941969352af5be2ab3f39001216717 | admin | admin | 400 | prj_uid | - | Field requered act_uid | 1265557095225ff5c688f46031700471 | | admin | admin | 400 | act_uid | + Examples: + | test_description | project | act_uid | username | password | error_code | error_message | + | Invalid act_uid | 1265557095225ff5c688f46031700471 | 00000000009999f5fe54de2005407079 | admin | sample123* | 400 | act_uid | + | Invalid username | 1265557095225ff5c688f46031700471 | 1546168275225ff617b6a34046164891 | ain | admin | 400 | User not registered! | + | Invalid password | 1265557095225ff5c688f46031700471 | 1546168275225ff617b6a34046164891 | erick | sle | 400 | Wrong password | + | Field requered project | | 46941969352af5be2ab3f39001216717 | admin | admin | 400 | prj_uid | + | Field requered act_uid | 1265557095225ff5c688f46031700471 | | admin | admin | 400 | act_uid |