This repository demonstrates how to run Appium tests in TestNG on BrowserStack App Automate using BrowserStack SDK.
- 
Java 8+ 
- 
Maven (Only required if using Maven as the build tool) 
- 
Gradle (Only required if using Gradle as the build tool) 
To install the dependencies for Android tests, run :
cd android/testng-examples
mvn cleanOr,
To install the dependencies for iOS tests, run :
cd ios/testng-examples
mvn cleanGetting Started with Appium tests in TestNg on BrowserStack couldn't be easier!
- Switch to one of the following directories: Android examples or iOS examples
- For Maven: Run the following command to execute tests in the Maven environment:
mvn test -P sample-test
- For Gradle: Run the following command to execute tests in the Gradle environment:
gradle clean sampleTest 
- 
Simply configure the browserstackLocalparameter in thebrowserstack.ymlfile accordingly in Android examples or iOS examples.browserstackLocal: true
- 
You can use the LocalSampleapp provided in both folder Android examples or iOS examples to run your test. Change the app parameter in thebrowserstack.ymlfile.
- 
For Maven: Run the following command to execute tests in the Maven environment: mvn test -P sample-local-test
- 
For Gradle: Run the following command to execute tests in the Gradle environment: gradle clean sampleLocalTest 
-similarly for gradle you can do :- gradle clean sampleLocalTest
Note: If you are facing any issues, refer Getting Help section
For other Java frameworks samples, refer to following repositories :
Note: For other test frameworks supported by App-Automate refer our Developer documentation
If you are running into any issues or have any queries, please check Browserstack Support page or get in touch with us.
