Class ScenarioContext


  • public class ScenarioContext
    extends java.lang.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 java.util.Map<java.lang.String,​java.lang.String> getContext()
      Gets context.
      static java.lang.Object getContext​(java.lang.String key)
      Gets context.
      static boolean hasContextValues()
      Has context values boolean.
      static java.lang.Boolean isContains​(java.lang.String key)
      Is contains boolean.
      static void setContext​(java.lang.String key, java.lang.String value)
      Sets context.
      static void setContext​(java.util.Map<java.lang.String,​java.lang.String> globalParams)
      Sets context.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScenarioContext

        public ScenarioContext()
    • Method Detail

      • hasContextValues

        public static boolean hasContextValues()
        Has context values boolean.
        Returns:
        the boolean
      • setContext

        public static void setContext​(java.util.Map<java.lang.String,​java.lang.String> globalParams)
        Sets context.
        Parameters:
        globalParams - the global params
      • setContext

        public static void setContext​(java.lang.String key,
                                      java.lang.String value)
        Sets context.
        Parameters:
        key - the key
        value - the value
      • getContext

        public static java.lang.Object getContext​(java.lang.String key)
        Gets context.
        Parameters:
        key - the key
        Returns:
        the context
      • getContext

        public static java.util.Map<java.lang.String,​java.lang.String> getContext()
        Gets context.
        Returns:
        the context
      • isContains

        public static java.lang.Boolean isContains​(java.lang.String key)
        Is contains boolean.
        Parameters:
        key - the key
        Returns:
        the boolean