Session ID's Causing Issues When Creating And Running Web Tests. RRS feed

  • Question

  • I need some help or suggestions please.

    I am writing a number of web tests in VSTS 08. The web site that I am looking to test uses session ID's to identify the computer. These however change on each request, this means that if I run my web tests more than once I encounter problems as the stored session ID doesnt match the one now created by the browser.

    Is there any way that I can get around this, or allow for this in my tests?

    Thursday, March 20, 2008 2:41 PM


All replies

  • In most cases this should be automatically handled for you in 2008 using the 'Promote Dynamic Parameters' feature.  In some cases it may not, if for example the session ID that you recorded was still valid on the re-run that occurs for the promotion of dynamic parameters.  In that case you can probably go back and re-run the Promote Dynamic Parameters (button on toolbar of web editor) a little while after recording, once your session has expired and it should pick it up.  If not you can see these doc's on how to handle this:





    Thursday, March 20, 2008 2:57 PM
  • Hi Dennis

    thank you for the reply - those blogs helped slightly.

    Maybe the bit below may help -

    My website generates URL's with a unique session ID embedded within it. Is there a way of setting the session ID as a Dynamic Parameter (and then extracting it from the URL), so that we can re-run our web tests after the session has expired?

    I did try this using the dynamic parameter function but the session IDs were never picked up.

    Tuesday, March 25, 2008 2:39 PM
  • Hi Matthew,


    Did you try manual correlation??i.e extract that particular session id...assigning it to a variable and then using it in later webtests??


    VSTS has quite a number of extraction rules....


    Tuesday, March 25, 2008 4:17 PM
  • Hi gpthree

    No we haven't, where can I find that option within VSTS?

    Tuesday, March 25, 2008 4:30 PM
  • Check out this blog post for the process: http://blogs.msdn.com/slumley/pages/how-to-debug-a-web-test.aspx


    Tuesday, March 25, 2008 7:02 PM