hudson.plugins.testng.util
Class TestResultHistoryUtil

java.lang.Object
  extended by hudson.plugins.testng.util.TestResultHistoryUtil

public class TestResultHistoryUtil
extends Object


Constructor Summary
TestResultHistoryUtil()
           
 
Method Summary
static TestResults getPreviousBuildTestResults(hudson.model.AbstractBuild<?,?> owner)
          Gets the latest build before this one and return's it's test result.
static String toSummary(TestNGBuildAction action)
          Summarizes the delta in tests and also displays a list of failed/skipped tests and configuration methods.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestResultHistoryUtil

public TestResultHistoryUtil()
Method Detail

getPreviousBuildTestResults

public static TestResults getPreviousBuildTestResults(hudson.model.AbstractBuild<?,?> owner)
Gets the latest build before this one and return's it's test result. We'd rather make this list when needed otherwise if we cache these values in the memory we will run out of memory

Returns:
previous build test results if the build exists and has a TestNGBuildAction, otherwise returns an empty TestResults object. Never returns null.

toSummary

public static String toSummary(TestNGBuildAction action)
Summarizes the delta in tests and also displays a list of failed/skipped tests and configuration methods. The list is returned as an HTML unordered list.

Parameters:
action -
Returns:


Copyright © 2004-2012. All Rights Reserved.