From 266cfbb39bfc10a624977aa4e5bc2415073dc1d8 Mon Sep 17 00:00:00 2001 From: Jmateusribeiro <47777973+Jmateusribeiro@users.noreply.github.com> Date: Mon, 3 Jun 2024 09:19:56 +0100 Subject: [PATCH] robocop disable some rules --- tests/API_BDD_with_csv.robot | 2 +- tests/API_keyword_driven.robot | 16 ++++------------ 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/tests/API_BDD_with_csv.robot b/tests/API_BDD_with_csv.robot index 2869638..ab3105d 100644 --- a/tests/API_BDD_with_csv.robot +++ b/tests/API_BDD_with_csv.robot @@ -8,10 +8,10 @@ Suite Setup Load Environment Variables *** Test Cases *** +# robocop: off=too-few-calls-in-test-case Scenario: Successful Registration With ${email} [Documentation] Tests successful registration with different email addresses from a CSV file. [Template] Scenario Outline: Successful Registration - Log Test Executed from csv *** Keywords *** diff --git a/tests/API_keyword_driven.robot b/tests/API_keyword_driven.robot index 1a7b2d7..bfa2de8 100644 --- a/tests/API_keyword_driven.robot +++ b/tests/API_keyword_driven.robot @@ -6,33 +6,25 @@ Resource ../resources/services/regres_registration_API.resource Suite Setup Load Environment Variables -*** Variables *** -${EMAIL_EVE} eve.holt@reqres.in -${PASSWORD_EVE} pistol -${EMAIL_MICHAEL} michael.lawson@reqres.in -${PASSWORD_MICHAEL} xpto -${EMAIL_LINDSAY} lindsay.ferguson@reqres.in -${PASSWORD_LINDSAY} xpto - - *** Test Cases *** +# robocop: off=wrong-case-in-keyword-name Successful Registration As Eve [Documentation] Registers a user with email eve.holt@reqres.in and password pistol, ... then verifies the correct token is returned. - Email And Password Are Defined As ${EMAIL_EVE} And ${PASSWORD_EVE} + Email And Password Are Defined As eve.holt@reqres.in And pistol Registration Is Executed The Correct Token Is Returned Successful Registration As Michael [Documentation] Registers a user with email michael.lawson@reqres.in and password xpto, ... then verifies the correct token is returned. - Email And Password Are Defined As ${EMAIL_MICHAEL} And ${PASSWORD_MICHAEL} + Email And Password Are Defined As michael.lawson@reqres.in And xpto Registration Is Executed The Correct Token Is Returned Successful Registration As Lindsay [Documentation] Registers a user with email lindsay.ferguson@reqres.in and password xpto, ... then verifies the correct token is returned. - Email And Password Are Defined As ${EMAIL_LINDSAY} And ${PASSWORD_LINDSAY} + Email And Password Are Defined As lindsay.ferguson@reqres.in And xpto Registration Is Executed The Correct Token Is Returned