Skip to content

AshokKumarMelarkot/msa-cucumber-appium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

msa-cucumber-appium

Framework to test native apps using testng-cucumber-selenium along with appium server and genymotion emulator
Provided example test with Andriod App, We can automate IOS app as well by just modifying the properties and config
We can run the tests on real device with same configuration by just replacing the device name with connected mobile device name

How to write tests :

  • Define feature file (src/main/resources/pageObjects)
  • Place your mobile screen objects in form of yaml files under page objects (src/main/resources/pageObjects)
  • Write step definition (definition should use helper function (key) to call action and provide in util and should provide reference of screen and locator)
  • Provide your configuration details like target appium server , target device, ....etc.The current configuration given for android.


  • Run the TestRunner calss as testng class or run testng.xml or sample.feature file.


  • The test creates the regular html report and extended report as well




How to set up:

Prerequisites :
  • ►  Java should be installed in machine and configured.
  • ►  Configure maven
  • ►  Install Nodejs
  • ►  Install Android SDK
  • ►  Install Genymotion
  • ►  Install any Editor like IntelliJ or Eclipse...etc.
  • Install geny motion and create virtual device

  • Install android sdk in your machine , find the virtual device on machine (adb devices)



  • Install your app (selendroid) on connected device (adb install selendroid.apk)
  • Start the Appium server and make sure your virtual device is up and running



  • Clone the repo and import on any Editor (intellij,Eclipse,..),setup maven and do mvn install in oredr to get the dependencies.
  • Provide the path of apk file on your machine in properties file
  • Provide the name of your device in properties file located in src/main/resources/conf.properties

  • Then run the Test Runner class
  • The test creates the regular html report and extended report as well

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published