public abstract class ExternalSutController extends SutController
| Constructor and Description |
|---|
ExternalSutController() |
| Modifier and Type | Method and Description |
|---|---|
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<org.evomaster.clientJava.instrumentation.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 |
newSearch()
Re-initialize all internal data to enable a completely new search phase
which should be independent from previous ones
|
void |
newTest()
Re-initialize some internal data needed before running a new test
|
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 system under test
|
getControllerHost, getControllerPort, getControllerServerPort, getInfoForAuthentication, getPackagePrefixesToCover, getUrlOfSwaggerJSON, setControllerHost, setControllerPort, startTheControllerServer, stopTheControllerServerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresetStateOfSUTprotected 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 newTest()
SutControllernewTest in class SutControllerpublic final List<org.evomaster.clientJava.instrumentation.TargetInfo> getTargetInfos(Collection<Integer> ids)
getTargetInfos in class SutControllerprotected void startExternalProcessPrinter()
Copyright © 2016–2017. All rights reserved.