Package org.simple4j.wsfeeler.core
Class ConfigLoader
java.lang.Object
org.simple4j.wsfeeler.core.ConfigLoader
This is a utility class with methods to load test step and test case properties, deference variables.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloadVariables(File testStepFile, TestCase testCase) Loads step level properties without BeanShell processingloadVariables(InputStream variablesStream, Map<String, Object> globalVariables2, String prefix) Used to load /tsvariables.properties, tcvariables.properties under test case directories
-
Constructor Details
-
ConfigLoader
public ConfigLoader()
-
-
Method Details
-
loadVariables
public static Map<String,Object> loadVariables(InputStream variablesStream, Map<String, Object> globalVariables2, String prefix) throws IOException, bsh.EvalErrorUsed to load /tsvariables.properties, tcvariables.properties under test case directories- Parameters:
variablesStream- - input stream to load the variables in properties formatglobalVariables2- - Existing variables to evaluate bean shell expression- Returns:
- - returns Map of loaded variables
- Throws:
IOException- - Any IOException from the systembsh.EvalError- - Any BeanShell evaluation errors
-
loadVariables
public static Map<String,Object> loadVariables(File testStepFile, TestCase testCase) throws IOException Loads step level properties without BeanShell processing- Parameters:
testStepFile- - this can be test step input or output properties filetestCase- - test case object under which the test step is defined- Returns:
- Map of loaded properties
- Throws:
IOException- - any IOException from the system
-