Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How do we call Library Files(.vbs) in the Test Script

Thanks in Advance...


Answers were Sorted based on User's Feedback



How do we call Library Files(.vbs) in the Test Script Thanks in Advance... ..

Answer / raj

We can use ExecuteFile statement to call vbs files.

Syntax : ExecuteFile <filepath>

Is This Answer Correct ?    1 Yes 0 No

How do we call Library Files(.vbs) in the Test Script Thanks in Advance... ..

Answer / sreekanth chilam

Calling of Library Files can be done in two ways:

1.Loading(Calling)the Library Files in design Time:
In QTP 8.2
Test Menu --> Settings--> resources tab --> click "+"
Button & browse the required file & click Apply.
Now the library file has been associted with entire
(Current)test.(This entire process is done before run time
i.e during design time ).

so all the Actions contained in the test can access the
functions written in the .vbs files.


2.Loading the Library Files during the Run Time:

By using th ExecuteFile Statement.

Syntax:ExecuteFile "../.../../../.vbs filepath"

Here in which action the above statement is given ..in to
that action only the .vbs file will be loaded/called.. but
not to all actions contained in the Test.

During Run time , executefile statement loads .vbs file
into the current action of the test.

Is This Answer Correct ?    1 Yes 0 No

How do we call Library Files(.vbs) in the Test Script Thanks in Advance... ..

Answer / ram.polavarapu

we need to associate file to qtp and
call function name


executefile "path.vbs"

Is This Answer Correct ?    1 Yes 0 No

How do we call Library Files(.vbs) in the Test Script Thanks in Advance... ..

Answer / k.sai krishn reddy

u can add library file to ur script through Test-----------
-->Resources tab here u find option called add file there u
can add ur files manually before running the script then
save it so when ever u open that script attached lib files
also opened with that script.
i hope this will satisfy.

Is This Answer Correct ?    0 Yes 0 No

How do we call Library Files(.vbs) in the Test Script Thanks in Advance... ..

Answer / uday

Associating a function library can be done in many ways.
Putting all the above valid answers here.

1. Open QTP -> Click on File menu -> Settings -> Resource ->
Choose the file path of the function library.
(Manual way of associating a function library)

2. ExecuteFile "FilePath".
If you use in an action, then the functions in function
library are available on that action only, other actions
cannot access the functions in function library.
Another disadvantage is, the function pointer will not go
into the function library when you debug the script.

3. LoadFunctionLibrary(From QTP 11), which will load the
function library at run-time.

4. Using AOM.

Thanks,
Uday
http://qtpftvideos.blogspot.com/

Is This Answer Correct ?    0 Yes 0 No

How do we call Library Files(.vbs) in the Test Script Thanks in Advance... ..

Answer / sri satya

By using script, we can add in this way also:

path1="C:/Lib1"
path2="C:/Lib2"
Set qtLibraries =
qtApp1.Test.Settings.Resources.Libraries ' Get the
libraries collection object

qtLibraries.Add path1 ,1
qtLibraries.Add path2 ,2

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

How will u integrate oracel with QTP?

2 Answers   Microsoft,


where u maintain qtp scripts in ur company

4 Answers   HCL,


how to write code for to select all the checkboxs in the gmail i wrote code for my question but it didn't works any body suggest what wrong my code my code is Set chkboxDesc=Description.Create() chkboxDesc("type").value="chekbox" Set chboxcollection=Browser("name:=Gmail .*").Page("title:=Gmail .*").ChildObjects(chkboxDesc) For i=0 To chboxcollection.count-1 chboxcollection(i).set "ON" Next i was getting general run time error pls help me i am in learing stage

2 Answers  


QTP script is not working on other's machine..

0 Answers  


Hi All, How to Compare two strings character by character in QTP

0 Answers  


I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?

0 Answers  


What is the syntax to call one action in another?

0 Answers  


I am Using QTP 9.1 version. I have created a Shared Object Repository. The size of Shared Object REpository is 9 MB. In my system i am able to execute the script very flexibly and it is very fast. But if i copy the same code into other system with the same configuration, it is executing very slowly(i.e dam slow). It is not happening in all machines it is in only some machines. Can please any one give th esolution. It is high priority to me as i need to give demo to client on their machines.

4 Answers   TCS,


Brief the process of testing with UFT?

0 Answers  


how can we handle errors other than using recovery scenerios in qtp

0 Answers  


what are the mandatory properties for a tex boxc (scenario?)

0 Answers  


What are the advantages of Object Repository?

0 Answers  


Categories