Ask a Question

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

fmensah
Occasional Contributor

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 6
nmrao
Community Hero

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

You may set the cookie for all out going requests.


Regards,
Rao.
TanyaYatskovska
Community Manager

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

Hi @fmensah,

 

Did Rao's reply help? Please share the solution with us.

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
nmrao
Community Hero

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

To do so, use Events feature say beforeSubmit and add the cookie.


Regards,
Rao.
fmensah
Occasional Contributor

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

I have already done it.

 

It did not work.

fmensah
Occasional Contributor

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

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?

 

nmrao
Community Hero

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

Please show the script.


Regards,
Rao.
cancel
Showing results for 
Search instead for 
Did you mean: