Forum Discussion

jim_mcmains's avatar
jim_mcmains
New Contributor
11 years ago

wildcard in changing webaddress

I've got a web address that stays static except for an ID which seems to consistantly increase as I perform the same sequence again and again. Closing down IE and restarting show the counter to not be reset.



This presents a problem when running my scripts (actually I should clarify - Keyword Tests) as they are looking for the address inlcluding the ending number from last time I recorded or edited it. However, by the way our software was written, the ending number is never reused.



Is there a way to tell TC to just use a wildcard in place of the ending ID that it currently gets hung up on, complaining that the page isn't available?

Here's an example:

http://localhost:123/cmpname/pagename.do?timeEntryId=662



then when my script goes through the sequence and arrives at this page, it's changed to something higher like:

http://localhost:123/cmpname/pagename.do?timeEntryId=668



Any info on how to tell TC to ignore the last three digits would be greatly appreciated!

Thanks
  • tpotter's avatar
    tpotter
    Occasional Contributor
    Good you got it, but just in case.. I'm pretty sure you can just use the * wild card. So your new URL would be "http://localhost:123/cmpname/pagename.do?timeEntryId=" + "*".