Skip to content

mujamil90/MobileAutomationFramework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mobile Automation Framework-Datadriven

This is a Mobile automation Framework supports Android based application. It is a data driven framework. Please check 'MobileConfig.properties' file and provide required details for your device and AUT such device ID and Main activity for Application. Prerequisite for AUT (Application under Test), you can provide APK file path if you have '.apk' file for AUT and Main Activity OR you can provide 'App Package' and 'Main activity' if you have application installed already.

Tools and Technology used

  • Designed and written in JAVA
  • Framework used Appium
  • Implemented using TestNG
  • Build Tools - Maven
  • Test data source file type- Properties files (no need to change code just add file and use key to fetch data)
  • Implemented with Page Object Model Design Pattern
  • Video Recording - Automation-Remarks

Mobile OS Supported

  • Android

Platform Support

  • Windows
  • Linux
  • Macintosh

Reporting


Usage

$ mvn clean test

Report Details

Report Location System.getProperty("user.dir") + "/src/test/resources/Reports/";

Failed Screenshots System.getProperty("user.dir") + "/src/test/resources/Reports/Images";

Video Location System.getProperty("user.dir") + "videos";

Test Data System.getProperty("user.dir") + "/src/test/resources/TestData";


Video Feature

enabledALL -> To Save recorded video for All test case. Stored in "./src/test/resources/Reports/Videos"

enabledFAILED -> To Save recorded video for ONLY FAILED test case. Stored in "./src/test/resources/Reports/Videos"

disabled -> To not save the video

** Required ADB Commands to get Device and AUT related information:**

  • adb devices --> To get list of connected devices.
  • adb install --> Install apk file on device.
  • adb uninstall io.appium.uiautomator2.server --> Clear cache of UiAutomator2 from server directory
  • adb uninstall io.appium.uiautomator2.server.test --> Clear cache of UiAutomator2 from test directory
  • adb shell pm clear <Package/bundle ID of AUT> --> Clear application's data
  • adb shell dumpsys window windows | grep -E ‘mCurrentFocus’ --> To get AppPackage and Main activity (before this command open AUT and corresponding page).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published