Micro Focus QTP (UFT) Forums
How to create the QTP Scripts as Platform independent? - 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 create the QTP Scripts as Platform independent? (/Thread-How-to-create-the-QTP-Scripts-as-Platform-independent)



How to create the QTP Scripts as Platform independent? - Uma - 10-04-2011

Hi,
I have 2 different platform that is filled with various service... b1 and b2.
b1 has-QA,Staging and production
b2 has-Staging and Production
I alrady created .vbs file and QTPScript for b2 and it is working fine with Staging and production environment.Now I asked to change my scripts as platform indepentent.[I need to make sure that it is working for b1 and b2 environment -b1 and b2 both are using Windows XP]
The b1 and b2 Staging and production environment properties are same
for ex
Code:
b1 Staging-browser("name:=Staging...).Page(title:=Staging...).Link("innerhtml")
b2 Staging-browser("name:=Staging...).Page(title:=Staging...).Link("innerhtml")

How can I set the differnt property value or How can I make the Platform Indepentant Script?
Any Help?
Thank you
Uma


RE: How to create the QTP Scripts as Platform independent? - Uma - 10-05-2011

Problem solved by getting the platformname as a inputvalue and according to the input value QTP is selecting the links..
More ideas are welcome.

Thank you.
Uma