#603 HTTP Session lost running another test case

open
nobody
None
5
2011-03-07
2011-03-07
Rafa AR
No

Hi,

Product: soapUI 3.6 (free)
Platform: Windows XP
JRE: -

Test Step type: Run Test Case

I've tried to extract the login for a webapp (http request) to a common test case and call it from the rest of my test cases, but the http session is lost.

Run Test Case is not keeping the HTTP Session even when the checkbox for it is checked.

Regards

Discussion

  • Rafa AR

    Rafa AR - 2011-03-07
     
  • Ole Lensmar

    Ole Lensmar - 2011-03-08

    Hi,

    hmm.. have you also checked the "Maintain HTTP State" in the calling Testcases Options dialog?

    regards,

    /Ole
    eviware.com

     
  • Rafa AR

    Rafa AR - 2011-03-11
     
  • Rafa AR

    Rafa AR - 2011-03-11

    Hi,

    Thanks a lot for the quick response.

    I'm calling TestSuiteA / TestCaseLogin from TestSuiteB / TestCaseB. Screenshots of TestCase and Run TestCase options attached.

    I don't see why the session is not kept during the process. TestCaseLogin is called from TestCaseB. TestCaseLogin logs in the webapp and I was expecting that TestCaseB had session but it doesn't.

    I hope I'm using the options for keeping the session right.

    Regards,
    Rafa

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2011-07-28

    Hi, I see this bug has a priority of 5, does that mean it will not be fixed anytime soon? Is there a known workaround?

    Because this can be quite annoying if you want to structure you tests...

    Thanks !

     
    Last edit: Anonymous 2014-08-03
  • nebule

    nebule - 2011-07-29

    Hi,

    Maintain HTTP Session work only within one TestCase , so in order to make your use case work you have to change Test Cases to have login in each Test Case.

    regards
    nebojsa
    SmartBear Sweden
    eviware.com

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2011-09-26

    Hi,
    I am also facing the same issue. Need to maintain http session across the test cases.
    Please address this issue. This will help us in reusing some test cases in many other test cases as a step.

    If run-testcase step is one of the steps of a particular test case for which "maintain http session" option is set, then ideally session should get maintained across the testcases.

     
    Last edit: Anonymous 2014-07-25

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks