Package org.ndviet.keyword
Class ConfigurationUtils
- java.lang.Object
-
- org.robotframework.javalib.library.KeywordFactoryBasedLibrary<org.robotframework.javalib.keyword.DocumentedKeyword>
-
- org.robotframework.javalib.library.AnnotationLibrary
-
- org.ndviet.keyword.ConfigurationUtils
-
- All Implemented Interfaces:
org.robotframework.javalib.library.KeywordDocumentationRepository,org.robotframework.javalib.library.RobotFrameworkDynamicAPI
public class ConfigurationUtils extends org.robotframework.javalib.library.AnnotationLibrary
-
-
Constructor Summary
Constructors Constructor Description ConfigurationUtils()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getListValues(java.lang.String key)java.lang.StringgetValue(java.lang.String key)AbstractConfigurationreadJsonConfiguration(java.lang.String filePath)AbstractConfigurationreadYamlConfiguration(java.lang.String filePath)-
Methods inherited from class org.robotframework.javalib.library.AnnotationLibrary
addKeywordPattern, autowireFields, createKeywordFactory, getKeywordArguments, getKeywordDocumentation, runKeyword, runKeyword
-
-
-
-
Method Detail
-
getValue
public java.lang.String getValue(java.lang.String key) throws java.lang.Exception- Throws:
java.lang.Exception
-
getListValues
public java.util.List<java.lang.String> getListValues(java.lang.String key) throws java.lang.Exception- Throws:
java.lang.Exception
-
readYamlConfiguration
public AbstractConfiguration readYamlConfiguration(java.lang.String filePath) throws java.lang.Exception
- Throws:
java.lang.Exception
-
readJsonConfiguration
public AbstractConfiguration readJsonConfiguration(java.lang.String filePath) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-