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


what is functions in qtp?i know the userdefind &bulit
funation or i know that Private public function ?plz tell
me what is funations in qtp?how to create a funation in qtp

Answers were Sorted based on User's Feedback



what is functions in qtp?i know the userdefind &bulit funation or i know that Private public ..

Answer / kamesh

Public function : Indicates that the Function procedure is
accessible to all other procedures(functions) in all
scripts.
Private function: Indicates that the Function procedure is
accessible only to other procedures(functions) in the
script where it is declared or if the function is a member
of a class,

Is This Answer Correct ?    2 Yes 1 No

what is functions in qtp?i know the userdefind &bulit funation or i know that Private public ..

Answer / shilpa reddy

function is a set of statements written to fulfill the
functionality &for reusable purpose.
we have user defined functions categorised as public and
private functions.

public f/n:is having access to all actions and tests which
associate that function.i mean function code will be stored
in library files with .vbs xtension,before using this
function we should associate that function to our script.
private function:this is used only in the action where it
is created.(it will not work even in another actions of
same test)

Is This Answer Correct ?    2 Yes 1 No

what is functions in qtp?i know the userdefind &bulit funation or i know that Private public ..

Answer / pankaj sharma

1.Function in QTP : Function in QTP if nothing but the set
of line of code written in .vbs , .txt or in .qfl format to
which we pass n number of parameters and it return one
value .
You can add function in QTP using navigation as :
Setting > Resources
Where we can add user defined function which will be
accesible every where in QTP Suite .
To create funtion in QTP we can use funtion generator
option given in in QTP where we can set input and output
values also insert > Function Defination Genetator

Check a small example below
Call sum(8,4)

Function sum(x,y)
sum=x+Y
MsgBox sum
End Function

For any further doubt you can directly come to me on my
blog
http://quality2deliver.blogspot.com/

Is This Answer Correct ?    1 Yes 0 No

what is functions in qtp?i know the userdefind &bulit funation or i know that Private public ..

Answer / bfakruddin

Function: Function is a block of statements which is used to
perform a particular task and we can call from any test and
pass parameters from calling function and get the result
from called function.

Function returns Single value, we can pass no.of input
parameters and get no.of output parameters and use that
output parameters in tests, But returned value would be on
function name, i.e. the return value at calling function
We can declare function in function

No need to explain about public and private functions in
interviews until unless they ask about the differences.
many interviews they ask differences between sub procedures
and function procedures.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

write a script to verify the image path(src property) of the images which are in web pages.(do it by Descriptive method by creating a description object)

1 Answers  


One build is delivered. in that build button name is submit. but in the next buit that name of the button changed as login.are u continue with previous recorded script or u make any changes?

6 Answers   Covansys,


Plz give the vb script for the following scenerio I have faced one issues while doing test in QTP. I have described the scenario below. 1. I have to test web application.In that i want to select from the drop down values in the application. 2. Suppose Drop down has 5 value "A,B,C,D,E".I would like to give value from data table of QTP. 3. For every iliteration it should select A,then B and so on

0 Answers  


Hi, my requirement is to make a query in SQL using QTP. And i have to get the results of that query and i have to use those results for future testing. I created a driver but i dont know the code for using this Driver. please help me by providing the solution for y requorement

0 Answers  


HOW to invoke any recorded script in QTP with out using RECORD & PLAYBACK CONCEPT?

3 Answers   CTS,


Hi. plz expalin abouit SetToProperty, SetRoProperty, GetToProperty, GetRoProperty,GetToPrperties. with examples.

6 Answers  


how to test Web application using QTP software

0 Answers  


I would like to directly import XL file and work on that XL file directly in QTp script in that XL sheet need to allocate workbench,XL sheet and generate two bar graphs automatically how to do that? plz let me know any answers?

0 Answers   Wipro,


what is Entry Criteria and Exit Criteria?

2 Answers  


What are Test case selection criteria for Automation?

2 Answers  


How QTP recognize the object??how to add objcts into object repository??

3 Answers  


Hoe can we do retesting using functions please give the code for it using login page

0 Answers  


Categories