Package com.crowdar.core
Class Context
- java.lang.Object
-
- com.crowdar.core.Context
-
public class Context extends java.lang.Objectthis class represents the way to save data and use them throughout the test life cycle
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONTEXT_METHOD_NAME_KEYstatic java.lang.StringCONTEXT_STORY_NAME_KEYstatic java.lang.StringCONTEXT_TEST_ID_KEYstatic java.lang.StringCONTEXT_TEST_NAME_KEYstatic java.lang.StringRETRY_COUNT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetData(java.lang.String key)Method that obtains the value from the keystatic ContextgetInstance()voidsetData(java.lang.String key, java.lang.Object value)Method that stores a value with its respective key
-
-
-
Field Detail
-
CONTEXT_TEST_ID_KEY
public static final java.lang.String CONTEXT_TEST_ID_KEY
- See Also:
- Constant Field Values
-
CONTEXT_TEST_NAME_KEY
public static final java.lang.String CONTEXT_TEST_NAME_KEY
- See Also:
- Constant Field Values
-
CONTEXT_STORY_NAME_KEY
public static final java.lang.String CONTEXT_STORY_NAME_KEY
- See Also:
- Constant Field Values
-
CONTEXT_METHOD_NAME_KEY
public static final java.lang.String CONTEXT_METHOD_NAME_KEY
- See Also:
- Constant Field Values
-
RETRY_COUNT
public static java.lang.String RETRY_COUNT
-
-
Method Detail
-
getInstance
public static Context getInstance()
-
getData
public java.lang.Object getData(java.lang.String key)
Method that obtains the value from the key- Parameters:
key- of the value that i want- Returns:
- value of the key
-
setData
public void setData(java.lang.String key, java.lang.Object value)Method that stores a value with its respective key- Parameters:
key- for the valuevalue- that i want to store
-
-