Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/thinogueiras/rest-assured

Automação de Testes de API com REST-assured e JUnit 5.
https://github.com/thinogueiras/rest-assured

allure-reports api-testing java junit5 maven rest-api rest-assured

Last synced: 1 day ago
JSON representation

Automação de Testes de API com REST-assured e JUnit 5.

Awesome Lists containing this project

README

        

# Testes de API com REST-assured e JUnit 5.

[![REST-assured Tests](https://github.com/thinogueiras/REST-assured/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/thinogueiras/REST-assured/actions/workflows/ci.yml)

## Pré-requisitos mínimos de ambiente:

* [Java](https://www.oracle.com/br/java/technologies/downloads/#java11) 11.0.x.

## IDE de desenvolvimento:

* [Eclipse](https://eclipseide.org).

## Clone do repositório:

```
git clone https://github.com/thinogueiras/REST-assured.git
```

## Abrir o projeto no Eclipse:

* Abra o Eclipse >> Menu File >> Import >> Maven >> Existing Maven Projects.
* Navegar até o repositório clonado >> Selecionar a pasta >> Finish.

## Execução dos testes:

### JUnit:

* Após importar o projeto com sucesso no Eclipse, clique para expandir o Source Folder: `src/test/java`, clique com o botão `direito` do mouse sobre o package: `br.qa.thinogueiras.suite` >> Run As >> JUnit Test.

### Terminal:

```
mvn test
```

## Relatório:
* #### Abrir o terminal e digitar:

```
allure serve allure-results
```

![Alt text](/.github/images/allure-results.png)

---

Linkedin

Thiago Nogueira dos Santos 🤓 ✌🏻

QA Automation Engineer 🔎 🐞