Skip to content

Sample project for running tests using Java/TestNG/Appium

License

Notifications You must be signed in to change notification settings

Harish879/AppiumJavaSample

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AppiumJavaSample

Sample project for running tests using Java/TestNG/Appium

Setting up your machine

Prerequisites before running the script for Appium setup

  • Set JAVA_HOME as an environment variable

  • Set ANDROID_HOME as an environment variable - pointing to the directory where Android SDK should be setup

  • Execute the following scripts to setup your Mac setup_mac.sh or Ubuntu setup_linux.sh machine automatically

The above script will install all dependencies required for implementing / running tests on Android devices. To do the setup for iOS devices, run appium-doctor and see the list of dependencies that are missing, and install the same.

You may be prompted for password or confirmations along the way

Running the tests

Prerequisites:

  • Start appium server manually (and update the url/port if not using the default)
  • Have devices connected / emulators started. Accordingly, update the (.*Test.java) test file with the relevant information about the devices
  • The device should have the Calculator app

Tests

This project includes the following tests implemented for Android & iOS devices:

Android

iOS

About

Sample project for running tests using Java/TestNG/Appium

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 63.5%
  • Shell 34.6%
  • Ruby 1.9%