public abstract class ExternalSutController extends SutController
| Modifier and Type | Field and Description |
|---|---|
protected Process |
process |
static String |
PROP_MUTE_SUT
System property to avoid printing the console output of the SUT.
|
| Constructor and Description |
|---|
ExternalSutController() |
| Modifier and Type | Method and Description |
|---|---|
List<AdditionalInfo> |
getAdditionalInfoList()
Get additional info for each action in the test.
|
abstract String |
getBaseURL() |
abstract String[] |
getInputParameters() |
abstract String[] |
getJVMParameters() |
abstract String |
getLogMessageOfInitializedServer() |
abstract long |
getMaxAwaitForInitializationInSeconds()
How long (in seconds) we should wait at most to check if SUT is ready
and initialized (this related to the getLogMessageOfInitializedServer() method)
|
abstract String |
getPathToExecutableJar() |
List<TargetInfo> |
getTargetInfos(Collection<Integer> ids) |
boolean |
isInstrumentationActivated()
Check if bytecode instrumentation is on.
|
boolean |
isSutRunning()
Check if the system under test (SUT) is running and fully initialized
|
void |
newActionSpecificHandler(int actionIndex) |
void |
newSearch()
Re-initialize all internal data to enable a completely new search phase
which should be independent from previous ones
|
void |
newTestSpecificHandler() |
abstract void |
postStart()
This method is going to be called after the SUT is started.
|
abstract void |
postStop()
If the SUT needs some third-party processes (eg a non-embedded database),
here we can shut them down once the SUT has been stopped.
|
abstract void |
preStart()
If the SUT needs some third-party processes (eg a non-embedded database),
here they can be configured and started.
|
abstract void |
preStop()
This method is going to be called before the SUT is stopped.
|
void |
setInstrumentation(boolean instrumentation) |
protected void |
startExternalProcessPrinter() |
String |
startSut()
Start a new instance of the SUT.
|
void |
stopSut()
Stop the SUT
|
computeExtraHeuristics, enableSqlHeuristics, execInsertionsIntoDatabase, getConnection, getControllerHost, getControllerPort, getControllerServerPort, getDatabaseDriverName, getExtraHeuristics, getInfoForAuthentication, getPackagePrefixesToCover, getPreferredOutputFormat, getProblemInfo, getSqlDatabaseSchema, handleSql, initSqlHandler, newAction, newTest, resetExtraHeuristics, setControllerHost, setControllerPort, startTheControllerServer, stopTheControllerServerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresetStateOfSUTpublic static final String PROP_MUTE_SUT
protected volatile Process process
public void setInstrumentation(boolean instrumentation)
public abstract String[] getInputParameters()
public abstract String[] getJVMParameters()
public abstract String getBaseURL()
public abstract String getPathToExecutableJar()
public abstract String getLogMessageOfInitializedServer()
public abstract long getMaxAwaitForInitializationInSeconds()
public abstract void preStart()
public abstract void postStart()
public abstract void preStop()
public abstract void postStop()
public String startSut()
SutHandlerpublic boolean isSutRunning()
SutControllerisSutRunning in class SutControllerpublic void stopSut()
SutHandlerpublic final boolean isInstrumentationActivated()
SutControllerisInstrumentationActivated in class SutControllerpublic final void newSearch()
SutControllernewSearch in class SutControllerpublic final void newTestSpecificHandler()
newTestSpecificHandler in class SutControllerpublic final List<TargetInfo> getTargetInfos(Collection<Integer> ids)
getTargetInfos in class SutControllerpublic final List<AdditionalInfo> getAdditionalInfoList()
SutControllergetAdditionalInfoList in class SutControllerpublic final void newActionSpecificHandler(int actionIndex)
newActionSpecificHandler in class SutControllerprotected void startExternalProcessPrinter()
Copyright © 2016–2019. All rights reserved.