|
TPTP 4.6.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
ExecutionUtil.java
| 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 startDate,
long endDate)
Resolves the list of execution results for a list of tests created in date and
time window (end date and time - start date and time). |
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 startDate,
long endDate)
Resolves the list of execution results for a test created in date and
time window (end date and time - start date and time). |
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 startDate,
long endDate)
Resolves the list of execution results for a test created in date and
time window (end date and time - start date and time).
NOTE: This method opens all the execution results in the workspace to resolve the creation time stamp. As such, this method is extremely processor, disk, and memory intensive.
NOTE: If the start date and time is 0 or negative, it defaults to 12:00.00 AM of the current date. Similarly, if the end date and time is 0 or negative, it defaults to current date and time
test - The test to to resolve the list of execution results.startDate - The start date and time of the date and time window.endDate - The start date and time of the date and time window.
null list of execution results for the test created in date and time window (end date and time - start date and time).
public static java.util.Map findExecutionResults(java.util.List tests,
long startDate,
long endDate)
Resolves the list of execution results for a list of tests created in date and
time window (end date and time - start date and time).
NOTE: This method opens all the execution results in the workspace to resolve the creation time stamp. As such, this method is extremely processor, disk, and memory intensive.
NOTE: If the start date and time is 0 or negative, it defaults to 12:00.00 AM of the current date. Similarly, if the end date and time is 0 or negative, it defaults to current date and time
tests - The list of test to to resolve the list of execution results.startTime - The start date and time of the date and time window.endTime - The start date and time of the date and time window.
null list of execution results for the list of tests created in date and time window (end date and time - start date and time).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.6.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||