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.
|
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
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.
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.
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 | 729 |
11-05-2023, 03:55 PM Last Post: lravi4u |
|
Driver Script to control child scripts | sumanhyd | 1 | 3,291 |
07-26-2016, 07:06 PM Last Post: Ankesh |
|
Where to start to learn QTP | Brijendra9322 | 5 | 4,348 |
11-27-2014, 12:06 PM Last Post: Brijendra9322 |
|
How to run driver script to kick off scripts stored in QC? | shipu | 0 | 3,682 |
04-30-2014, 02:39 AM Last Post: shipu |
|
Attaching config file in driver script?? | ruchi | 3 | 4,256 |
01-24-2014, 12:32 PM Last Post: basanth27 |