Skip to content

This repository contains a demo that shows you how to save your Selenium test results in TestMonitor.

Notifications You must be signed in to change notification settings

testmonitor/selenium-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TestMonitor Selenium Demo

This repository contains a demo that shows you how to save your Selenium test results in TestMonitor.

Table of Contents

Prerequisites

In order to run this demo, you have to make sure the following applications are installed:

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.

Windows

Follow these steps:

Linux (Debian-based)

Follow the instructions of this tutorial to setup Java, Chrome, and the ChromeDriver on your system.

Mac

When on a Mac, we recommend installing these applications through Brew.

$ brew install --cask oracle-jdk
$ brew install --cask chromedriver

Running the Demo

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

Credits

License

TestMonitor is a commercial product, provided as a SaaS application to the customers of TestManagement BV.

About

This repository contains a demo that shows you how to save your Selenium test results in TestMonitor.

Topics

Resources

Stars

Watchers

Forks

Languages