02-04-2014, 05:40 PM
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
Im new to QTP.. Trying to learn driver.
|
02-04-2014, 05:40 PM
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
02-05-2014, 11:15 AM
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.
02-05-2014, 11:22 AM
SuryaPrasad,
Replace is vbscript function and can be still experimented out without QTP.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
02-05-2014, 11:35 AM
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.
|
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
How to send/pass UFT Run Error Dialog as output value to main driver script | lravi4u | 0 | 592 |
11-05-2023, 03:55 PM Last Post: lravi4u |
|
Driver Script to control child scripts | sumanhyd | 1 | 3,191 |
07-26-2016, 07:06 PM Last Post: Ankesh |
|
Where to start to learn QTP | Brijendra9322 | 5 | 4,075 |
11-27-2014, 12:06 PM Last Post: Brijendra9322 |
|
How to run driver script to kick off scripts stored in QC? | shipu | 0 | 3,596 |
04-30-2014, 02:39 AM Last Post: shipu |
|
Attaching config file in driver script?? | ruchi | 3 | 4,153 |
01-24-2014, 12:32 PM Last Post: basanth27 |