ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
What is User defined function in QTP
 Question Submitted By :: Sreeprasad
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is User defined function in QTP
Answer
# 1
User defined functions are encapsulation of segments of

code which is used several times in the script.They can be

either within the QTP script or can be maintained in

external .VBS or .TXT files.
 
Is This Answer Correct ?    2 Yes 2 No
Sreeprasad
 
  Re: What is User defined function in QTP
Answer
# 2
User defined function is nothing but we write our own
functions to perform set of action which contains a login to
execute some steps on the application without making use of
inbuilt qtp functions or which contain full logical code by us. 

For. Eg:
If you need to do some arithmetical operation and just
return the value to some object (textbox) or some thing
else. Then write a funcion on ur own and pass the value to
do the operation and that's it.

Similary if u want to do some event handling like check,
click, select object, do some decission making etc. based on
return value u can make use of functions effectively.

Hope ur got the answer.

Thanks & Regards

Arun*
BOSTON, USA
 
Is This Answer Correct ?    2 Yes 2 No
Arun
 
 
 
  Re: What is User defined function in QTP
Answer
# 3
user defined function is nothing but ,u can define ur own 
fuction for particular functionality.
Normaly we will create user defined functions for the 
reusable functionality(which is available in ur 
application)
 
Is This Answer Correct ?    3 Yes 0 No
Ratheesh
 
  Re: What is User defined function in QTP
Answer
# 4
Who mark that arun answer as wrong,

he given nice answer, yes we can make qtp to perform an
action based on return value of function.

User Defined Function: It is a block of statements which is
used to perform particular task and get a return value,
which is reusable code put in the function and call at ur
desired place, and get the return value of your input
parameters.

make the qtp to do action based on that return value. use
that value at your desired area.

thanks
Baba Fakruddin
 
Is This Answer Correct ?    0 Yes 1 No
Bfakruddin
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
what are build and version plz explain why nomber changes in build and version?  3
hw to create a frame work in qtp..what are the basic steps Infosys1
How can you delete the results file (XML)  2
Can any one please explain hwo to test client/server application using QTP? Value-Labs2
How QTP recognizes Objects in AUT? Blue-Star5
what is file database Wipro1
How can we do this one ? at runtime qtpwindow and browser aren't disply on monitor (or) aren't visible on desktop?how?  1
In an(AUT) web application their are two frames as fraMain and fraFooter. Both the frames contain link which needs to be retrieved at a single step. I tried it using "Regular Expression" as fra.* but QTP doesn't recognize the object. So Plz help me out to get resolve the problem:-)  1
In descriptive programming how we know the properties of the objects, if application is not developed and the prototype of the application is also not developed.  1
what testing activities u may want to automate in a project?  1
Hi,The question is write a script for the following scenario. scenario:in a job portal i entered QTP 3yrs testing then click search button.then it displays results like Test lead bangalore (here is a checkbox). Test lead hyderabad check box so on... question is if test lead position in bangalore then checkbox shld be enabled automatically.. Thatavarti-Technologies3
How do u write a regular expression for date (dd/mm/yyyy) field ? Semantic-Space3
What are Test case selection criteria for Automation?  2
There are 3 types of frame works in QTP 1. Linear frame work 2. Modular frame work 3. Key word driven frame work. Can any body explain the above 3 frame work models. y2k_ram2000@yahoo.com Fidelity2
what is the defference between QTP 8.2 and 9.0and 9.2? plz tell me  6
what we do after completion of functional and regression testing  2
does test plan is in test strategy or test strategy is in test plan Tanla-Solutions2
what is batch testing?  1
How to retrive the property of an object?  5
When a requirement is given to u to automate , What is ur basic approach ?  3
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com