Forum Discussion

liwqiang's avatar
liwqiang
New Contributor
7 years ago

How to login different user in a testcase

I'm using soapui pro 4.5.2 version.

 

I want to login defferent user in a testcase, but when i login secend user, and run next step, sometime it use the first user's session.

 

How can i achieve my thoughts?

3 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    Use case is not clear the context.
    Using SOAP / REST?
    What kind of login are you using? login for each request? or session?
    If session is used, can't you change it?
    • liwqiang's avatar
      liwqiang
      New Contributor

      it's HTTP Request, and i have selected "Maintain HTTP Session" 

      • nmrao's avatar
        nmrao
        Champion Level 3
        If you do not want, set it off. So, that you do not run into such problem.
        If you need session, add it as header to the request. I think this way, you can pass respecitve session to respective step(better control).