public class ConfigurationManager
extends java.lang.Object
This class loads file provided by system property
application.properties.file
(Default value is
"resources/application.properties"). Also loads all property files form
test.props.dir
(default value is "resources") if
resources.load.subdirs
flag is 1.
To access any property value within automation, use following way
PropertyUtil
props=ConfigurationManager()
.
getInstance()
.;
String sval = props.PropertyUtil.getPropertyValue(String)
Modifier and Type | Method and Description |
---|---|
static void |
addAll(java.util.Map<java.lang.String,?> props) |
static void |
addBundle(java.lang.String fileOrDir)
To add local resources.
|
static PropertyUtil |
getBundle() |
static ConfigurationManager |
getInstance() |
static java.util.Map<java.lang.String,TestStep> |
getStepMapping()
Get test-step mapping for current configuration
|
static void |
setBundle(PropertyUtil bundle) |
public static ConfigurationManager getInstance()
public static void addBundle(java.lang.String fileOrDir)
fileOrDir
- public static void addAll(java.util.Map<java.lang.String,?> props)
public static PropertyUtil getBundle()
public static void setBundle(PropertyUtil bundle)
public static java.util.Map<java.lang.String,TestStep> getStepMapping()
Copyright © 2000 Infostretch Corp.