https://github.com/jardevson/web-robot
Automação Web com RobotFramework
https://github.com/jardevson/web-robot
python robot-framework selenium-library
Last synced: 6 months ago
JSON representation
Automação Web com RobotFramework
- Host: GitHub
- URL: https://github.com/jardevson/web-robot
- Owner: JarDeVSon
- Created: 2023-01-13T14:59:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-05-03T01:59:20.000Z (about 1 year ago)
- Last Synced: 2025-06-09T11:09:30.710Z (about 1 year ago)
- Topics: python, robot-framework, selenium-library
- Language: RobotFramework
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Web Automation Robot Framework
Sample project to demonstrate Web e API Automation tests written with [Robot Framework](https://robotframework.org/#resources) with Selenium Library e Requests Library running on GitHub Actions.
## Pre-requirements
To clone and run this project, you will need:
- [Git](https://git-scm.com/downloads)(I've used version `2.34.1` while writing this doc)
- [Python](https://www.python.org/)(I've used version `3.11.5` while writing this doc)
- [Visual Studio Code](https://code.visualstudio.com/)(I've used version `Stable Build` while writing this doc)
- [Robot Framework Language Server Extension](https://marketplace.visualstudio.com/items?itemName=robocorp.robotframework-lsp)(Install the official extension in the Visual Studio Code)
## 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/`
___