mfaisalkhatri / appium-java-examples

Learn Mobile Test Automation for Android and iOS using Appium with Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Open Source Love

Don't forget to give a to make the project popular.

What is this Repository about?

  • This repository contains the example code for running Android Mobile Automation tests using Appium 2.0
  • WebdriverIO demo app is used as a demo mobile application run tests
  • This repo uses Maven as build tool and TestNG testing framework to run the tests.

Talking more about the Scenarios Covered in this project:

  • I have tried to answer the below questions by providing working code example in this repo:
  1. How to start Appium Server Programmatically?
  2. How to stop Appium Server Programmatically?
  3. How to run mobile automation tests on Android Emulator?
  4. How to locate elements using Appium?
  5. How to click on an element using Appium?
  6. How to check attribute of an element using Appium?
  7. How to type values in a text field?
  8. How to perform assertions?

How to run the Tests?

Pre-Requisite:

- JAVA JDK 11 should be installed
- Android Emulator should be created in local machine and running.
  • Run the tests using TestNG:

    Right click on test-suite\testng.xml and select Run test-suite\testng.xml

  • Run the tests using Maven:

    mvn clean install

✍️ Blog Links

Need Assistance?

  • Discuss your queries by writing to me @ mohammadfaisalkhatri@gmail.com OR ping me on any of the social media sites using the below link:

💻 Paid Trainings

Contact me for Paid trainings related to Test Automation and Software Testing, mail me @ mohammadfaisalkhatri@gmail.com or ping me on LinkedIn

💭 Checkout the blogs related to Testing on my website and medium

About

Learn Mobile Test Automation for Android and iOS using Appium with Java


Languages

Language:Java 100.0%