Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

Java JUnit Example for Selenium Testing with TestingBot
https://github.com/testingbot/java-junit-example

junit selenium testingbot webdriver

Last synced: 2 days ago
JSON representation

Java JUnit Example for Selenium Testing with TestingBot

Awesome Lists containing this project

README

        

[![Java CI with Maven](https://github.com/testingbot/java-junit-example/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/testingbot/java-junit-example/actions/workflows/test.yml)

## TestingBot - Java & JUnit

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 JUnit to run a test in parallel across several browsers.

### Environment Setup

1. Setup
* Clone this repository
* Install dependencies `mvn install`

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 TB_KEY=
$ export TB_SECRET=
```

## Running Tests
* To run a single test, run `mvn test -P single`
* To run parallel tests, run `mvn test -P parallel`

You will see the test result in the [TestingBot Dashboard](https://testingbot.com/members/)

### Resources
##### [TestingBot Documentation](https://testingbot.com/support/getting-started/junit.html)

##### [SeleniumHQ Documentation](https://www.selenium.dev/documentation/)