Code Monkey home page Code Monkey logo

osandadeshan / appium-java-mobile-automation-demo Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 13.0 39.47 MB

This project serves as a boilerplate for automating both Android and iOS mobile applications using a single codebase with TestNG and the Appium library.

Home Page: https://medium.com/automationmaster/appium-mobile-app-automation-tutorial-2-527d6d78998a

License: MIT License

Java 100.00%
android android-app appium page-object-model testng automation java cross-platform ios-app xcode maven testng-framework ios

appium-java-mobile-automation-demo's Introduction

Mobile Application Automation Using Appium & TestNG (For iOS & Android)

image

This project serves as a boilerplate for automating Android and iOS mobile applications using a single codebase with TestNG and the Appium library. It provides cross-platform support, easy setup, and comes with examples to help you quickly get started with writing and executing mobile automation tests. Feel free to clone the repository, explore the sample test scripts, and contribute to the project.

Appium Java Android Application Automation CI

Prerequisites

  1. Java
  2. Maven
  3. NodeJS

How to install the dependencies

  1. Install XCode

  2. Download and Install Android Studio

  3. Create a new system variable for ANDROID_HOME pointed to the Android SDK location

  4. Update the system path variable with ANDROID_HOME\platform-tools

  5. Install Appium 2.0 (You may refer to the official Appium documentation)

    npm install -g appium

  6. Install Appium Drivers

    appium driver install uiautomator2

    appium driver install xcuitest

Note: Environment Variables

image

How to run tests

  1. Using IntelliJ IDEA

    • Go to Maven Profiles
    • Select android or ios Maven Profile as the platform
    • Select dev, qa, uat, pre-prod or prod as the environment
    • Select the test classes on the src/test/java folder
    • Right-click and click on Run
  2. Using Command Line

    • To run the smoke test suite in Android against the QA environment

      mvn clean test -Pandroid,qa,smoke-test

    • To run the regression test suite in iOS against the UAT environment

      mvn clean test -Pios,uat,regression-test

Note: By default, if no Maven profiles are selected, the tests will be executed on the android platform and in the dev environment.

Tutorials

License

MIT License MIT License

Copyright

Copyright 2024 MaxSoft.

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.