Package net.oneandone.testlinkjunit.tljunit

By annotating your tests with TestLink test results will be written to a XML file which may be imported to a running Testlink instance as described in the user manual.

See: Description

Package net.oneandone.testlinkjunit.tljunit Description

By annotating your tests with TestLink test results will be written to a XML file which may be imported to a running Testlink instance as described in the user manual.

Usage

Annotating your tests

You have to annotate your tests with TestLink and provide either an externalId or internalId. Tests annotated with Ignore will be marked as BLOCKED as well as tests with failing assumptions.

Running tests with the maven-surefire-plugin

You have to configure the surefire plugin to use the additional TestLinkXmlRunListener or TestLinkLoggingRunListener. See documentation in these classes.

Running tests in Eclipse

To run a test from Eclipse, add a main method which will collect the tests:

    public static void main(String[] args) throws FileNotFoundException {
        final JUnitCore core = new JUnitCore();
        core.addListener(new TestLinkXmlRunListener());
        core.run(EclipseIT.class);
    }
 
Author:
Mirko Friedenhagen

Copyright © 2012–2013 1&1. All rights reserved.