Class ConfigLoader

java.lang.Object
org.simple4j.wsfeeler.core.ConfigLoader

public class ConfigLoader extends Object
This is a utility class with methods to load test step and test case properties, deference variables.
  • 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.EvalError
      Used to load /tsvariables.properties, tcvariables.properties under test case directories
      Parameters:
      variablesStream - - input stream to load the variables in properties format
      globalVariables2 - - Existing variables to evaluate bean shell expression
      Returns:
      - returns Map of loaded variables
      Throws:
      IOException - - Any IOException from the system
      bsh.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 file
      testCase - - test case object under which the test step is defined
      Returns:
      Map of loaded properties
      Throws:
      IOException - - any IOException from the system