hudson.plugins.testng.results
Class PackageResult

java.lang.Object
  extended by hudson.plugins.testng.results.BaseResult
      extended by hudson.plugins.testng.results.PackageResult
All Implemented Interfaces:
hudson.model.ModelObject, Serializable

public class PackageResult
extends BaseResult

See Also:
Serialized Form

Field Summary
 int MAX_EXEC_MTHD_LIST_SIZE
           
 
Fields inherited from class hudson.plugins.testng.results.BaseResult
fullName, name, owner, parent
 
Constructor Summary
PackageResult(String name)
           
 
Method Summary
 long getAge()
          Gets the age of a result
 String getAllSortedTestMethodsByStartTime()
          Gets table row representation for all the method results associated with this package (sorted based on start time)
 List<ClassResult> getClassList()
           
 long getDuration()
           
 Object getDynamic(String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
           
 int getFail()
           
 long getFailedTestsDiffCount()
           
 String getFirstXSortedTestMethodsByStartTime()
          Gets table row representation for the first MAX_EXEC_MTHD_LIST_SIZE method results associated with this package (sorted based on start time)
 int getSkip()
           
 long getSkippedTestsDiffCount()
           
 List<MethodResult> getSortedTestMethodsByStartTime()
          Gets all the method results related to this package sorted by the time the methods were executed
 int getTotal()
           
 long getTotalTestsDiffCount()
           
 void setOwner(hudson.model.AbstractBuild<?,?> owner)
           
 void sortTestMethods()
          Sorts the test method results associated with this package based on the start time for method execution
 void tally()
           
 
Methods inherited from class hudson.plugins.testng.results.BaseResult
getApi, getDisplayName, getName, getOwner, getParent, getUrl, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_EXEC_MTHD_LIST_SIZE

public final int MAX_EXEC_MTHD_LIST_SIZE
See Also:
Constant Field Values
Constructor Detail

PackageResult

public PackageResult(String name)
Method Detail

setOwner

public void setOwner(hudson.model.AbstractBuild<?,?> owner)
Overrides:
setOwner in class BaseResult

getClassList

@Exported(name="classs")
public List<ClassResult> getClassList()

getDuration

@Exported
public long getDuration()

getFail

@Exported(visibility=9)
public int getFail()

getSkip

@Exported(visibility=9)
public int getSkip()

getTotal

@Exported(visibility=9)
public int getTotal()

getAge

public long getAge()
Gets the age of a result

Returns:
the number of consecutive builds for which we have a result for this package

getSortedTestMethodsByStartTime

public List<MethodResult> getSortedTestMethodsByStartTime()
Gets all the method results related to this package sorted by the time the methods were executed

Returns:

getAllSortedTestMethodsByStartTime

@JavaScriptMethod
public String getAllSortedTestMethodsByStartTime()
Gets table row representation for all the method results associated with this package (sorted based on start time)

Returns:

getFirstXSortedTestMethodsByStartTime

@JavaScriptMethod
public String getFirstXSortedTestMethodsByStartTime()
Gets table row representation for the first MAX_EXEC_MTHD_LIST_SIZE method results associated with this package (sorted based on start time)

Returns:

tally

public void tally()

getDynamic

public Object getDynamic(String token,
                         org.kohsuke.stapler.StaplerRequest req,
                         org.kohsuke.stapler.StaplerResponse rsp)

sortTestMethods

public void sortTestMethods()
Sorts the test method results associated with this package based on the start time for method execution


getFailedTestsDiffCount

public long getFailedTestsDiffCount()

getTotalTestsDiffCount

public long getTotalTestsDiffCount()

getSkippedTestsDiffCount

public long getSkippedTestsDiffCount()


Copyright © 2004-2012. All Rights Reserved.