02-16-2011, 12:59 AM
Maybe by "environment" you mean a development vs production area? Maybe a .net vs a .com?
If so, you can use Regular Expressions to remove the environment specific portions.
This code would have allow your browser to view any url that contained "myurl" regardless of what the rest of the url is.
www.myserver/myurl .... works
www.myurl.net/ ... works
www.myurl.com/ .. works
www.thisismyurl .. works
Hopefully you are using Descriptive Programming for all your testing. If you are using the object repository or just doing "record and run" scripts they will not be reusable in a different environment if there is even the smallest of changes.
hope this helps.
If so, you can use Regular Expressions to remove the environment specific portions.
Code:
Browser("url:=.*myurl.*)
This code would have allow your browser to view any url that contained "myurl" regardless of what the rest of the url is.
www.myserver/myurl .... works
www.myurl.net/ ... works
www.myurl.com/ .. works
www.thisismyurl .. works
Hopefully you are using Descriptive Programming for all your testing. If you are using the object repository or just doing "record and run" scripts they will not be reusable in a different environment if there is even the smallest of changes.
hope this helps.