Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/testingbot/java-junit-example
- Owner: testingbot
- Created: 2018-10-30T14:11:32.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-08T08:27:11.000Z (11 months ago)
- Last Synced: 2024-12-26T02:07:37.957Z (27 days ago)
- Topics: junit, selenium, testingbot, webdriver
- Language: Java
- Homepage: https://testingbot.com/support/getting-started/junit.html
- Size: 8.79 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/)