Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 tests

In 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).