public class RestReplay extends ConfigFile
Main
, and the calling maven surefire classes RestReplayTest and RestReplaySelfTest.Modifier and Type | Class and Description |
---|---|
protected static class |
RestReplay.ImportFilter
This class handles an import element in the control file, for example:
<import ID="myImportedTokenTest" control="_self_test/self-test.xml" testGroup="login" test="token" /> |
static class |
RestReplay.Loop
script-facing class known in context as "loop" so that the values for key, value and index may be
retrieved with loop.key, loop.value, and loop.index, for each iteration of the test.
|
protected static class |
RestReplay.OneTest |
Modifier and Type | Field and Description |
---|---|
List<EvalResult> |
evalReport |
static Kit |
KIT |
Map<String,Object> |
masterVars |
static String |
REL_PATH_TO_DB |
static Tools |
TOOLS |
reportsDir
Constructor and Description |
---|
RestReplay(String testdir,
String reportsDir,
ResourceManager manager,
RunOptions parentRunOptions) |
Modifier and Type | Method and Description |
---|---|
List<ServiceResult> |
autoDelete(Map<String,ServiceResult> theServiceResultsMap,
String logName)
Use this method to clean up resources created on the server that returned CSIDs, if you have
specified autoDeletePOSTS==false, which means you are managing the cleanup yourself.
|
List<ServiceResult> |
autoDelete(String logName) |
String |
calculateElipses(String relpath) |
static Map<String,ServiceResult> |
createResultsMap() |
String |
dumpMasterNamespace() |
String |
getControlFileName() |
String |
getMasterEnvsFileLocation() |
String |
getMasterFilename() |
Map<String,ServiceResult> |
getMasterNamespace() |
Map<String,Object> |
getMasterVars() |
String |
getMasterVarsFileLocation() |
String |
getRelToMaster() |
String |
getRelToMasterURL() |
Map<String,ServiceResult> |
getServiceResultsMap() |
List<ServiceResult> |
runRestReplayFile(String testdir,
String controlFileName,
String testGroupID,
String oneTestID,
Map<String,Object> masterVarsOverride,
boolean param_autoDeletePOSTS,
String protoHostPortParam,
AuthsMap authsFromMaster,
List<String> reportsList,
String reportsDir,
String relativePathFromReportsDir,
String masterFilenameInfo,
String runID,
Integer runHashCount,
List<RestReplayReport.Header> testGroups) |
List<ServiceResult> |
runTests(String testGroupID,
String testID,
String runID,
Integer runHashCount,
List<RestReplayReport.Header> testGroups)
Use this if you wish to run named tests within a testGroup.
|
protected EvalResult |
runValidatorScript(ServiceResult serviceResult,
org.dynamide.restreplay.RestReplay.PartsStruct expectedResponseParts,
Eval evalStruct) |
protected void |
runValidatorScriptSinglePayload(ServiceResult serviceResult,
org.dynamide.restreplay.RestReplay.PartsStruct expectedResponseParts,
Eval evalStruct) |
File |
saveServiceResultToJSON(ServiceResult serviceResult) |
void |
setControlFileName(String controlFileName) |
void |
setMasterEnvsFileLocation(String masterEnvsFileLocation) |
void |
setMasterFilename(String val) |
void |
setMasterNamespace(Map<String,ServiceResult> namespace) |
void |
setMasterVars(Map<String,Object> masterVars) |
void |
setMasterVarsFileLocation(String masterVarsFileLocation) |
void |
setRelToMaster(String val) |
static String |
testToString(org.dom4j.Node testNode) |
String |
toString() |
protected String |
validateResponse(ServiceResult serviceResult,
org.dynamide.restreplay.RestReplay.PartsStruct expectedResponseParts,
Eval evalStruct) |
protected String |
validateResponseSinglePayload(ServiceResult serviceResult,
org.dynamide.restreplay.RestReplay.PartsStruct expectedResponseParts,
Eval evalStruct) |
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 REL_PATH_TO_DB
public List<EvalResult> evalReport
public static Tools TOOLS
public static Kit KIT
public RestReplay(String testdir, String reportsDir, ResourceManager manager, RunOptions parentRunOptions)
public String getControlFileName()
public void setControlFileName(String controlFileName)
public String getMasterFilename()
public void setMasterFilename(String val)
public String getMasterEnvsFileLocation()
public void setMasterEnvsFileLocation(String masterEnvsFileLocation)
public String getMasterVarsFileLocation()
public void setMasterVarsFileLocation(String masterVarsFileLocation)
public String getRelToMaster()
public String getRelToMasterURL()
public void setRelToMaster(String val)
public Map<String,ServiceResult> getServiceResultsMap()
public static Map<String,ServiceResult> createResultsMap()
public void setMasterNamespace(Map<String,ServiceResult> namespace)
public Map<String,ServiceResult> getMasterNamespace()
public static String testToString(org.dom4j.Node testNode)
public List<ServiceResult> runTests(String testGroupID, String testID, String runID, Integer runHashCount, List<RestReplayReport.Header> testGroups) throws Exception
Exception
public List<ServiceResult> autoDelete(String logName)
public List<ServiceResult> autoDelete(Map<String,ServiceResult> theServiceResultsMap, String logName)
theServiceResultsMap
- a Map of ServiceResult objects, which will contain ServiceResult.deleteURL.protected void runValidatorScriptSinglePayload(ServiceResult serviceResult, org.dynamide.restreplay.RestReplay.PartsStruct expectedResponseParts, Eval evalStruct) throws Exception
Exception
protected String validateResponse(ServiceResult serviceResult, org.dynamide.restreplay.RestReplay.PartsStruct expectedResponseParts, Eval evalStruct)
protected String validateResponseSinglePayload(ServiceResult serviceResult, org.dynamide.restreplay.RestReplay.PartsStruct expectedResponseParts, Eval evalStruct) throws Exception
Exception
protected EvalResult runValidatorScript(ServiceResult serviceResult, org.dynamide.restreplay.RestReplay.PartsStruct expectedResponseParts, Eval evalStruct) throws IOException
IOException
public String dumpMasterNamespace()
public List<ServiceResult> runRestReplayFile(String testdir, String controlFileName, String testGroupID, String oneTestID, Map<String,Object> masterVarsOverride, boolean param_autoDeletePOSTS, String protoHostPortParam, AuthsMap authsFromMaster, List<String> reportsList, String reportsDir, String relativePathFromReportsDir, String masterFilenameInfo, String runID, Integer runHashCount, List<RestReplayReport.Header> testGroups) throws Exception
Exception
public File saveServiceResultToJSON(ServiceResult serviceResult) throws IOException
IOException
Copyright © 2016. All rights reserved.