@Retention(value=RUNTIME) @Target(value=METHOD) public @interface TestLink
Test
s the results of which should be reported in testlink xml file.
TestLink
and provide either an externalId()
or
internalId()
, one of which is required.Ignore
as well as tests with failing assumptions will be reported as
BLOCKED, see Assume
as well.@Test @TestLink(internalId = 1) public void testPassed() { assertTrue(true); // PASSED }
@Test @TestLink(externalId = "PROJECT-1") public void testExternalId() { assertTrue(false); // FAILED }
@Test @TestLink(internalId = 2) @Ignore("Just ignore this") public void testIgnored() { assertTrue(true); // BLOCKED as test is ignored. }
@Test @TestLink(externalId = "ASSUMPTION_FAILED") public void testWithFailingAssumption() { assumeTrue(false); // BLOCKED as assumption failed. }
Modifier and Type | Optional Element and Description |
---|---|
String |
externalId
external_id of a Test to be reported.
|
long |
internalId
internal_id of a Test to be reported.
|
public abstract long internalId
public abstract String externalId
Copyright © 2012–2013 1&1. All rights reserved.