Class ScenarioContext
- java.lang.Object
-
- io.virtualan.cucumblan.props.util.ScenarioContext
-
public class ScenarioContext extends Object
The type Scenario context.- Author:
- Elan Thangamani
-
-
Constructor Summary
Constructors Constructor Description ScenarioContext()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,String>getContext()Gets context.static ObjectgetContext(String key)Gets context.static booleanhasContextValues()Has context values boolean.static BooleanisContains(String key)Is contains boolean.static voidsetContext(String key, String value)Sets context.static voidsetContext(Map<String,String> globalParams)Sets context.
-
-
-
Method Detail
-
hasContextValues
public static boolean hasContextValues()
Has context values boolean.- Returns:
- the boolean
-
setContext
public static void setContext(Map<String,String> globalParams)
Sets context.- Parameters:
globalParams- the global params
-
setContext
public static void setContext(String key, String value)
Sets context.- Parameters:
key- the keyvalue- the value
-
getContext
public static Object getContext(String key)
Gets context.- Parameters:
key- the key- Returns:
- the context
-
-