Micro Focus QTP (UFT) Forums
Im new to QTP.. Trying to learn driver. - 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: Im new to QTP.. Trying to learn driver. (/Thread-Im-new-to-QTP-Trying-to-learn-driver)



Im new to QTP.. Trying to learn driver. - suryaprasad - 02-04-2014

Code:
Environment.Value("Base_Path") = Replace(Environment.Value("TestDir"),"\Driver\Driver","")

What does this Replace means here??
I dont have QTP to execute so pls someone clarify me


RE: Im new to QTP.. Trying to learn driver. - pranikgarg - 02-05-2014

Hi,

This Replace function first will remove your "\Driver\Driver" from the Environment.Value("TestDir") path and assign the same path value to Environment.Value("Base_Path").

Let me know if still you have doubt.


RE: Im new to QTP.. Trying to learn driver. - basanth27 - 02-05-2014

SuryaPrasad,
Replace is vbscript function and can be still experimented out without QTP.


RE: Im new to QTP.. Trying to learn driver. - pranikgarg - 02-05-2014

Yes you can do the same. But Environment.Value("Base_Path") and Environment.Value("TestDir") are of QTP internal functions. You can not use these functions out of QTP.