/miniSDK

automation project

Primary LanguageJava

Automation

Appium CI Allure Report

Description:

Automation project with Java + Gradle using Browser Stack as a Device Farm and GitHub Action (CI) to automate the Automation App, GithubPages to deploy Allure Serve to see test results/report, PageObject/Screen and PageFactory as a structure.

Getting Started:

Configuration:

Running: (need the Appium server running):

./gradlew test --tests "AppTest"

You can run with different devices like iOS and Android using properties when running this command line:

Android:

./gradlew test --tests "AppTest" -DMOBILE=android

iOS:

./gradlew test --tests "AppTest" -DMOBILE=ios

We have 3 possibilities for executing the tests locally, remotely, or via device farm, setting the variable RUN to, local, remote or farm.

local = execute locally on physical devices. remote = run using variables from the GitHub Action, recommended for CI executions. farm = you can execute setting some variables on remote.json and execute from your computer to a device farm.

Running on CI:

./gradlew test --tests "AppTest" -DMOBILE=android -DRUN=remote

Running locally:

./gradlew test --tests "AppTest" -DMOBILE=android -DRUN=local

Running on device farm:

./gradlew test --tests "AppTest" -DMOBILE=android -DRUN=farm

Building Allure report

To build a report, and browse it use the following command:

./gradlew allureServe

GitHub Pages with Allure report results: ALLURE

img.png