Forum Discussion

sboris's avatar
sboris
Occasional Contributor
4 years ago

readyAPI feature - automatic passing cookies to following request with “Maintain HTTP Session”

I'm on ReadyAPI 3.9.0 (trial). Have seen documentation and tried to use “Maintain HTTP Session” https://www.soapui.org/docs/soapui-projects/form-based-authentication/#_ga=2.117081990.1241344506.1627...
  • sboris's avatar
    4 years ago

    Update. To those who are switching from Postman. 
    A readyAPI feature.
    Automation with “Maintain HTTP Session” works fine ONLY when one runs test steps as a Test Case and doesn't work when running test steps one-by-one (for example if you try debugging a test step like in Postman). For the debug purpose in “Maintain HTTP Session” mode there are a "bug" button (next to a run button under the TestCase name) and a "Step-by-Step Run" tab.
     
    There is lack of warnings for the feature in the docs. A lot of time has been wasted to get it worked.

  • richie's avatar
    richie
    4 years ago
    Hey sboris

    I dont know if ive misunderstood, but from what youve said, it sounds like the "maintain http session" checkbox isnt working properly.

    The script nmrao mentioned or one very similar, he actually put together for me a while back when i had to do this. Immediately after he'd coded it i discovered the maintain http session option. It did and should identify the set-cookie header from a request's response and then add >= cookie (relative to how many ; separated values were sent on the set-cookie) to all other requests hitting the same domain.

    Is this not happening with you?

    Cheers

    Rich