hudson.tasks.junit
Class SuiteResult

java.lang.Object
  extended by hudson.tasks.junit.SuiteResult
All Implemented Interfaces:
Serializable

@ExportedBean
public final class SuiteResult
extends Object
implements Serializable

Result of one test suite.

The notion of "test suite" is rather arbitrary in JUnit ant task. It's basically one invocation of junit.

This object is really only used as a part of the persisted object tree.

Author:
Kohsuke Kawaguchi
See Also:
Serialized Form

Nested Class Summary
static class SuiteResult.SuiteResultParserConfigurationContext
          Passed to ParserConfigurator.
 
Method Summary
 CaseResult getCase(String name)
          Returns the CaseResult whose CaseResult.getName() is the same as the given string.
 List<CaseResult> getCases()
           
 Set<String> getClassNames()
           
 float getDuration()
           
 String getFile()
          The absolute path to the original test report.
 String getId()
           
 String getName()
           
 TestResult getParent()
           
 SuiteResult getPreviousResult()
           
 String getStderr()
          The stderr of this test.
 String getStdout()
          The stdout of this test.
 String getTimestamp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

@Exported(visibility=9)
public String getName()

getDuration

@Exported(visibility=9)
public float getDuration()

getStdout

@Exported
public String getStdout()
The stdout of this test.

Since:
1.281
See Also:
CaseResult.getStdout()

getStderr

@Exported
public String getStderr()
The stderr of this test.

Since:
1.281
See Also:
CaseResult.getStderr()

getFile

public String getFile()
The absolute path to the original test report. OS-dependent.


getParent

public TestResult getParent()

getTimestamp

@Exported(visibility=9)
public String getTimestamp()

getId

@Exported(visibility=9)
public String getId()

getCases

@Exported(inline=true,
          visibility=9)
public List<CaseResult> getCases()

getPreviousResult

public SuiteResult getPreviousResult()

getCase

public CaseResult getCase(String name)
Returns the CaseResult whose CaseResult.getName() is the same as the given string.

Note that test name needs not be unique.


getClassNames

public Set<String> getClassNames()


Copyright © 2004-2013. All Rights Reserved.