Package com.atlassian.bamboo.capture
Interface WebTestDescription
- All Known Implementing Classes:
JUnit4WebTestDescription
public interface WebTestDescription
Represents basic information about a running web test
-
Method Summary
Modifier and TypeMethodDescriptionList of annotations of the test.children()Descriptions of child tests.Test class name, ornullif this is neither a single test, nor a suite constructed for a test class.booleanisSuite()Is it a test suite?booleanisTest()Is it a single test?Test method name, ornullif this is not a single test.name()Display name of the test.Class<?> Test class, ornullif this is neither a single test, nor a suite constructed for a test class..intNumber of single, 'atomic' tests encapsulated by the described test.
-
Method Details
-
name
String name()Display name of the test.- Returns:
- name of the test
-
className
String className()Test class name, ornullif this is neither a single test, nor a suite constructed for a test class.- Returns:
- test class name
-
methodName
String methodName()Test method name, ornullif this is not a single test.- Returns:
- method name
-
testClass
Class<?> testClass()Test class, ornullif this is neither a single test, nor a suite constructed for a test class..- Returns:
- test class
-
annotations
Iterable<Annotation> annotations()List of annotations of the test.- Returns:
- test annotations
-
isTest
boolean isTest()Is it a single test?- Returns:
true, if this description describes a single test
-
isSuite
boolean isSuite()Is it a test suite?- Returns:
true, if this description describes a test suite, i.e. whenisTest()returnsfalse
-
testCount
int testCount()Number of single, 'atomic' tests encapsulated by the described test.- Returns:
- number of single tests within this test.
-
children
Iterable<WebTestDescription> children()Descriptions of child tests.- Returns:
- descriptions of child tests of the described test
-