TPTP 4.5.0 Testing Tools Project
Internal API Specification

org.eclipse.hyades.test.tools.ui.common.internal.report.jscrib
Class ReportDataUtils

java.lang.Object
  extended by org.eclipse.hyades.test.tools.ui.common.internal.report.jscrib.ReportDataUtils

Deprecated. As of TPTP 4.5.0, use the TPTP Business Intelligence and Reporting Tools (BIRT) reporting infrastructure (org.eclipse.tptp.platform.report.birt).

public class ReportDataUtils
extends java.lang.Object

This util class is useful to generate data for the JScrib report.


Constructor Summary
ReportDataUtils()
          Deprecated.  
 
Method Summary
static org.eclipse.hyades.models.common.testprofile.TPFVerdictEvent arbitrateVerdictEvent(java.util.List executionEvents)
          Deprecated. Arbitrates a single verdict event from one or more verdict events.
static java.util.List findAllVerdictEvents(org.eclipse.hyades.models.common.testprofile.TPFExecutionHistory executionHistory)
          Deprecated. Recursively resolves all verdicts from the parameter execution history.
static java.util.List findAllVerdicts(java.util.List tpfExecutionEvents)
          Deprecated. Find the verdict of every TPFInvocationEvent from the specified list of TPFExecutionEvent and their children events recursively.
static java.util.List getExecutionResultsForWindow(java.util.List executionResults, long startTime, long endTime)
          Deprecated. Resolves all execution results within a window of time.
static org.eclipse.emf.common.util.EList getReferencedTestSuites(org.eclipse.emf.common.util.EList rootTestSuites)
          Deprecated. Recursively adds all referenced test suites from and including the parameter list of root test suites.
static org.eclipse.emf.common.util.EList getReferencedTestSuites(org.eclipse.hyades.models.common.testprofile.TPFTestSuite rootTestSuite)
          Deprecated. Recursively adds all referenced test suites from and including the parameter root test suite.
static int getVerdict(int[] results)
          Deprecated. Resolves the arbitrated verdict from the array of verdicts (pass, inconclusive, fail, error).
static java.lang.String normalize(int i)
          Deprecated.  
static int resolveExecutionOccurrences(org.eclipse.hyades.models.common.interactions.BVRInteractionFragment interactionFragment)
          Deprecated. Recursively resolves the count of all execution occurrences in the parameter root interaction fragment including any referenced execution occurrences by the parameter root interaction fragment.
static int resolveTestCaseCount(org.eclipse.hyades.models.common.testprofile.TPFTestSuite testSuite)
          Deprecated. Recursively resolves the count of all test cases in the parameter root test suite including any referenced test cases by the parameter root test suite.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportDataUtils

public ReportDataUtils()
Deprecated. 
Method Detail

normalize

public static java.lang.String normalize(int i)
Deprecated. 

getVerdict

public static int getVerdict(int[] results)
Deprecated. 
Resolves the arbitrated verdict from the array of verdicts (pass, inconclusive, fail, error).

Parameters:
results - An array of verdicts (pass, inconclusive, fail, error).
Returns:
The arbitrated verdict, or -1 if the array contains no values.
See Also:
TPFVerdict

getExecutionResultsForWindow

public static java.util.List getExecutionResultsForWindow(java.util.List executionResults,
                                                          long startTime,
                                                          long endTime)
Deprecated. 
Resolves all execution results within a window of time.

The window consists of a start date and time and an end date and time (UTC).

For an execution result to be included in the window, its start date and time as well as the completion date and time must fall within the window of time.

Parameters:
executionResults - The list of execution results to be evaluated.
startTime - The start date and time in milliseconds (UTC).
endTime - The end date and time in milliseconds (UTC).
Returns:
The list of all execution results within a window of time.

resolveTestCaseCount

public static int resolveTestCaseCount(org.eclipse.hyades.models.common.testprofile.TPFTestSuite testSuite)
Deprecated. 
Recursively resolves the count of all test cases in the parameter root test suite including any referenced test cases by the parameter root test suite.

Parameters:
testSuite - The root test suite.
Returns:
Count of all test cases in or referenced by the parameter root test suite.

resolveExecutionOccurrences

public static int resolveExecutionOccurrences(org.eclipse.hyades.models.common.interactions.BVRInteractionFragment interactionFragment)
Deprecated. 
Recursively resolves the count of all execution occurrences in the parameter root interaction fragment including any referenced execution occurrences by the parameter root interaction fragment.

Looping is handled by multiplying the number of iterations in the loop by number of execution occurrences within the body of the loop.

Parameters:
interactionFragment - The root interaction fragment.
Returns:
Count of all execution occurrences in or referenced by the parameter root interaction fragment.

getReferencedTestSuites

public static org.eclipse.emf.common.util.EList getReferencedTestSuites(org.eclipse.hyades.models.common.testprofile.TPFTestSuite rootTestSuite)
Deprecated. 
Recursively adds all referenced test suites from and including the parameter root test suite.

Referenced test suites are defined as invocations of external test suites.

The return list (TPFTestSuite) does not contain duplicate test suites.

Parameters:
rootTestSuite - The root test suites.
referencedTestSuites - The list (TPFTestSuite) of referenced test suites.

getReferencedTestSuites

public static org.eclipse.emf.common.util.EList getReferencedTestSuites(org.eclipse.emf.common.util.EList rootTestSuites)
Deprecated. 
Recursively adds all referenced test suites from and including the parameter list of root test suites.

Referenced test suites are defined as invocations of external test suites.

The return list (TPFTestSuite) does not contain duplicate test suites.

Parameters:
rootTestSuites - The list of root test suites.
referencedTestSuites - The list (TPFTestSuite) of referenced test suites.

findAllVerdictEvents

public static java.util.List findAllVerdictEvents(org.eclipse.hyades.models.common.testprofile.TPFExecutionHistory executionHistory)
Deprecated. 

Recursively resolves all verdicts from the parameter execution history.

Parameters:
executionHistory - The root execution history.
Returns:
all TPFVerdict from every TPFInvocationEvent.

findAllVerdicts

public static java.util.List findAllVerdicts(java.util.List tpfExecutionEvents)
Deprecated. 
Find the verdict of every TPFInvocationEvent from the specified list of TPFExecutionEvent and their children events recursively.

Parameters:
tpfExecutionEvents - list of TPFExecutionEvent to search from.
Returns:
all TPFVerdict from every TPFInvocationEvent.

arbitrateVerdictEvent

public static org.eclipse.hyades.models.common.testprofile.TPFVerdictEvent arbitrateVerdictEvent(java.util.List executionEvents)
Deprecated. 
Arbitrates a single verdict event from one or more verdict events.

Arbitration is done using the following inequality:

Error > Fail > Inconclusive > Pass

If no verdict events exist in the parameter list of execution events, null is returned.

Parameters:
executionEvents - A list of execution events that may contain one or more verdict events.
Returns:
The single verdict event arbitrated from one or more verdict events, otherwise null.

TPTP 4.5.0 Testing Tools Project
Internal API Specification