Micro Focus QTP (UFT) Forums
How to change the browser name based on Configurable VBScript file? - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: How to change the browser name based on Configurable VBScript file? (/Thread-How-to-change-the-browser-name-based-on-Configurable-VBScript-file)



How to change the browser name based on Configurable VBScript file? - Uma - 08-21-2011

Hi,
I have 2 environments(Staging and Production).In Both environment I have the same funtionalities.So I Wrote a configurble file and I recorded one script for Staging.Now it is working for Staging env.
------------------------
Prodution has the exacly same functionality what staging has.Now I wouldlike to use the sameStagingQTPScript for Production
I didnt record anything for Production Environment,so QTP didn't learn anything in product environment.
I am able to launch the production environment using my configurable file,so After the Launch of the Production environment webpage,
QTP enters into Staging Script.How can I make this Staging Script as a
Common Script for both Environment?Because,Browsername,Page name,somelink names are varing in both environment)
In Staging
Browser(Staging.ab.com).Page(Staging.ab.com)....
In Production
Browser(Production.ab.com).Page(Production.ab.com)....

Any hint?
Thanks in AdvanCe
Uma