Skip to content

Mobile Test framework using Appium and Java with TestNG framework

Notifications You must be signed in to change notification settings

sadabnepal/AppiumJavaTestNGFramework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mobile Test Automation Framework | Appium | Java

Requirements:

Java Maven NodeJs Appium-Inspector AppiumDriver AndroidStudio

Getting Started:

Clone repository:

git clone https://github.com/sadabnepal/AppiumJavaTestNGFramework.git
Navigate to `AppiumJavaTestNGFramework`

Setup/Create virtual device on Android studio:

Android : Pixel 3 [version 11]

Install

npm i -g appium
npm i -g appium-doctor

Verify appium drivers:

appium driver list

Note: uiautomator2 should be installed for android and xcuitest for ios. Click here to check sample terminal log

If drivers are not installed then run below command as required:

appium driver install uiautomator2  [for android]
appium driver install xcuitest [for ios]

Verify all pre-requisite for android:

npm run android-doctor

Note: all options should be green checked as shown in below image to start. Click here to check sample terminal log

Update properties file [ only for cloud ]

File path: src/test/resources/configs/config.properties

bs_user=<BROWSERSTACK_USER>
bs_key=<BROWSERSTACK_KEY>
bs_deviceName=<DEVICE NAME>
bs_platformVersion=<DEVICE Version>
bs_app=<BROWSERSTACK_APP_PATH>

Run Tests

Run 'start-appium.bat' file to start appium on port 4723
Right click on testng.xml file --> click on 'Run testng.xml'

Sample Report

sample_report.png

About

Mobile Test framework using Appium and Java with TestNG framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published