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       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
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
Hi PLZ explain User Defined Functions in QTP with eample?
 Question Submitted By :: Loke
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Hi PLZ explain User Defined Functions in QTP with eample?
Answer
# 1
Functions - two types 
1)Buitin - Prepared by QTP
2)User Defined - Prepared by programmer/tester

Syntan to creat User defined function in QTP

Function FunctionName(Parameter1, Param2,.....)
 Statement1
 Statement2
 .....
 .....
End Function

Example:

Function Bigger(value1, value2)
 If value1 > value2 Then
  Bigger = value1
 Else
  Bigger = value2
 End If
End Function

Calling the function in the script

Result = Bigger(20,21)
Msgbox Result  'gives 21
 
Is This Answer Correct ?    0 Yes 0 No
Amarendra Kothuru
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
How u call functions in QTP Function to calculate the length of characters in a wor  2
In real time ,How to run all scripts in QTP? i,e in projects  1
suppose we recording a web based project so for that we are using internet explorer after that if we execute that script in netscape then script will execute or not and one more thing is to exeute the script in any browser what to do DigiTech2
what is frame work of qtp? ITC-Infotech3
What is the use of Testing framework in Automated testing..what are different kinds of Testing frameworks available in Automated testing... IBM1
User defined function in QTP Lehman-Brothers2
What is the Difference between current version of QTP and QTP 8.2. Pls kidly Anybody let me know. Thanks in advance. TCS1
In how may ways we can use checkpoints to an application using QTP?  2
Tell me the QTP Advantages and Disadvatages ? Accenture3
how will check the links in multiple pages at a time  1
What are the most frequent errors you faced while executing your scripts?  1
After geting the modules where we generate the script ie in qtp or notpad ?  1
How can we fill data in a text box without recording using object spy. Can you please provide the steps... TCS1
Can we continue functionality testing without framework?  4
Tell me the situations where we will use Data Driven?  2
I am using excel sheet to export data to QTP but it selects just one row of data from excel sheel how to import all rows of excel sheet to QTP during runtime Wipro8
I recorded a Web based Application running on JAVA and when I went to play them back a week later they didn't run. I noticed that the Browser was putting in a (Underscore and a Number) for each line so i re-recorded and noticed the Underscore line wasn't the same as what i recorded last week so any script I record today will not work next week because the browser settings or how QTP recognizes it keeps changing. This is the new line Browser("Bureau of Labor Statistics_4").Page("Bureau of Labor Statistics").JavaApplet("SurveyApplet").JavaList ("Select an Area").Select "U.S. city average" This is the old line 'Browser("Bureau of Labor Statistics_3").Page("Bureau of Labor Statistics").JavaApplet("SurveyApplet").JavaList ("Select an Area").Select "U.S. city average" Notice the Burearu of Labor Statistics_3 adn Burearu of Labor Statistics_4. Why does it change and how do I prevent it from changing.  3
why the smart identification is not there in WinRunner DigiTech1
what is key word driven frame work how to use keyword driven frame in QTP in a project AppLabs1
Explain synchronization types in QTP  1
 
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