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...


Can we add the function library directly from scripting in
qtp instead of adding from resource tab?

Answers were Sorted based on User's Feedback



Can we add the function library directly from scripting in qtp instead of adding from resource tab..

Answer / nath .t

Sorry for the small mistake in the above answer.



Set qtApp = CreateObject("QuickTest.Application")

qtApp.Launch

qtApp.Visible = True

qtApp.Open "C:\Tests\Test1", False, False

qtApp.Test.Settings.Resources.Libraries.Add "e:\Utils.vbs"

Is This Answer Correct ?    8 Yes 2 No

Can we add the function library directly from scripting in qtp instead of adding from resource tab..

Answer / nath .t

through script we can do

executefile "give the path"
Ex: executefile "d:\functionlibrary.vbs"

another way we can add to our script is AOM(Automated
object model)

first of all create Quick Test object than we can add with
that object.

Ex:
qtApp.Test.Settings.Resources.Add "Path of the library file"

like this we can add.

Is This Answer Correct ?    5 Yes 1 No

Can we add the function library directly from scripting in qtp instead of adding from resource tab..

Answer / pikkilimadhu

Executefile "filepath.qfl" (we can do with qfl,vbs,txt extensions in this method)

loadfunctionlibrary "filepath.qfl" (we can do only qfl extension in this method)

Is This Answer Correct ?    0 Yes 0 No

Can we add the function library directly from scripting in qtp instead of adding from resource tab..

Answer / mohit

Naren,
Seems like u need to learn that adding a library and executing a library are two different tasks. In a laymen language, (that u seems to b more suitable for u) the difference is exactly what is in between loading a gun with bullets and firing the bullets. If u add something to ur resources, u may or may not use it in future. But when u execute something.. u command the control to execute it then and there without knowing even it is needed or not. So come prepared next time when u post something. Gud Day!

Is This Answer Correct ?    0 Yes 3 No

Can we add the function library directly from scripting in qtp instead of adding from resource tab..

Answer / naren

Hi Nath,

Please understand the questions first no hurry. Execute File
is the correct answer then again what is the need for adding
OR through scripting. Function Library means user defined
function(x.vbs) so Execute file is enough. The question does
not ask about adding Object Repository through scripting.

Is This Answer Correct ?    1 Yes 10 No

Post New Answer

More QTP Interview Questions

What’s the basic concept of QTP?

1 Answers  


Once the Actions are splitted , is there any way to merge them

3 Answers  


How to create log file in qtp?

2 Answers   AppLabs,


PLS REAL TIMERS WRITE THE ANS FOR THIS? WHICH SCRIPT IS USED IN REAL TIME NOW A DAYS 1)SHARED REPOSITORY BASED SCRIPT 2)DESCRIPTIVE PROGRAMMING BASED SCRIPT?

1 Answers  


1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.

0 Answers  


What are the ways you can synchronize?

0 Answers  


somebody please say me why we go for using regular expressions,actions.what is the main and exact use of this in real time applications.real time testers pls answer my question with example if u can

4 Answers  


Regular expressions..... Actually how to use this and what is the exact syntax and can anybody can help me out this with example.is there any docs pls send to my mailid rvreddy82@gmail.com

1 Answers   UHG,


Up to how much VB scripting knowledge and what type of VB script knowledge is required for a QTP test engineer for real time to work ?

3 Answers  


Syntact for how to call one script from another? and Syntax to call one "Action" in another?

1 Answers  


How to identify the child window. In my case while recording, When i open new window and give checkpoint for some control and when i run that script QTP give error like" can not identify the object" Is there any method or solution to handle child window issue Note: In my apllication i have to check child window of child window also ( multiple windows open )

2 Answers   Infovision,


What is the QTP test frame work?

3 Answers   IBM,


Categories