git clone https://github.com/sadabnepal/AppiumJavaTestNGFramework.git
Navigate to `AppiumJavaTestNGFramework`
Android : Pixel 3 [version 11]
npm i -g appium
npm i -g appium-doctor
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]
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
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 'start-appium.bat' file to start appium on port 4723
Right click on testng.xml file --> click on 'Run testng.xml'