jim_mcmains
11 years agoNew Contributor
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
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