Git Product home page Git Product logo

appiumjavapom's Introduction

AppiumJavaPOM

This is sample framework for Android Test using Appium Cucumber and Java

1. Please Checkout this project into your local system

2. Installation (pre-requisites)

  1. Make sure JDK 1.8+ is installed (make sure Java class path is set)
  2. Maven is installed (make sure .m2 class path is set)
  3. Install NodeJS and node version 10 or above
  4. Install Appium using NPM (npm install -g appium)
  5. Install Android SDK(Android Studio) and ANDROID_HOME and Path is set
  6. If you are using Emulator, Virtual Devices should be created and configured
  7. If you are using Real Android device it should be connected to PC and ADB debugging should be enabled on device.
  8. Import project in any IDE like Eclipse/Intellij

3. Test Data Prepration and Assumption:

Assumption:

  1. These Mobile test will only run on Andoid Devices and Emulator
  2. These tests are only handling simple user login flow, If user ask for OTP during login flow that case is not handled in these tests.
  3. Add Product to Cart scenario is limited to the first page search results and will not consider any subsequent pages.

Test Data Prepration:

  1. Update amazon.user, amazon.password and amazon.productName in config.properties (src\test\resources\testData\config.properties)

4. For Running Tests:

  1. Download this repository to your local machine
  2. Using Command Line : Open Command Prompt and Navigate to folder AppiumJavaPOM folder and run command : mvn clean test, it will execute the tests and generate the reports in folder : target/telstraTestHTMLReport.
  3. Using Cucumber Runner Class : right click of TestRunner.java class and run as > Junit test.
  4. Using Features files : select AmazonLogin.feature feature file and right click select run as > cucumber feature file

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.