An open API service indexing awesome lists of open source software.

https://github.com/testingbot/java-testng-example

Java example with TestNG for TestingBot Selenium Grid
https://github.com/testingbot/java-testng-example

selenium testingbot testng webdriver

Last synced: 25 days ago
JSON representation

Java example with TestNG for TestingBot Selenium Grid

Awesome Lists containing this project

README

        

[![Maven Build and Test](https://github.com/testingbot/java-testng-example/actions/workflows/test.yml/badge.svg)](https://github.com/testingbot/java-testng-example/actions/workflows/test.yml)

## TestingBot - Java & TestNG

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.

### Environment Setup

1. Global Dependencies
* [Install Maven](https://maven.apache.org/install.html)
* Or Install Maven with [Homebrew](http://brew.sh/)
```
$ brew install maven
```

2. TestingBot Credentials
* Add your TestingBot Key and Secret as environmental variables. You can find these in the [TestingBot Dashboard](https://testingbot.com/members/).
```
$ export TESTINGBOT_KEY=
$ export TESTINGBOT_SECRET=
```

### Running Tests

* Tests in Parallel:
```
$ mvn test
```
You will see the test result in the [TestingBot Dashboard](https://testingbot.com/members/)

### Resources
##### [TestingBot Documentation](https://testingbot.com/support/)

##### [SeleniumHQ Documentation](http://www.seleniumhq.org/docs/)

##### [TestNg Documentation](https://testng.org/doc/index.html)