10.3.2. QF-Test and JUnit Import

Klaros-Testmanagement is able to import test results via a REST interface into the Klaros-Testmanagement database. By default the url of the importer is http://localhost:18080/klaros-web/importer .The content will be transferred via a HTTP PUT request using the above URL and various URL Query parameter. The following parameters are supported:

config

The ID of the project to import the results into (e.g. P0001)

env

The ID of the test environment in which the tests have been run (e.g. ENV00001). Please make sure that this test environment already exists in the project before starting the import.

sut

The ID of the system under test in which the tests have been run (e.g. SUT00001). Please make sure that this system under test already exists in the project before starting the import.

type

The type of the import format. Currently this is either qftest for QF-Test or junit for JUnit XML result files.

time

The time of the import. Please make sure the format of the time is "dd.MM.yyyy_HH:mm".

user name (since plugin version 1.1)

The user name for the import. If Klaros-Testmanagement is configured to use authentication for the import a valid user name must be passed to the importer.

password (since plugin version 1.1)

The password for the import. If Klaros-Testmanagement is configured to use authentication for the import a valid password must be passed to the importer.

A complete example for a QF-Test import URL would look like this:

Example 10.1. QF-Test import URL sample

http://localhost:18080/klaros-web/importer?config=P00001&env=ENV00001&sut=SUT00001&type=qftest&time=01.01.1970_12:00&username=validUser&password=validPassword


with the result file contained in the HTTP request body.