Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
associate vbs
#1
Hi
can we associte vbs at runtime
basicaly my requirement is to implement case statement
case select var
case "A"
associate vbs a
case "B"
associate vbs b
end select

i dont want to use executefile as it does not provide ood debugging mechansm and also on some error it points to some other line of the code

also associating vbs using test->settings (manully) => loads all vbs at before the actual code execution start and makes us wait for long
Reply
#2
Hi,

If you want to associate vbs before the QTP Application is launched, you can do it in following way.

Code:
Set App = CreateObject("QuickTest.Application") App.Launch App.Visible = True App.Test.Settings.Resources.Libraries.RemoveAll var = "A" Select case var case "A":App.Test.Settings.Resources.Libraries.Add "D:\A.vbs" case "B":App.Test.Settings.Resources.Libraries.Add "D:\b.vbs" End Select Set App = Nothing
Reply
#3
This functionality is added in QTP 11 now Check the new features of QTP 11 here
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Getting an error to open UFT using vbs file Naresh 1 6,026 06-11-2015, 06:34 PM
Last Post: venkatesh9032
  QTP Report to respective QC test Set Path through VBS Anand Saboo 0 2,752 11-01-2013, 02:36 PM
Last Post: Anand Saboo
  How to print value in QTP Log using .vbs kalyaniR 1 3,782 10-25-2013, 04:32 PM
Last Post: ssvali
  How to run .vbs files through wscript.exe sams001 0 3,027 03-23-2013, 11:08 AM
Last Post: sams001
Shy Resetting a variable list vbs file mv8167 0 2,342 11-03-2012, 12:23 AM
Last Post: mv8167

Forum Jump:


Users browsing this thread: 1 Guest(s)