public class DefaultConfig extends Object
It looks for the system property "taf.config"
for getting the configuration file path.
If the property returns null
, the file try to load the configuration from the default path
"src/test/resources/taf.properties"
.
This is a singleton class so incase you need to create an object of this class
please call the static method getDefaultConfig()
.
Modifier and Type | Method and Description |
---|---|
String |
getConfigValue(String configuration)
Returns the value of the passed configuration name from the loaded config file.
|
static DefaultConfig |
getDefaultConfig()
Returns the singleton object of the
DefaultConfig class. |
void |
setConfigValue(String configuration,
String value)
Sets the configuration and its value to the config value.
|
public static DefaultConfig getDefaultConfig()
DefaultConfig
class.DefaultConfig
class object.public String getConfigValue(String configuration)
configuration
- - whose value is required from the config file.Copyright © 2014. All rights reserved.