public class ScenarioContext extends Object
| Constructor and Description |
|---|
ScenarioContext() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
getContext()
Gets context.
|
static Object |
getContext(String key)
Gets context.
|
static Map<String,String> |
getPrintableContextObject() |
static boolean |
hasContextValues()
Has context values boolean.
|
static Boolean |
isContains(String key)
Is contains boolean.
|
static void |
setContext(Map<String,String> globalParams)
Sets context.
|
static void |
setContext(String key,
String value)
Sets context.
|
public static boolean hasContextValues()
public static void setContext(Map<String,String> globalParams)
globalParams - the global paramspublic static void setContext(String key, String value)
key - the keyvalue - the valuepublic static Map<String,String> getPrintableContextObject() throws org.json.JSONException
org.json.JSONExceptionpublic static Object getContext(String key)
key - the keyCopyright © 2021. All rights reserved.