Forum Discussion
nmrao
9 years agoCommunity Hero
In case, if you are using Events and sending Cookie as Header, then you do not have to use Maintain Http Session.
Tush
9 years agoOccasional Contributor
I tried sending the cookie via Header, but while running the test case multiple instances of "Cookie" headers were created.
Is there any other way to maintain a single session across all the Test suites?
- nmrao9 years agoCommunity HeroNot really how you saved the cookie? test case level? suite level?
Is the same cookie to be used for all the steps spread across test cases and suites?- Tush9 years agoOccasional Contributor
In 'Lib' testsuite, we extract and save the session ID to a variable using groovy script.
Then I add header parameter named 'cookie' to all my API requests and pass the variable value.
I am able to execute my tests this way.Issue: I have to update my API's everyday. While I do this I need to keep adding Header parameter to all my API's,which is a gruesome process.
yes,I need to use the same cookie across all the test cases and test Suits.
- nmrao9 years agoCommunity HeroCan you show the script which does that?