Published
- 2 min read
Automate Mobile App testing with Browserstack and TestNG
Check out the source code! - https://github.com/tooniez/java-testng-appium-browserstack
testng-appium-app-browserstack
This repository demonstrates how to run Appium tests in TestNG on BrowserStack App Automate.
Setup
Requirements
-
Java 8+
-
Maven
Install the dependencies
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
Getting Started with Appium tests in TestNg on BrowserStack couldn’t be easier!
Run first test :
- Switch to
run_first_test
directory under Android examples or iOS examples - Follow the steps outlined in the documentation - Get Started with your first test on App Automate
Speed up test execution with parallel testing :
- Switch to
run_parallel_test
directory under Android examples or iOS examples - Follow the steps outlined in the documentation - Get Started with parallel testing on App Automate
Use Local testing for apps that access resources hosted in development or testing environments :
- Switch to
run_local_test
directory under Android examples or iOS examples - Follow the steps outlined in the documentation - Get Started with Local testing on App Automate
Note: If you are facing any issues, refer Getting Help section
Integration with other Java frameworks
For other Java frameworks samples, refer to following repositories :
Note: For other test frameworks supported by App-Automate refer our Developer documentation