Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mfaisalkhatri/appium-java-examples
Learn Mobile Test Automation for Android and iOS using Appium with Java
https://github.com/mfaisalkhatri/appium-java-examples
android android-automation appium beginner ios ios-automation mobile-automation testing testng tutorials
Last synced: 12 days ago
JSON representation
Learn Mobile Test Automation for Android and iOS using Appium with Java
- Host: GitHub
- URL: https://github.com/mfaisalkhatri/appium-java-examples
- Owner: mfaisalkhatri
- Created: 2022-10-13T19:06:32.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-21T18:35:24.000Z (7 months ago)
- Last Synced: 2024-10-12T03:26:18.518Z (27 days ago)
- Topics: android, android-automation, appium, beginner, ios, ios-automation, mobile-automation, testing, testng, tutorials
- Language: Java
- Homepage:
- Size: 54.2 MB
- Stars: 46
- Watchers: 6
- Forks: 21
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)
## Don't forget to give a :star: to make the project popular.
## :question: What is this Repository about?
- This repository contains the example code for running Android Mobile Automation tests
using [Appium 2.0](https://appium.io/docs/en/2.0/intro/)
- [WebdriverIO demo app](https://github.com/webdriverio/native-demo-app/releases) 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?
1. How to stop Appium Server Programmatically?
1. How to run mobile automation tests on Android Emulator?
1. How to locate elements using Appium?
1. How to click on an element using Appium?
1. How to check attribute of an element using Appium?
1. How to type values in a text field?
1. 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 should be in running state
- For running iOS tests, iOS Simulator needs to be started and should be in running state### :movie_camera: Tutorial for Installing Android Studio on Windows 10
[![Watch the video](https://img.youtube.com/vi/CMrfuCR6W94/hqdefault.jpg)](https://youtu.be/CMrfuCR6W94)- 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`
## :writing_hand: Blog Links
- [Beginner’s Guide to Appium 2.0](https://medium.com/@iamfaisalkhatri/beginners-guide-to-appium-2-0-d8118b31837c)
- [Appium 2 Migration Guide: Migrating From Appium 1.x To Appium 2.x](https://medium.com/@iamfaisalkhatri/appium-2-migration-guide-migrating-from-appium-1-x-to-appium-2-x-f1721b31197)
- [How To Automate ServiceNow With Appium](https://medium.com/@iamfaisalkhatri/how-to-automate-servicenow-with-appium-8cc4aee3ed44)
- [Complete Tutorial On Appium Parallel Testing- [With Examples]](https://www.lambdatest.com/blog/appium-parallel-testing/)
- [React Native Testing For Apps On iOS And Android Using Appium](https://www.lambdatest.com/blog/test-react-native-apps-on-ios-and-android/)
- [How to Choose Mobile Devices for Testing](https://medium.com/@iamfaisalkhatri/how-to-choose-mobile-devices-for-testing-pcloudy-blog-96179529d0f3)
- [What is an Android Emulator? How to Start and use it?](https://medium.com/@iamfaisalkhatri/what-is-an-android-emulator-how-to-start-and-use-it-66fdcf52be7e)
- [How to start Appium Server Programmatically?](https://medium.com/@iamfaisalkhatri/how-to-start-appium-server-programmatically-ec07292ab59)
- [Guide to Mobile Testing](https://medium.com/@iamfaisalkhatri/guide-to-mobile-testing-d0dd2d9b59f1)
- [Inspecting elements of an app using Appium Inspector and BrowserStack!](https://medium.com/@iamfaisalkhatri/inspecting-elements-of-an-app-using-appium-inspector-and-browserstack-32c095a5333c)## :question: Need Assistance?
- Discuss your queries by writing to me @ `[email protected]`
OR ping me on any of the social media sites using the below link:
- [Linktree](https://linktr.ee/faisalkhatri)## :computer: Paid Trainings
Contact me for Paid trainings related to Test Automation and Software Testing,
mail me @ `[email protected]` or ping me on [LinkedIn](https://www.linkedin.com/in/faisalkhatri/)## :thought_balloon: Checkout the blogs related to Testing written by me on the following links:
- [Medium Blogs](https://medium.com/@iamfaisalkhatri)
- [LambdaTest Blogs](https://www.lambdatest.com/blog/author/mfaisalkhatri/)
- [My Website](https://mfaisalkhatri.github.io)