Ad Widget

Collapse

Web Scenario debug - session ID in URL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bricklayer
    Junior Member
    • Jan 2011
    • 8

    #1

    Web Scenario debug - session ID in URL

    How do you debug a web scenario? I have a 3 step scenario. The first step checks if the home page loads by looking for a string. The second step does a login on that home page and the 3rd step checks if the login is successful by checking for a text string. The first 2 steps execute fine but I get the error:

    Failed on "Check Login" [3 of 3] Error: Page didn't match

    on the 3rd step. The URL for step 1 and 2 that's displayed in the web browser are the same. But when you do the login in step 2, it takes you to a new URL that has a session ID in the URL of the new page that is displayed - this session ID is different for every login. This, I can't specify a URL for the 3rd step. Maybe this is why my test is failing? How would I get this to work?
  • bricklayer
    Junior Member
    • Jan 2011
    • 8

    #2
    Here's some more info. For step 3, an example of the URL that I'm talking about is:



    I changed step 3 to the URL:



    and removed the string I was matching for - now I don't get an error on the check. I am checking for a return code of 200 so this means that a page load after the login was successful, but I have no idea what page is loaded.

    Comment

    Working...