Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jardevson/restapi-robot
Automação de API Rest (CRUD) em RobotFramework
https://github.com/jardevson/restapi-robot
requests robotframework robotframework-jsonlibrary robotframework-jsonvalidator robotframework-requests
Last synced: 19 days ago
JSON representation
Automação de API Rest (CRUD) em RobotFramework
- Host: GitHub
- URL: https://github.com/jardevson/restapi-robot
- Owner: JarDeVSon
- Created: 2022-12-28T01:12:04.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-14T01:04:00.000Z (3 months ago)
- Last Synced: 2024-09-15T07:24:17.551Z (3 months ago)
- Topics: requests, robotframework, robotframework-jsonlibrary, robotframework-jsonvalidator, robotframework-requests
- Language: RobotFramework
- Homepage:
- Size: 138 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# REST API Robot Framework
Sample project to demonstrate REST API tests written with [Robot Framework](https://robotframework.org/#resources) with [RequestsLibrary](https://github.com/MarketSquare/robotframework-requests#readme) 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`
## Running the testsIn this project, you can run tests via CLI in both environments with the flag `-v` generate the reports with the flag `-d` and pass the path to suite tests `Tests/*.robot` for example, the suite chosen was `Tests/TC.robot`:
- to run DEV `python -m robot -d reports -v ENVIRONMENT:dev Tests/TC.robot`
- to run HOM `python -m robot -d reports -v ENVIRONMENT:hom Tests/TC.robot`
___Made with ❤️ by [Jardeson Santos](https://github.com/JarDeVSon). [Meu Linkedin](https://www.linkedin.com/in/jardeson-santosqa).