cancel
Showing results for 
Search instead for 
Did you mean: 

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

New 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
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.
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 Gorbunova
SmartBear Community Manager

 Join SmartBear Connect next April in Boston to meet with software development, API and testing experts from around the world! Get your ticket today!
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.
New Contributor

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

I have already done it.

 

It did not work.

New 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?

 

Community Hero

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

Please show the script.


Regards,
Rao.