Skip to content

JarDeVSon/Web-Robot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Automation Robot Framework

Sample project to demonstrate Web e API Automation tests written with Robot Framework with Selenium Library e Requests Library running on GitHub Actions.

Pre-requirements

To clone and run this project, you will need:

Installation

Install the Following Libraries using the command Line:

  • python -m pip install -r requirements.txt

Project Structure - Using Page Objects Pattern

tests/ ├── resources/ │ ├── loginBack.resource # Keywords for backend tests (login) │ └── loginPage.resource # Keywords for frontend tests (login) ├── tests/ │ ├── login_back.robot # Test cases for backend (login) │ └── login_front.robot # Test cases for frontend (login) │ └── init.robot # Test Hooks Configurations ├── .gitignore # File to ignore files in Git ├── base.resource # base global variables and configurations ├── README.md # This file └── requirements.txt # List of project dependencies

Running the tests

In this project, you can run tests via CLI and generate the reports with the flag -d and pass the path to suite tests tests/:

To run Frontend tests:

  • python -m robot -d reports tests/front/login_front.robot

To run Backend tests:

  • python -m robot -d reports tests/back/login_back.robot

To run using Test Tags between back and front: (front,back)

  • python -m robot -d reports -i front tests/
  • python -m robot -d reports -i back tests/

To run All the tests:

  • python -m robot -d reports tests/

About

Automação Web & API com RobotFramework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published