public class ConfigFile extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
reportsDir |
Constructor and Description |
---|
ConfigFile() |
Modifier and Type | Method and Description |
---|---|
static void |
addHeader(Map<String,String> headerMap,
String headerName,
String headerValue,
Map<String,String> condensedHeaders) |
String |
getCurrentTestIDLabel() |
AuthsMap |
getDefaultAuthsMap() |
Dump |
getDump() |
String |
getEnvID() |
String |
getProtoHostPort() |
String |
getRelativePathFromReportsDir()
There is no setter.
|
String |
getReportsDir() |
List<String> |
getReportsList() |
ResourceManager |
getResourceManager() |
RunOptions |
getRunOptions() |
String |
getTestDir() |
boolean |
isAutoDeletePOSTS() |
static AuthsMap |
readAuths(org.dom4j.Document document) |
void |
readDefaultRunOptions()
Prerequisites: ResourceManager has been set, testdir has been set.
|
static Dump |
readDumpOptions(org.dom4j.Document document) |
void |
readHeaders(org.dom4j.Node testNode,
Eval evalStruct,
ServiceResult serviceResult,
Map<String,String> headerMap,
Map<String,Object> clonedMasterVars)
Inserts headers read from file into requestHeaderMap, condensing multiples
with org.apache.commons.httpclient.HeaderGroup, so that if you set
a header in the map such as [Accept: text/json] and then read another
header such as [Accept: application/json], then the result will be one header entry with
[Accept: text/json, application/json]
|
static Map<String,Object> |
readVars(org.dom4j.Node nodeWVars,
ResourceManager rm,
ServiceResult serviceResult,
Eval evalStruct,
Map<String,Object> masterVars) |
void |
setAutoDeletePOSTS(boolean autoDeletePOSTS) |
void |
setCurrentTestIDLabel(String currentTestIDLabel) |
void |
setDefaultAuthsMap(AuthsMap authsMap) |
void |
setDump(Dump dump) |
void |
setEnvID(String envID) |
void |
setProtoHostPort(String protoHostPort) |
void |
setReportsList(List<String> list) |
protected void |
setResourceManager(ResourceManager manager) |
protected void |
setRunOptions(RunOptions options) |
protected void |
setTestDir(String value) |
protected String reportsDir
public ResourceManager getResourceManager()
protected void setResourceManager(ResourceManager manager)
public String getReportsDir()
public String getTestDir()
protected void setTestDir(String value)
public RunOptions getRunOptions()
protected void setRunOptions(RunOptions options)
public boolean isAutoDeletePOSTS()
public void setAutoDeletePOSTS(boolean autoDeletePOSTS)
public String getProtoHostPort()
public void setProtoHostPort(String protoHostPort)
public AuthsMap getDefaultAuthsMap()
public void setDefaultAuthsMap(AuthsMap authsMap)
public String getEnvID()
public void setEnvID(String envID)
public String getCurrentTestIDLabel()
public void setCurrentTestIDLabel(String currentTestIDLabel)
public String getRelativePathFromReportsDir()
public Dump getDump()
public void setDump(Dump dump)
public static Dump readDumpOptions(org.dom4j.Document document)
public static AuthsMap readAuths(org.dom4j.Document document)
public static Map<String,Object> readVars(org.dom4j.Node nodeWVars, ResourceManager rm, ServiceResult serviceResult, Eval evalStruct, Map<String,Object> masterVars)
public void readHeaders(org.dom4j.Node testNode, Eval evalStruct, ServiceResult serviceResult, Map<String,String> headerMap, Map<String,Object> clonedMasterVars)
public static void addHeader(Map<String,String> headerMap, String headerName, String headerValue, Map<String,String> condensedHeaders)
public void readDefaultRunOptions()
Copyright © 2016. All rights reserved.