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 to use library files in QTP? how we can call these
files in to script?

Answers were Sorted based on User's Feedback



How to use library files in QTP? how we can call these files in to script?..

Answer / uday kumar_anem

We can load the external Library files by using 2 ways:
1. Choose Test > Settings > Choose Resources tab >
Choose + button so select the library file > browse and
select the library file > click Ok.

2. We can load the library files using Scripting:
Use executefile function to load library files.
Example:
executefile "C:\Documents and
Settings\ukumar\Desktop\Sample.vbs"
x=10
y=5
result=SumOfTwoNumbers(x,y)
msgbox(result)


'Code in External Library file(.vbs file).
'Public function SumOfTwoNumbers(a,b)
'Dim sum
'sum=a+b
'SumOfTwoNumbers=sum
'End Function

Is This Answer Correct ?    11 Yes 1 No

How to use library files in QTP? how we can call these files in to script?..

Answer / priyank

add it to resource OR if you required during run-time use
ExecuteFile " ..\absolute path "

Is This Answer Correct ?    3 Yes 1 No

How to use library files in QTP? how we can call these files in to script?..

Answer / chandana

Hi priyank

can u plz explain in detail with validations, it is very
use full for us.

Thank U

Is This Answer Correct ?    2 Yes 0 No

How to use library files in QTP? how we can call these files in to script?..

Answer / pravati

file>>new test>>test name>>test path >> save
file>>new>>function library>>path>>create file>> write script>>save.
for associate file>>setting>>Resources>>associate function library in the test which u want to call the function library>>apply>>ok

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

can we install qtp on server machine and do automation of application which is installed on client machine.If yes then how? If no then is there any other automation tool for this (client-server) senario.

4 Answers  


Suppose I created one object as virtual object? That object is applicable to that test? Or all the tests?

0 Answers  


How to see the screens after running test in QTP?

1 Answers  


what is difference between normal mode and fast mode?

1 Answers  


Hi All, we are using QTP Automation Scripts to test SAP. I recorded QTP Automation Scripts in English-based SAP GUI. Now we have to test a French-based SAP sytem and use the same scripts. The QTP scripts are failing when executed on the French-based SAP System due to Object Recognition Issues. What can we do? Do I re-record the scripts in the French-based SAP system?

0 Answers  


What is the Diff between Image check-point and Bit map Check point?

4 Answers  


Explain abt the File System Object in QTP with ex

3 Answers   Ordain Solutions,


difference Between Call Run action and copy of action?

3 Answers   Quest,


if anyone has idea of the interview procedure in covansys, plz send me a mail?

0 Answers  


Which statement will use for close an action in QTP?

0 Answers  


Hi, I am using 2 excel sheet.First excel sheet works fine with the script, if it opens the 2nd excel sheet,it works fine,but after finish all the rows it is giving the following error in the following line. InValid Procedure call or argument Line (178): "Browser("name:="&result,"application version:=internet explorer 7").Page ("title:=bgt.*", "index:=0").WebList ("name:=SearchType","html id:=Select1","location:=0").Select SearchType1". I have seen a web article says that,If we use any vbscript friendly name it may gives the above error-Invalid procedure call or argument not sure,Am I using any VBScript frienlyName? in the above line? [but the same line is perfecly working for first Excel ] It is little urgent. Any Help Thanks you

0 Answers  


what is the difference between Reusable action and external action?

2 Answers   HCL,


Categories