Class Context


  • public class Context
    extends java.lang.Object
    this class represents the way to save data and use them throughout the test life cycle
    • 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 value
        value - that i want to store