public abstract class EmbeddedSutController extends SutController
Main class used to implement an EvoMaster Driver. A user that wants to use EvoMaster for white-box testing will need to implement this abstract class.
For full details on how to implement this class, look at the documentation for Write an EvoMaster Driver for White-Box Testing, currently at https://github.com/EMResearch/EvoMaster/blob/master/docs/write_driver.md
| Constructor and Description |
|---|
EmbeddedSutController() |
| Modifier and Type | Method and Description |
|---|---|
List<AdditionalInfo> |
getAdditionalInfoList() |
List<TargetInfo> |
getAllCoveredTargetInfos() |
BootTimeInfoDto |
getBootTimeInfoDto() |
String |
getExecutableFullPath() |
void |
getJvmDtoSchema(List<String> dtoNames) |
List<TargetInfo> |
getTargetInfos(Collection<Integer> ids) |
UnitsInfoDto |
getUnitsInfoDto() |
boolean |
isInstrumentationActivated()
Check if bytecode instrumentation is on.
|
void |
newActionSpecificHandler(ActionDto dto) |
void |
newSearch()
Re-initialize all internal data to enable a completely new search phase
which should be independent from previous ones
|
void |
newTestSpecificHandler() |
void |
setExecutingAction(boolean executingAction) |
void |
setExecutingInitMongo(boolean executingInitMongo) |
void |
setExecutingInitSql(boolean executingInitSql) |
void |
setKillSwitch(boolean b) |
void |
setupForGeneratedTest()
There might be different settings based on when the SUT is run during the
search of EvoMaster, and when it is later started in the generated tests.
|
addTableToInserted, categorizeBasedOnResponse, cleanAccessedTables, computeExtraHeuristics, computeMongoHeuristics, customizeMockingDatabase, customizeMockingRPCExternalService, customizeRPCTestOutput, doEmploySmartDbClean, enableComputeSqlHeuristicsOrExtractExecution, execInsertionsIntoDatabase, execInsertionsIntoMongoDatabase, executeAction, executeHandleLocalAuthenticationSetup, executeRPCEndpoint, extractRPCProblemDto, extractRPCSchema, getActionIndex, getBootTimeInfoDto, getConnection, getConnectionIfExist, getControllerHost, getControllerPort, getControllerServerPort, getCustomizedValueInRequests, getDatabaseDriverName, getExceptionImportanceLevels, getExtraHeuristics, getInfoForAuthentication, getLocalAuthSetupSchemaMap, getPackagePrefixesToCover, getPreferredOutputFormat, getProblemInfo, getRPCClient, getRPCSchema, getSqlDatabaseSchema, getUnitsInfoDto, handleSeededTests, handleSql, initMongoHandler, initSqlHandler, isSutRunning, mockDatabasesWithCustomizedHandling, mockRPCExternalServicesWithCustomizedHandling, newAction, newTest, packagesToSkipInstrumentation, postSearchAction, readFileAsStringFromTestResource, registerOrExecuteInitSqlCommandsIfNeeded, resetCustomizedMethodForMockObject, resetDatabase, resetExtraHeuristics, seedRPCTests, setControllerHost, setControllerPort, specifyCustomizedNotNullAnnotation, startTheControllerServer, stopTheControllerServer, verifySqlConnectionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDbSpecifications, getMongoConnection, handleLocalAuthenticationSetup, resetStateOfSUT, startSut, stopSutpublic final void setupForGeneratedTest()
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<TargetInfo> getAllCoveredTargetInfos()
getAllCoveredTargetInfos in class SutControllerpublic final List<AdditionalInfo> getAdditionalInfoList()
getAdditionalInfoList in class SutControllerpublic final void newActionSpecificHandler(ActionDto dto)
newActionSpecificHandler in class SutControllerpublic final UnitsInfoDto getUnitsInfoDto()
getUnitsInfoDto in class SutControllerpublic final void setKillSwitch(boolean b)
setKillSwitch in class SutControllerpublic final void setExecutingInitSql(boolean executingInitSql)
setExecutingInitSql in class SutControllerpublic final void setExecutingInitMongo(boolean executingInitMongo)
setExecutingInitMongo in class SutControllerpublic final void setExecutingAction(boolean executingAction)
setExecutingAction in class SutControllerpublic BootTimeInfoDto getBootTimeInfoDto()
getBootTimeInfoDto in class SutControllerpublic final String getExecutableFullPath()
getExecutableFullPath in class SutControllerpublic final void getJvmDtoSchema(List<String> dtoNames)
getJvmDtoSchema in class SutControllerCopyright © 2016–2024. All rights reserved.