This repository contains a demo that shows you how to save your Selenium test results in TestMonitor.
In order to run this demo, you have to make sure the following applications are installed:
- A recent Java JDK.
- A recent ChromeDriver.
A TestMonitor project and Auth token are required as well. When you're already a TestMonitor user, create a new project or re-use an existing one. You can create an Auth token by clicking on your avatar on the top right and selecting "My account...". Select API in the menu and click on Create Token to generate your Auth token.
If you're not a TestMonitor user, you can register for a free trial first.
Follow these steps:
- Download and install the Java Software Development Kit (JDK).
- Install Google Chrome.
- Download the Google ChromeDriver that matches your Google Chrome version.
Follow the instructions of this tutorial to setup Java, Chrome, and the ChromeDriver on your system.
When on a Mac, we recommend installing these applications through Brew.
$ brew install --cask oracle-jdk
$ brew install --cask chromedriver
Start by cloning the repository from Github:
$ git clone https://github.com/testmonitor/selenium-demo.git
Let Maven install the required packages:
$ mvn install
Configure the path of your Chrome driver:
$ export CHROMEDRIVER_PATH=/usr/local/bin/chromedriver
Configure the properties in the testmonitor.properties
file:
TESTMONITOR_DOMAIN=mydomain.testmonitor.com
TESTMONITOR_TOKEN=itsatoken
TESTMONITOR_PROJECT_ID=1
TESTMONITOR_MILESTONE_ID=1
TESTMONITOR_TEST_RUN_PREFIX=AT
And you're all good to go!
To run a single test case without sending the results to TestMonitor, simply type:
$ mvn test -P single
To run a series of happy flow test cases and send their results to TestMonitor, use:
$ mvn test -P happyflow
You can test all test cases (including the failing ones) and send the results to TestMonitor using:
$ mvn test -P all
- Thijs Kok - Lead developer - ThijsKok
- Stephan Grootveld - Developer - Stefanius
- Muriel Nooder - Developer - ThaNoodle
TestMonitor is a commercial product, provided as a SaaS application to the customers of TestManagement BV.