Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can we associate the required addins at run time?
#2
Solved: 11 Years, 4 Months, 4 Weeks ago
write the below script in a notepad, save it as .vbs , close qtp window, double click the vbs file.
Code:
set q=createobject("quicktest.application")
q.visible=true
msg="enter 1 for older version" &vbnewline &"2 for newer version"
op=inputbox(msg)
if op=1 then
addinlist=array("Web","ActiveX","Visual Basic")
elseif op=2 then
' I dont know about WPF addin, assuming the name is "WPF"
addinlist=array("Web","ActiveX","Visual Basic","WPF")
end if
q.setactiveaddins addinlist
q.launch
'path of test  folder
q.open "D:\MyTest"
q.test.run
set q=nothing
'Once you launch qtp with some add ins selected, you can not add a new add in at run time! by the way i wonder why you are selecting all the add ins!
Reply


Messages In This Thread
RE: Can we associate the required addins at run time? - by rajpes - 07-21-2011, 03:39 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP not recogonising object during run time Lavanya N 2 3,749 10-28-2015, 12:46 PM
Last Post: vinod123
  Writing to Run time data table Neetha 5 12,214 08-27-2015, 10:18 AM
Last Post: supputuri
  Unable to identify "Authentication Required" Dialog shaunysj 2 3,285 08-04-2015, 12:55 PM
Last Post: venkatesh9032
  code required for the following scenarios krithikaachari 0 2,270 09-27-2014, 01:00 AM
Last Post: krithikaachari
  QTP Takes Long time to Run prasaad44 4 4,928 04-10-2014, 01:53 AM
Last Post: prasaad44

Forum Jump:


Users browsing this thread: 1 Guest(s)