Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
associate vbs
#2
Solved: 11 Years, 4 Months, 4 Weeks ago
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


Messages In This Thread
associate vbs - by learner1 - 09-20-2010, 04:35 PM
RE: associate vbs - by rajeshwar - 09-29-2010, 05:27 PM
RE: associate vbs - by Ankur - 09-29-2010, 11:09 PM

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

Forum Jump:


Users browsing this thread: 1 Guest(s)