Giter Site home page Giter Site logo

appium2-gradle-starterkit's Introduction

Appium (v2.x.x) Starter-kit for Android and iOS

About

  • 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

Framework components/ layers

image

Component functions:

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

Set-up steps on Mac

  • 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

Run tests

  • Use testng.xml to run a suite of tests or a single test

or

  • Using gradle:
./gradlew clean test -Pgroups=dragDrop --info

appium2-gradle-starterkit's People

Contributors

krishanuc1001 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

automationlog

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.