-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Jmateusribeiro/robocop-lint-action
Create Robocop lint action
- Loading branch information
Showing
12 changed files
with
137 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Robocop | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install robotframework-robocop | ||
- name: Analyzing the code with robocop | ||
run: | | ||
robocop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
*** Settings *** | ||
Documentation Robot API BDD with csv test example | ||
Documentation Robot API BDD with CSV test example | ||
Resource resources/services/regres_registration_API.resource | ||
Resource ../resources/services/regres_registration_API.resource | ||
|
||
Library DataDriver file=data_files\\users_data.csv dialect=unix | ||
Suite Setup Load Environment Variables | ||
Library DataDriver file=data_files\\users_data.csv dialect=unix | ||
Suite Setup Load Environment Variables | ||
|
||
|
||
*** Test Cases *** | ||
Scenario: Successful Registration With ${email} | ||
[Template] Scenario Outline: Successful Registration | ||
[Documentation] Tests successful registration with different email addresses from a CSV file. | ||
[Template] Scenario Outline: Successful Registration | ||
Log Test Executed from csv | ||
|
||
|
||
*** Keywords *** | ||
Scenario Outline: Successful Registration | ||
[Arguments] ${email} ${password} | ||
Given email and password are definied as ${email} and ${password} | ||
When registration is executed | ||
Then the correct token is returned | ||
[Documentation] Registers a user with the given email and password, then verifies the correct token is returned. | ||
[Arguments] ${email} ${password} | ||
Given Email And Password Are Defined As ${email} And ${password} | ||
When Registration Is Executed | ||
Then The Correct Token Is Returned |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
*** Settings *** | ||
Documentation Robot API bdd with example table test example | ||
Documentation Robot API BDD with example table test example | ||
Resource resources/services/regres_registration_API.resource | ||
Suite Setup Load Environment Variables | ||
Resource ../resources/services/regres_registration_API.resource | ||
Suite Setup Load Environment Variables | ||
|
||
|
||
*** Test Cases *** | ||
Feature: Registration | ||
[Template] Scenario Outline: Successful Registration | ||
[Documentation] Tests the registration feature with different email and password combinations. | ||
[Template] Scenario Outline: Successful Registration | ||
eve.holt@reqres.in pistol | ||
michael.lawson@reqres.in xpto | ||
lindsay.ferguson@reqres.in xpto | ||
|
||
|
||
*** Keywords *** | ||
Scenario Outline: Successful Registration | ||
[Arguments] ${email} ${password} | ||
Given email and password are definied as ${email} and ${password} | ||
When registration is executed | ||
Then the correct token is returned | ||
[Documentation] Registers a user with the given email and password, then verifies the correct token is returned. | ||
[Arguments] ${email} ${password} | ||
Given Email And Password Are Defined As ${email} And ${password} | ||
When Registration Is Executed | ||
Then The Correct Token Is Returned |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,38 @@ | ||
*** Settings *** | ||
Documentation Robot API keyword driven test example | ||
Documentation Robot API keyword driven test example | ||
Resource resources/services/regres_registration_API.resource | ||
Suite Setup Load Environment Variables | ||
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 *** | ||
Successful Registration | ||
email and password are definied as eve.holt@reqres.in and pistol | ||
registration is executed | ||
the correct token is returned | ||
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} | ||
Registration Is Executed | ||
The Correct Token Is Returned | ||
|
||
Successful Registration | ||
email and password are definied as michael.lawson@reqres.in and xpto | ||
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} | ||
Registration Is Executed | ||
the correct token is returned | ||
The Correct Token Is Returned | ||
|
||
Successful Registration | ||
email and password are definied as lindsay.ferguson@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} | ||
Registration Is Executed | ||
The Correct Token Is Returned |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
*** Settings *** | ||
Documentation Robot web test examples with direct url | ||
Resource resources/pages/data_tables_page.resource | ||
Test Teardown Default Teardown | ||
Resource ../resources/pages/data_tables_page.resource | ||
Test Teardown Default Teardown | ||
|
||
|
||
*** Variables *** | ||
@{emails}= tconway@earthlink.net jsmith@gmail.com fbach@yahoo.com jdoe@hotmail.com | ||
@{EMAILS} tconway@earthlink.net jsmith@gmail.com fbach@yahoo.com jdoe@hotmail.com | ||
|
||
|
||
*** Test Cases *** | ||
Verify Emails From Table 'Example 1' | ||
[Documentation] Verifies that EMAILS from the table 'Example 1' match the expected list. | ||
Go Direct To Data Tables Page | ||
Verify ${emails} From Table Example 1 | ||
Verify ${EMAILS} From Table Example 1 | ||
|
||
Verify Emails From Table 'Example 2' | ||
[Documentation] Verifies that EMAILS from the table 'Example 2' match the expected list. | ||
Go Direct To Data Tables Page | ||
Verify ${emails} From Table Example 2 | ||
Verify ${EMAILS} From Table Example 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
*** Settings *** | ||
Documentation Robot web test examples with menu navegation | ||
Resource resources/pages/data_tables_page.resource | ||
Resource resources/pages/the_internet_homepage.resource | ||
Test Teardown default teardown | ||
Resource ../resources/pages/data_tables_page.resource | ||
Resource ../resources/pages/the_internet_homepage.resource | ||
Test Teardown Default Teardown | ||
|
||
|
||
*** Variables *** | ||
@{emails}= tconway@earthlink.net jsmith@gmail.com fbach@yahoo.com jdoe@hotmail.com | ||
@{EMAILS}= tconway@earthlink.net jsmith@gmail.com fbach@yahoo.com jdoe@hotmail.com | ||
|
||
|
||
*** Test Cases *** | ||
Verify Emails From Table 'Example 1' | ||
Open The Internet Homepage | ||
Naviagte To Data Tables Page | ||
[Documentation] Verifies that emails from the table 'Example 1' match the expected list. | ||
Open The Heroku Homepage | ||
Navigate To Data Tables Page | ||
Verify ${emails} From Table Example 1 | ||
|
||
Verify Emails From Table 'Example 2' | ||
Open The Internet Homepage | ||
Naviagte To Data Tables Page | ||
[Documentation] Verifies that emails from the table 'Example 2' match the expected list. | ||
Open The Heroku Homepage | ||
Navigate To Data Tables Page | ||
Verify ${emails} From Table Example 2 |