hudson.plugins.testng.results
Class MethodResult

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

public class MethodResult
extends BaseResult

See Also:
Serialized Form

Field Summary
 
Fields inherited from class hudson.plugins.testng.results.BaseResult
fullName, name, owner, parent
 
Constructor Summary
MethodResult(java.lang.String name, java.lang.String status, java.lang.String description, java.lang.String duration, java.lang.String startedAt, java.lang.String isConfig, java.lang.String testRunId, java.lang.String parentTestName, java.lang.String parentSuiteName, java.lang.String testInstanceName)
           
 
Method Summary
 void doGraph(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Creates test method execution history graph
 void doGraphMap(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Creates map to make the graph clickable
 java.lang.String getClassName()
          Added only to expose class name as part of method result via .../api/xxx
 java.lang.Object getCssClass()
           
 java.lang.String getDescription()
           
 java.lang.String getDisplayDescription()
          Used on jelly page to display the proper (un)escaped version of description
 java.lang.String getDisplayDuration()
          Used on jelly page to display duration in human readable form
 java.lang.String getDisplayExceptionMessage()
          Used on jelly page to display the proper (un)escaped version of excp msg
 java.lang.String getDisplayGroups()
          Used on jelly page to display comma separate list of groups
 long getDuration()
           
 MethodResultException getException()
           
 java.lang.String getExceptionString()
          Added only to expose possible exception via .../api/xxx
 java.lang.String getFullUrl()
           
 java.util.List<java.lang.String> getGroups()
           
 java.util.List<java.lang.String> getParameters()
           
 java.lang.String getParentSuiteName()
           
 java.lang.String getParentTestName()
           
 java.util.Date getStartedAt()
           
 java.lang.String getStatus()
           
 java.lang.String getTestInstanceName()
           
 java.lang.String getTestRunId()
           
 java.lang.String getTestUuid()
           
 java.lang.String getUrl()
           
 boolean isConfig()
           
 void setException(MethodResultException exception)
           
 void setGroups(java.util.List<java.lang.String> groups)
           
 void setParameters(java.util.List<java.lang.String> parameters)
           
 void setTestUuid(java.lang.String testUuid)
           
 
Methods inherited from class hudson.plugins.testng.results.BaseResult
getApi, getDisplayName, getName, getOwner, getParent, setOwner, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodResult

public MethodResult(java.lang.String name,
                    java.lang.String status,
                    java.lang.String description,
                    java.lang.String duration,
                    java.lang.String startedAt,
                    java.lang.String isConfig,
                    java.lang.String testRunId,
                    java.lang.String parentTestName,
                    java.lang.String parentSuiteName,
                    java.lang.String testInstanceName)
Method Detail

getTestUuid

public java.lang.String getTestUuid()

setTestUuid

public void setTestUuid(java.lang.String testUuid)

getTestInstanceName

public java.lang.String getTestInstanceName()

getParentTestName

public java.lang.String getParentTestName()

getParentSuiteName

public java.lang.String getParentSuiteName()

getTestRunId

public java.lang.String getTestRunId()

getStartedAt

@Exported
public java.util.Date getStartedAt()

getFullUrl

public java.lang.String getFullUrl()

getException

public MethodResultException getException()

setException

public void setException(MethodResultException exception)

getUrl

public java.lang.String getUrl()
Overrides:
getUrl in class BaseResult

getDuration

@Exported
public long getDuration()

getStatus

@Exported(visibility=9)
public java.lang.String getStatus()

getDescription

@Exported
public java.lang.String getDescription()

getGroups

@Exported
public java.util.List<java.lang.String> getGroups()

getParameters

@Exported
public java.util.List<java.lang.String> getParameters()

getExceptionString

@Exported(name="exception")
public java.lang.String getExceptionString()
Added only to expose possible exception via .../api/xxx

Returns:
String representation of the exception

getClassName

@Exported(name="className")
public java.lang.String getClassName()
Added only to expose class name as part of method result via .../api/xxx

Returns:
String representation of the exception

setGroups

public void setGroups(java.util.List<java.lang.String> groups)

setParameters

public void setParameters(java.util.List<java.lang.String> parameters)

getDisplayDescription

public java.lang.String getDisplayDescription()
Used on jelly page to display the proper (un)escaped version of description

Returns:

getDisplayExceptionMessage

public java.lang.String getDisplayExceptionMessage()
Used on jelly page to display the proper (un)escaped version of excp msg

Returns:

getDisplayDuration

public java.lang.String getDisplayDuration()
Used on jelly page to display duration in human readable form

Returns:

getDisplayGroups

public java.lang.String getDisplayGroups()
Used on jelly page to display comma separate list of groups

Returns:

isConfig

public boolean isConfig()

doGraph

public void doGraph(org.kohsuke.stapler.StaplerRequest req,
                    org.kohsuke.stapler.StaplerResponse rsp)
             throws java.io.IOException
Creates test method execution history graph

Parameters:
req -
rsp -
Throws:
java.io.IOException

doGraphMap

public void doGraphMap(org.kohsuke.stapler.StaplerRequest req,
                       org.kohsuke.stapler.StaplerResponse rsp)
                throws java.io.IOException
Creates map to make the graph clickable

Parameters:
req -
rsp -
Throws:
java.io.IOException

getCssClass

public java.lang.Object getCssClass()


Copyright © 2004-2011. All Rights Reserved.