|
TPTP 4.5.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.hyades.models.common.util.ExecutionUtil
public class ExecutionUtil
| Constructor Summary | |
|---|---|
ExecutionUtil()
|
|
| Method Summary | |
|---|---|
static void |
addReferencedTestSuites(TPFTestSuite testSuite,
java.util.List referencedTestSuites)
Recursively adds all referenced test suites from and including the parameter root test suite. |
static boolean |
containsTestCaseInvocations(TPFTestSuite testSuite)
Determines if the parameter test suite contains at least one test case invocation. |
static java.util.List |
findAllExecutionResults(TPFTest test)
Returns a list with the execution results of a given test. |
static java.util.Map |
findExecutionResults(java.util.List tests)
Returns a map with the list of execution results for each test in the argument. |
static java.util.Map |
findExecutionResults(java.util.List tests,
long startTime,
long endTime)
|
static java.util.List |
findExecutionResults(TPFTest test)
Returns a list with the execution results of a given test. |
static java.util.List |
findExecutionResults(TPFTest test,
long startTime,
long endTime)
Returns a list with the execution results of a given test. |
static java.util.List |
getVerdictEvents(TPFExecutionResult testExecutionResult)
Resolves the list ( TPFVerdictEvent) of verdict events from the
parameter root execution result. |
static int |
resolveTestCaseCount(TPFTestSuite testSuite)
Recursively resolves the count of all test invocations for the parameter test suite. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExecutionUtil()
| Method Detail |
|---|
public static java.util.List findExecutionResults(TPFTest test)
test. The execution results are queried from the
workspace based on matching the test suite's name.
test -
null list
public static java.util.List findExecutionResults(TPFTest test,
long startTime,
long endTime)
test. The execution results are queried from the
workspace based on opening every execution result that have the
timestamp in the specified range and comparing the referenced test to the specified test
Warning -- this is an extremely processor, disk & memory intensive
operation.
test - startTime - if positive specifies the absolute start time stamp (like Date.getTime()), if negative or 0 specifies the start time stamp relative to the current time (the time when this method is called)endTime - if positive specifies the absolute end time stamp (like Date.getTime()), if negative or 0 specifies the end time stamp relative to the current time (the time when this method is called)
null list
public static java.util.Map findExecutionResults(java.util.List tests,
long startTime,
long endTime)
public static java.util.List findAllExecutionResults(TPFTest test)
test. The execution results are queried from the
workspace based on opening every execution result and comparing the
referenced test to the specified test
Warning -- this is an extremely processor, disk & memory intensive
operation.
test -
null listpublic static java.util.Map findExecutionResults(java.util.List tests)
test in the argument. The execution results are queried
from the workspace.
The tests are supposed to be located in the same ResourceSet.
test -
null list
public static void addReferencedTestSuites(TPFTestSuite testSuite,
java.util.List referencedTestSuites)
Referenced test suites are defined as invocations of external test suites.
Only referenced test suites not in the parameter list (TPFTestSuite)
are added. As such, the parameter list (TPFTestSuite) does not
contain duplicate test suites.
testSuite - The root test suite.referencedTestSuites - The list (TPFTestSuite) of referenced test suites.public static boolean containsTestCaseInvocations(TPFTestSuite testSuite)
testSuite - The test suite.
public static int resolveTestCaseCount(TPFTestSuite testSuite)
testSuite - The test suite.
public static java.util.List getVerdictEvents(TPFExecutionResult testExecutionResult)
TPFVerdictEvent) of verdict events from the
parameter root execution result.
testExecutionResult - The root execution result.
TPFVerdictEvent) of verdict events.
|
TPTP 4.5.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||