GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Tech FAQs  >  QTP

 Print  |  
Question:  How to use automation object to load the library files in QTP. I tried to use this stmt" set App = createobject("Quicktest.Application")
App.Test.Settings.Resources.Libraries.Add ("F:QTPrepository.vbs"),1 ".could u pls help how to add it by script itself? what is executefile concept? is it workaround to my question?




April 04, 2007 07:25:45 #10
 debleena23   Member Since: April 2007    Total Comments: 8 

RE: How to use automation object to load the library f...
 
Hi
The simplest way out is ......

Store the Library file along with the entire path in a variable.
EG: sPath = "D:/Files/Functions.vbs"

Then just write ......

Executfile (sPath)

OR
Just write ...........
Executfile ("D:/Files/Functions.vbs")

Below this call which ever function you want to call from the library file
Call FunctName(argument list)

     

 

Back To Question