gaurabhi1986 / MobileAppSignInTest

Sample framework for Mobile App Automation Using Appium and Cucumber

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MobileAppSignInTest

Sample framework for Mobile App Automation Using Appium and Cucumber

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.

Test Data Prepration:

  1. Update amazon.user, amazon.password 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 MobileAppSignInTest folder and run command : mvn clean test, it will execute the tests and generate the reports in folder : target/testReport.
  3. Using Cucumber Runner Class : right click of TestRunner.java class and run as > Junit test.
  4. Using Features files : select Login.feature feature file and right click select run as > cucumber feature file

About

Sample framework for Mobile App Automation Using Appium and Cucumber


Languages

Language:Java 97.3%Language:Gherkin 2.7%