|
TPTP 4.4.0 Testing Tools 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.test.core.launch.delegates.AbstractLaunchConfigurationDelegate2
org.eclipse.hyades.test.core.launch.delegates.BasicTestLaunchConfigurationDelegate2
This class is the delegate for the Test launch configuration. It handles the launching of a TPTP Test according to a Test Launch Configuration.
ILaunchConfigurationDelegate| Constructor Summary | |
|---|---|
BasicTestLaunchConfigurationDelegate2()
Create a Test launch configuration delegate. |
|
| Method Summary | |
|---|---|
protected org.eclipse.hyades.models.common.testprofile.TPFDeployment |
getDeployment(org.eclipse.debug.core.ILaunchConfiguration configuration)
Returns the deployment used for launching the test. |
protected java.lang.Object |
getLaunchedElement(org.eclipse.debug.core.ILaunchConfiguration configuration)
This implementation returns the test launched by the specified launch configuration. |
protected org.eclipse.hyades.models.common.testprofile.TPFTest |
getLaunchedTest(org.eclipse.debug.core.ILaunchConfiguration configuration)
Returns the test launched by the Test launch configuration. |
protected org.eclipse.core.resources.IContainer |
getTestExecutionHistoryLocation(org.eclipse.debug.core.ILaunchConfiguration configuration)
Returns the Test Log file location. |
protected java.lang.String |
getTestExecutionHistoryName(org.eclipse.debug.core.ILaunchConfiguration configuration)
Returns the Test Log name. |
org.eclipse.hyades.execution.core.IExecutor |
invokeTestExecutionHarness(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String mode,
java.lang.StringBuffer errorMessages,
org.eclipse.core.runtime.IProgressMonitor monitor)
This implementation invokes the Test Execution Harness to launch the test specified by a Test launch configuration, using the Test launch configuration properties. |
protected boolean |
isTestExecutionHistoryDatabase(org.eclipse.debug.core.ILaunchConfiguration configuration)
Returns the Test Log "database" property. |
protected boolean |
isTestExecutionHistoryTestLogFile(org.eclipse.debug.core.ILaunchConfiguration configuration)
Returns the "Test Log File" property. |
protected boolean |
overrideExistingTestExecutionHistory(org.eclipse.debug.core.ILaunchConfiguration configuration)
Returns the Test Log "overwrite" property. |
protected void |
validate(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String mode)
In addition to the points checked by the super class, this implementation checks the following points: The deployment is not null
The Test Log name is neither empty nor null
The Test Log file location is not null
|
| Methods inherited from class org.eclipse.hyades.test.core.launch.delegates.AbstractLaunchConfigurationDelegate2 |
|---|
getResourceSet, launch, reportProblem, resetFields |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicTestLaunchConfigurationDelegate2()
| Method Detail |
protected org.eclipse.hyades.models.common.testprofile.TPFTest getLaunchedTest(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionTestLaunchConfigurationFacade.getTest(ILaunchConfiguration, org.eclipse.emf.ecore.resource.ResourceSet)
protected org.eclipse.hyades.models.common.testprofile.TPFDeployment getDeployment(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionDeploymentLaunchConfigurationFacade.getDeployment(ILaunchConfiguration, org.eclipse.emf.ecore.resource.ResourceSet)
protected java.lang.String getTestExecutionHistoryName(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionExecutionHistoryLaunchConfigurationFacade.getExecutionHistoryName(ILaunchConfiguration)
protected org.eclipse.core.resources.IContainer getTestExecutionHistoryLocation(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionExecutionHistoryLaunchConfigurationFacade.getExecutionHistoryLocation(ILaunchConfiguration)
protected boolean overrideExistingTestExecutionHistory(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionExecutionHistoryLaunchConfigurationFacade.isExecutionHistoryOverriden(ILaunchConfiguration)
protected boolean isTestExecutionHistoryDatabase(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionExecutionHistoryLaunchConfigurationFacade.isExecutionHistoryDatabase(ILaunchConfiguration)
protected boolean isTestExecutionHistoryTestLogFile(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionExecutionHistoryLaunchConfigurationFacade.isExecutionHistoryTestLogFile(ILaunchConfiguration)
protected java.lang.Object getLaunchedElement(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
getLaunchedElement in class AbstractLaunchConfigurationDelegate2configuration - A Hyades Launch Configuration
org.eclipse.core.runtime.CoreException
protected void validate(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String mode)
throws org.eclipse.core.runtime.CoreException
nullnullnull
validate in class AbstractLaunchConfigurationDelegate2configuration - A Hyades Launch Configurationmode - The run mode the Launch Configuration should be running in.
org.eclipse.core.runtime.CoreException
public org.eclipse.hyades.execution.core.IExecutor invokeTestExecutionHarness(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String mode,
java.lang.StringBuffer errorMessages,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
This implementation invokes the Test Execution Harness to launch the test specified by a Test launch configuration, using the Test launch configuration properties.
In run mode, the type of test passed to the Execution Harness is the type of test test. In
debug or profile mode, the type passed to the Execution Harness is the type of the, appended
with ".debug" or ".profile" respectively.
For instance, if the type of the test "org.myorg.mytest" and the delegate is invoked
in debug mode, the type passed to the execution harness is "org.myorg.mytest.debug".
invokeTestExecutionHarness in class AbstractLaunchConfigurationDelegate2configuration - A Hyades Launch Configurationmode - The run mode the Launch Configuration should be running in.errorMessages - This is initially an empty buffer that this method should fill
with the errors reported by the Test Execution Harness. The Test Execution Harness will be
considered as failed if this buffer is not empty after the call to this method.
org.eclipse.core.runtime.CoreExceptionILaunchConfigurationDelegate.launch(org.eclipse.debug.core.ILaunchConfiguration, java.lang.String, org.eclipse.debug.core.ILaunch, org.eclipse.core.runtime.IProgressMonitor)
|
TPTP 4.4.0 Testing Tools Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||