Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thinogueiras/robot-appium-browserstack
Automação de Testes Mobile com Robot Framework e Appium.
https://github.com/thinogueiras/robot-appium-browserstack
android-testing appium appium-tests browserstack-testing mobile-testing python robot-framework test-automation
Last synced: 14 days ago
JSON representation
Automação de Testes Mobile com Robot Framework e Appium.
- Host: GitHub
- URL: https://github.com/thinogueiras/robot-appium-browserstack
- Owner: thinogueiras
- License: mit
- Created: 2023-09-10T03:00:02.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-13T18:06:09.000Z (8 months ago)
- Last Synced: 2024-10-10T23:41:39.021Z (about 1 month ago)
- Topics: android-testing, appium, appium-tests, browserstack-testing, mobile-testing, python, robot-framework, test-automation
- Language: RobotFramework
- Homepage:
- Size: 17.4 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Automação de testes Mobile com Robot Framework e Appium.
[![BrowserStack Tests](https://github.com/thinogueiras/Robot-Appium-BrowserStack/actions/workflows/browserstack-testing.yml/badge.svg?branch=main)](https://github.com/thinogueiras/Robot-Appium-Tests/actions/workflows/browserstack-testing.yml)
## Pré-requisitos mínimos de ambiente:
[Java](https://www.oracle.com/br/java/technologies/downloads/#java11) 11.0.x.
[Node.js](https://nodejs.org/en) 18.17.x.
[Python](https://www.python.org/downloads/) 3.11.x.
[Android Studio](https://developer.android.com/studio).
```
npm install -g [email protected]
``````
npm install -g appium-doctor
``````
appium driver install [email protected]
```### Necessário configurar o **`ANDROID_HOME`** e **`JAVA_HOME`** no **`PATH`** do S.O.
### Pelo ***Virtual Device Manager*** do ***Android Studio***, crie um device.
### **Capabilities** configuradas no projeto de testes:
```
{
"platformName": "Android",
"appium:deviceName": "Android Emulator",
"appium:automationName": "UIAutomator2",
"appium:app": "/app/yodapp-beta.apk",
"appium:udid": "emulator-5554",
"appium:autoGrantPermissions": true
}
```## Comandos extras para checagem do ambiente:
* Se o ambiente está OK: **`appium-doctor --android`**
* Verificar drivers instalados: **`appium driver list --installed`**
* Se o virtual device está ativo / online: **`adb devices`**
## Instalação do projeto:
```
pip install -r requirements.txt
```## Setup BrowserStack (Opcional):
```
browserstack-sdk setup --framework "robot" --username "" --key ""
```## Instruções:
- Inicie o Appium Server com o comando: **`appium`**.
![Alt text](.github/images/appium.png)
- Dê um play no Android Device Virtual.
![Alt text](.github/images/avd.png)
## Execução dos testes 🤖 🤖
### Local:
```
robot -d ./reports tests/
```### BrowserStack:
```
browserstack-sdk robot -d ./reports tests/
```---
## Relatórios 📝 📄
Verifique a pasta `reports` para visualizar os relatórios da execução: `report.html` ou `log.html`.
---
## Sobre a integração com o BrowserStack:
### Execuções disparadas automaticamente pelo pipeline do `GitHub Actions`:
![alt text](.github/images/browserstack-tests.png)
### Observabilidade dos Testes:
![alt text](.github/images/observabilidade.png)
---
Thiago Nogueira dos Santos 🤓 ✌🏻
QA Automation Engineer 🔎 🐞