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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to export quicktest professional (qtp) results to an .xls file?

1272


How to use reporter.report event in qtp ?

1090


Hi Every body please explain me in steps to use checkpoints and object Repositories in QTP for Flight Reservation application please tell me the steps for this its urgent pls thanx for urs answers

2120


How to handle the exceptions using the recovery scenario manager in qtp?

1095


• What type of testing questions will be asked for 2+ yrs exp people in interview?

1745


how to evalute defects in QTP script?

2059


How to replay a script in qtp?

1141


What are the methods of the TextStream object that are used for reading from a text file?

2340


What are the advantages of qtp?

1050


Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link

1373


What are the challenges you faced during you entire life automation ?

1564


How smart identification works in qtp ?

1049


I am getting an error "failed to open the XML checkpoint result viewer" in result window,after clicking on "View XML checkpoint results".Someone suggest me settings,if any...

2099


How we can import data from database?

1274


Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this

2597