Class DslCookieManager

    • Constructor Detail

      • DslCookieManager

        public DslCookieManager()
    • Method Detail

      • disable

        public DslCookieManager disable()
        Disables HTTP cookies handling for the test plan.
        Returns:
        the DslCookieManager to allow fluent API usage.
      • clearCookiesBetweenIterations

        public DslCookieManager clearCookiesBetweenIterations​(boolean clear)
        Allows to enable or disable clearing cookies between thread group iterations.

        Cookies are cleared each iteration by default. If this is not desirable, for instance if logging in once and then iterating through actions multiple times, use this to set to false.

        Parameters:
        clear - boolean to set clearing of cookies. By default, it is set to true.
        Returns:
        the cookie manager for further configuration or usage.
        Since:
        1.6
      • cookiePolicy

        public DslCookieManager cookiePolicy​(DslCookieManager.CookiePolicy policy)
        Used to set the required cookie policy used to manage cookies.

        You might need to change the 'standard' cookie policy if the application under test only supports a specific cookie implementation.

        Parameters:
        policy - specifies the particular cookie policy to use. By default, it is set to standard cookie policy.
        Returns:
        the cookie manager for further configuration or usage.
        Since:
        1.6
        See Also:
        DslCookieManager.CookiePolicy