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, 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(String name, String status, String description, String duration, Date startedAt, String isConfig, String testRunId, String parentTestName, String parentSuiteName, 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
 String getClassName()
          Added only to expose class name as part of method result via .../api/xxx
 Object getCssClass()
           
 String getDescription()
           
 String getDisplayDescription()
          Used on jelly page to display the proper (un)escaped version of description
 String getDisplayDuration()
          Used on jelly page to display duration in human readable form
 String getDisplayExceptionMessage()
          Used on jelly page to display the proper (un)escaped version of excp msg
 String getDisplayGroups()
          Used on jelly page to display comma separate list of groups
 long getDuration()
           
 MethodResultException getException()
           
 String getExceptionString()
          Added only to expose possible exception via .../api/xxx
 String getFullUrl()
           
 List<String> getGroups()
           
 List<String> getParameters()
           
 String getParentSuiteName()
           
 String getParentTestName()
           
 Date getStartedAt()
           
 String getStatus()
           
 String getTestInstanceName()
           
 String getTestRunId()
           
 String getTestUuid()
           
 String getUrl()
           
 boolean isConfig()
           
 void setException(MethodResultException exception)
           
 void setGroups(List<String> groups)
           
 void setParameters(List<String> parameters)
           
 void setTestUuid(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(String name,
                    String status,
                    String description,
                    String duration,
                    Date startedAt,
                    String isConfig,
                    String testRunId,
                    String parentTestName,
                    String parentSuiteName,
                    String testInstanceName)
Method Detail

getTestUuid

public String getTestUuid()

setTestUuid

public void setTestUuid(String testUuid)

getTestInstanceName

public String getTestInstanceName()

getParentTestName

public String getParentTestName()

getParentSuiteName

public String getParentSuiteName()

getTestRunId

public String getTestRunId()

getStartedAt

@Exported
public Date getStartedAt()

getFullUrl

public String getFullUrl()

getException

public MethodResultException getException()

setException

public void setException(MethodResultException exception)

getUrl

public String getUrl()
Overrides:
getUrl in class BaseResult

getDuration

@Exported
public long getDuration()

getStatus

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

getDescription

@Exported
public String getDescription()

getGroups

@Exported
public List<String> getGroups()

getParameters

@Exported
public List<String> getParameters()

getExceptionString

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

Returns:
String representation of the exception

getClassName

@Exported(name="className")
public 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(List<String> groups)

setParameters

public void setParameters(List<String> parameters)

getDisplayDescription

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

Returns:

getDisplayExceptionMessage

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

Returns:

getDisplayDuration

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

Returns:

getDisplayGroups

public 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 IOException
Creates test method execution history graph

Parameters:
req -
rsp -
Throws:
IOException

doGraphMap

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

Parameters:
req -
rsp -
Throws:
IOException

getCssClass

public Object getCssClass()


Copyright © 2004-2012. All Rights Reserved.