This repository demonstrates how to run Appium tests in TestNG on BrowserStack App Automate.
These code samples are currently based on:
- Appium-Java-Client:
8.1.1
- Protocol:
W3C
-
Java 8+
-
Maven
To install the dependencies for Android tests, run :
cd android/testng-examples
mvn clean
Or,
To install the dependencies for iOS tests, run :
cd ios/testng-examples
mvn clean
Getting Started with Appium tests in TestNg on BrowserStack couldn't be easier!
- Update
first.conf.json
file inside thesrc/test/resources/com/browserstack/run_first_test
with your BrowserStack Username and Access Key - Run
mvn test -P first
- Update
parallel.conf.json
file inside thesrc/test/resources/com/browserstack/run_parallel_test
with your BrowserStack Username and Access Key - Run
mvn test -P parallel
- Update
local.conf.json
file inside thesrc/test/resources/com/browserstack/run_local_test
with your BrowserStack Username and Access Key - Run
mvn test -P local
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.