public class Master extends ConfigFile
Modifier and Type | Class and Description |
---|---|
static class |
Master.Event |
class |
Master.ScriptEventResult |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_MASTER_CONTROL |
long |
endTime |
String |
masterEnvsFileLocation |
String |
masterVarsFileLocation |
long |
startTime |
Map<String,Object> |
vars |
reportsDir
Constructor and Description |
---|
Master(String testdir,
String reportsDir,
ResourceManager manager) |
Modifier and Type | Method and Description |
---|---|
Master.ScriptEventResult |
fireEvent(String eventID) |
Map<String,ServiceResult> |
getMasterNamespace() |
Map<String,Object> |
getVars() |
boolean |
masterConfigFileExists(String masterFilename)
Optional information method: call this method after instantiating this class using the constructor RestReplay(String), which sets the testdir.
|
org.dom4j.Document |
openMasterConfigFile(String reason,
String masterFilename) |
org.dom4j.Document |
readOptionsFromMasterConfigFile(String masterFilename)
specify the master config file, relative to getTestDir(), but ignore any tests or testGroups in the master.
|
List<List<ServiceResult>> |
runMaster(String masterFilename) |
List<List<ServiceResult>> |
runMaster(String masterFilename,
boolean readOptionsFromMaster)
Creates new instances of RestReplay, one for each controlFile specified in the master,
and setting defaults from this instance, but not sharing ServiceResult objects or maps.
|
List<List<ServiceResult>> |
runMaster(String masterFilename,
boolean readOptionsFromMaster,
String controlFile,
String testGroup,
String test) |
void |
setVars(Map<String,Object> masterVars) |
addHeader, getCurrentTestIDLabel, getDefaultAuthsMap, getDump, getEnvID, getProtoHostPort, getRelativePathFromReportsDir, getReportsDir, getReportsList, getResourceManager, getRunOptions, getTestDir, isAutoDeletePOSTS, readAuths, readDefaultRunOptions, readDumpOptions, readHeaders, readVars, setAutoDeletePOSTS, setCurrentTestIDLabel, setDefaultAuthsMap, setDump, setEnvID, setProtoHostPort, setReportsList, setResourceManager, setRunOptions, setTestDir
public static final String DEFAULT_MASTER_CONTROL
public long startTime
public long endTime
public String masterEnvsFileLocation
public String masterVarsFileLocation
public Master(String testdir, String reportsDir, ResourceManager manager)
public Map<String,ServiceResult> getMasterNamespace()
public boolean masterConfigFileExists(String masterFilename)
public org.dom4j.Document openMasterConfigFile(String reason, String masterFilename) throws FileNotFoundException
FileNotFoundException
public org.dom4j.Document readOptionsFromMasterConfigFile(String masterFilename) throws FileNotFoundException
FileNotFoundException
public Master.ScriptEventResult fireEvent(String eventID)
public List<List<ServiceResult>> runMaster(String masterFilename) throws Exception
Exception
public List<List<ServiceResult>> runMaster(String masterFilename, boolean readOptionsFromMaster) throws Exception
Exception
Copyright © 2016. All rights reserved.