com.atlassian.jira.functest.framework
Interface WebTestDescription

All Known Implementing Classes:
JUnit3WebTestDescription, JUnit4WebTestDescription

public interface WebTestDescription

Represents basic information about a running web test

Since:
v4.4

Method Summary
 Iterable<Annotation> annotations()
          List of annotations of the test.
 Set<Category> categories()
          Set of categories describing this test.
 Iterable<WebTestDescription> children()
          Descriptions of child tests.
 String className()
          Test class name, or null if this is neither a single test, nor a suite constructed for a test class.
 boolean isSuite()
          Is it a test suite?
 boolean isTest()
          Is it a single test?
 String methodName()
          Test method name, or null if this is not a single test.
 String name()
          Display name of the test.
 Class<?> testClass()
          Test class, or null if this is neither a single test, nor a suite constructed for a test class..
 int testCount()
          Number of single, 'atomic' tests encapsulated by the described test.
 

Method Detail

name

String name()
Display name of the test.

Returns:
name of the test

className

String className()
Test class name, or null if this is neither a single test, nor a suite constructed for a test class.

Returns:
test class name

methodName

String methodName()
Test method name, or null if this is not a single test.

Returns:
method name

testClass

Class<?> testClass()
Test class, or null if 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

categories

Set<Category> categories()
Set of categories describing this test.

Returns:
categories of this test

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. when isTest() returns false

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


Copyright © 2002-2013 Atlassian. All Rights Reserved.