TestingBot provides an online grid of browsers and mobile devices to run Automated tests on via Selenium WebDriver. This example demonstrates how to use Java with TestNG to run tests across several browsers.
-
Global Dependencies
- Install Maven
- Or Install Maven with Homebrew
$ brew install maven
-
TestingBot Credentials
- Add your TestingBot Key and Secret as environmental variables. You can find these in the TestingBot Dashboard.
$ export TESTINGBOT_KEY=<your TestingBot Key> $ export TESTINGBOT_SECRET=<your TestingBot Secret>
- Tests in Parallel:
$ mvn test
You will see the test result in the TestingBot Dashboard