- This framework provides a basic implementation for Appium based Android/ iOS tests using the latest Appium Client v8.x.x and Server 2.x.x
- This could be used as the initial starter-kit to evolve into a full-fledged framework
- Multiple stand-alone test examples have been added to understand different functionalities
Tests
- Tests defining the user actions based on business workflow
- Assertions based on the expected outcomes
Tasks
- Combining multiple actions to workflow
- Tests should use tasks
- Return type for assertion
An intermediate layer to combine multiple page interactions in a user-flow. These can be modularized to have re-usability across the tasks. If a single page has multiple workflows then we should create page-wise tasks else we should try and combine them to define it as user actions.
Pages
- Locators to identify the elements
- Methods to interact with Elements on page
- Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)โ
Check brew version:
brew --version
- Install Android Studio
https://developer.android.com/codelabs/basic-android-kotlin-compose-install-android-studio#4
- Install node and npm
brew install node
Check node version:
node -v
Check npm version:
npm -v
Install appium-installer
:
npm install -g appium-installer
Run appium-installer
to
- set-up Android and iOS environments
- install Appium server
- install Appium driver
- install Appium plugins
- run Appium doctor
- launch Emulators/ Simulators
appium-installer
- Use
testng.xml
to run a suite of tests or a single test
or
- Using gradle:
./gradlew clean test -Pgroups=dragDrop --info