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.
Highlighted
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

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
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.
New Here?
Join us and watch the welcome video:
6 / 7 API Testing Mistakes Video
Top Kudoed Authors