Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/thinogueiras/robot-playwright-gherkin

Automação de testes de UI com Robot Framework e Playwright.
https://github.com/thinogueiras/robot-playwright-gherkin

bdd browser-library docker gherkin github-actions playwright python robotframework ui-test-automation ui-testing web-testing

Last synced: 1 day ago
JSON representation

Automação de testes de UI com Robot Framework e Playwright.

Awesome Lists containing this project

README

        

# Automação de Testes de UI com Robot Framework e Playwright.

[![Robot Framework Tests](https://github.com/thinogueiras/Robot-Playwright-Gherkin/actions/workflows/continuous-testing.yml/badge.svg?branch=main)](https://github.com/thinogueiras/Robot-Playwright-Gherkin/actions/workflows/continuous-testing.yml)

## Sobre o projeto:

* Site alvo dos testes: https://www.saucedemo.com.
* Este projeto utiliza o padrão `Page Objects`.
* Os `Casos de Testes` foram implementados utilizando a sintaxe `Gherkin` de forma `declarativa`.

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

* [Git](https://git-scm.com/).

* [Docker](https://www.docker.com/products/docker-desktop/) (Opcional).

* [Python](https://www.python.org/downloads/) 3.11.x.

* [Node.js](https://nodejs.org/en) 18.17.x.

## Clone do Repositório:

```
git clone https://github.com/thinogueiras/Robot-Playwright-Gherkin.git

cd Robot-Playwright-Gherkin
```

## Instalação do projeto:

```
pip install -r requirements.txt
```

## Instruções:

#### Executar o comando abaixo no terminal:

```
rfbrowser init
```

## Execução dos testes:

#### Chromium:

```
robot -d ./reports -v BROWSER:Chromium -v HEADLESS:False tests/
```

#### Firefox:

```
robot -d ./reports -v BROWSER:Firefox -v HEADLESS:False tests/
```

## Docker:

```
docker pull ppodgorsek/robot-framework:latest
```

#### Aplicando permissão de execução:
```
chmod +x run-docker-tests-single-thread.bat
```

#### Executando o arquivo:
```
./run-docker-tests-single-thread.bat
```
---

## Relatórios:

Verifique a pasta `reports` para visualizar os relatórios da execução: `report.html` ou `log.html`.

---

Linkedin

Thiago Nogueira dos Santos 🤓 ✌🏻

QA Automation Engineer 🔎 🐞