Ad Widget

Collapse

Web Check (Scenario) for a dynamic url

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GeneBean
    Junior Member
    • Jan 2012
    • 21

    #1

    Web Check (Scenario) for a dynamic url

    I am trying to setup a scenario that goes to a Numara Footprints website, logs in claiming to be Firefox, and then checks to see that "Hello, myusername" is on the page as that would confirm the login was successful. The first two steps were easy:
    • Define a URL of
      Code:
       https://mysite/MRcgi/MRentrancePage.pl
      l
    • The define the login url as
      Code:
      https://mysite/MRcgi/MRlogin.pl
      and give it post data in the form of
      Code:
      USER={user}&PASSWORD={password}&REMEMBER_PASSWORD=1&PROJECTID=-1&SCREEN=1


    The problem is that for step 3, the URL is dynamically generated on login so I don't know what it will be. I do know that if I tell step 3 to go to https://mysite that it will redirect me to the proper page but that then gives an error that the page did not match in the check.

    All that said, how can I check the content of a page when the URL of the page is generated dynamically?
Working...