Forum Discussion

fmensah's avatar
fmensah
Occasional Contributor
6 years ago

Maintain HTTP Session: Should keep the same session to the following request

I want to keep the same session for my second request.

Both of them are REST request.

I have already checked the "Maintain HTTP session" in the TestCase Options.

It did not work.

 

 

6 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    You may set the cookie for all out going requests.
    • nmrao's avatar
      nmrao
      Champion Level 3
      To do so, use Events feature say beforeSubmit and add the cookie.
      • fmensah's avatar
        fmensah
        Occasional Contributor

        Hi Rao,

         

        I right-clicked on the project and clicked on Events.

        I chose SubmtListener.beforeSubmit in both "Name" and "Event".

        What should I put in the "Target" field?

         

    • fmensah's avatar
      fmensah
      Occasional Contributor

      I have already done it.

       

      It did not work.