This client provides a convenient Java wrapper for the TestMonitor API.
Before you start, make sure you have a recent Java SDK installed.
We recommend installing the API client in your Java project using Maven. Add it as a dependency to your Maven configuration:
<dependency>
<groupId>com.testmonitor</groupId>
<artifactId>api-java-client</artifactId>
<version>2.0</version>
</dependency>
If you prefer a standalone JAR library, checkout this repository and run Maven to compile the sources and generate a JAR file:
$ git checkout https://github.com/testmonitor/api-java-client.git
$ cd api-java-client
$ mvn package
Your JAR file will be available in the target
directory.
If you haven't done so, make sure to create an API token in TestMonitor.
Start with a new client instance by providing your TestMonitor domain and API token:
Client client = new Client("example.testmonitor.com", "t0ps3cr3t")
Now you can start interacting with TestMonitor.
To get a list of projects, use the following code:
ArrayList<Project> projects = client.projects().list();
Use this code to create a new test case folder and test case (for project ID 1):
Project project = client.projects().get(1);
TestCaseFolder testCaseFolder = client.testCaseFolders(project).create("A Test Case Folder");
TestCase testCase = client.testCases(project).create("A Test Case", testCaseFolder);
Full documentation is available at our Wiki.
Refer to CHANGELOG for more information.
Refer to CONTRIBUTING for contributing details.
- Thijs Kok - Lead developer - ThijsKok
- Stephan Grootveld - Developer - Stefanius
- Frank Keulen - Developer - FrankIsGek
- Muriel Nooder - Developer - ThaNoodle
The MIT License (MIT). Refer to the License for more information.