Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thinogueiras/java-appium-browserstack
Automação de Testes para Android utilizando Java, JUnit 5 e Appium 9.2.0.
https://github.com/thinogueiras/java-appium-browserstack
android-tests appium appium-android appium-tests browserstack-testing java junit5 maven test-automation
Last synced: about 1 month ago
JSON representation
Automação de Testes para Android utilizando Java, JUnit 5 e Appium 9.2.0.
- Host: GitHub
- URL: https://github.com/thinogueiras/java-appium-browserstack
- Owner: thinogueiras
- License: mit
- Created: 2023-11-10T15:47:38.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-16T18:38:31.000Z (9 months ago)
- Last Synced: 2024-04-28T03:45:12.935Z (8 months ago)
- Topics: android-tests, appium, appium-android, appium-tests, browserstack-testing, java, junit5, maven, test-automation
- Language: Java
- Homepage:
- Size: 16.9 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 para Android utilizando Java, JUnit 5 e Appium 9.2.0, com integração com o BrowserStack.
[![BrowserStack Tests](https://github.com/thinogueiras/Java-Appium-BrowserStack/actions/workflows/continuous-testing.yml/badge.svg?branch=main)](https://github.com/thinogueiras/Java-Appium-BrowserStack/actions/workflows/continuous-testing.yml)
## Pré-requisitos mínimos de ambiente:
* [Java](https://www.oracle.com/br/java/technologies/downloads/#java11) 11.0.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.
## 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`**
## IDE de desenvolvimento:
* [Eclipse](https://eclipseide.org).
## Clone do repositório:
```
git clone https://github.com/thinogueiras/Java-Appium-BrowserStack.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: `qa.thinogueiras.appium.suite` >> Run As >> JUnit Test.
### Terminal:
```
mvn test
```## Relatório:
#### No terminal, digite:```
allure serve allure-results
```---
Thiago Nogueira dos Santos 🤓 ✌🏻
QA Automation Engineer 🔎 🐞