|
TPTP 4.5.0 Testing Tools Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.hyades.test.tools.ui.common.internal.report.jscrib.ReportDataUtils
org.eclipse.tptp.platform.report.birt).
public class ReportDataUtils
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 |
|---|
public ReportDataUtils()
| Method Detail |
|---|
public static java.lang.String normalize(int i)
public static int getVerdict(int[] results)
results - An array of verdicts (pass, inconclusive, fail, error).
TPFVerdict
public static java.util.List getExecutionResultsForWindow(java.util.List executionResults,
long startTime,
long endTime)
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.
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).
public static int resolveTestCaseCount(org.eclipse.hyades.models.common.testprofile.TPFTestSuite testSuite)
testSuite - The root test suite.
public static int resolveExecutionOccurrences(org.eclipse.hyades.models.common.interactions.BVRInteractionFragment interactionFragment)
Looping is handled by multiplying the number of iterations in the loop by number of execution occurrences within the body of the loop.
interactionFragment - The root interaction fragment.
public static org.eclipse.emf.common.util.EList getReferencedTestSuites(org.eclipse.hyades.models.common.testprofile.TPFTestSuite rootTestSuite)
Referenced test suites are defined as invocations of external test suites.
The return list (TPFTestSuite) does not contain duplicate test suites.
rootTestSuite - The root test suites.referencedTestSuites - The list (TPFTestSuite) of referenced test suites.public static org.eclipse.emf.common.util.EList getReferencedTestSuites(org.eclipse.emf.common.util.EList rootTestSuites)
Referenced test suites are defined as invocations of external test suites.
The return list (TPFTestSuite) does not contain duplicate test suites.
rootTestSuites - The list of root test suites.referencedTestSuites - The list (TPFTestSuite) of referenced test suites.public static java.util.List findAllVerdictEvents(org.eclipse.hyades.models.common.testprofile.TPFExecutionHistory executionHistory)
Recursively resolves all verdicts from the parameter execution history.
executionHistory - The root execution history.
TPFVerdict from every TPFInvocationEvent.public static java.util.List findAllVerdicts(java.util.List tpfExecutionEvents)
TPFInvocationEvent from the specified list of TPFExecutionEvent and their children events recursively.
tpfExecutionEvents - list of TPFExecutionEvent to search from.
TPFVerdict from every TPFInvocationEvent.public static org.eclipse.hyades.models.common.testprofile.TPFVerdictEvent arbitrateVerdictEvent(java.util.List executionEvents)
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.
executionEvents - A list of execution events that may contain one or more
verdict events.
null.
|
TPTP 4.5.0 Testing Tools Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||