| || |
reuse script different site but same tree
Using QuickTest Professional 8.0.16.
I am recording and testing on staging at URL: https:\\staging\cafe\login.asp
I would like to use the same script to test same pages but on production site, say the above pages are at following URLs and I would like to use the script I recorded to test :
So the URLS 'are same(?)' but the server and the site name on which the pages exist and are tested are different.
I tired to use prameterizing but I could not. I might be missing something. Your thoughts on how to do this will be appreciated.
Thank you for your help in advance
Re: reuse script different site but same tree
Create environment file to hold URL variable in external file in INI format. Say, "Config.txt".
And content of that:
(You will be able to change your environment as needed before run TestCase without even touching TestCase itself)
In your TestCase:
then you can invoke application using this stored variable.
by any of this methods:
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = true
siteURL = Environment.Value("currentURL")
Hope it helps,