Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Im new to QTP.. Trying to learn driver.
#1
Not Solved
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
Reply
#2
Not Solved
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.
Reply
#3
Not Solved
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.
Reply
#4
Not Solved
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.
Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)