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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
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 ?    1 Yes 0 No
Amarendra Kothuru
 
  Re: Hi PLZ explain User Defined Functions in QTP with eample?
Answer
# 2
User defined function is a peice of code/program which 
intended to perform some specific task.
e.g if i want to create 100 user id's and i can use each id 
to create a profile. To avaoid duplication of ID's we can 
write a function (.vbs extension) which generate ID's based 
on system date and time so all the ID's will unique. After 
that we need to add that function into resources tab in QTP 
and can call that function using a single line statement 
as ...call <functionname>(arguments, if any)
 
Is This Answer Correct ?    1 Yes 0 No
Narendra
 
 
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
What are accessibility check point and xml check point? IBM4
Can any body tell me what is the method to connect the remote desk top throw QTP 9.2 version?  1
what is difference between normal mode and fast mode?  1
whenever U using QTP,Test Director, Why we using separate Bug tracking tool?  1
How do u connect database through QTP tell me both Ms Access and SQL Livetek2
What is throw object?  1
I am Using QTP 9.1 version. I have created a Shared Object Repository. The size of Shared Object REpository is 9 MB. In my system i am able to execute the script very flexibly and it is very fast. But if i copy the same code into other system with the same configuration, it is executing very slowly(i.e dam slow). It is not happening in all machines it is in only some machines. Can please any one give th esolution. It is high priority to me as i need to give demo to client on their machines. TCS4
w is recovery senario manager Infosys3
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.  4
Hi Friends ,I want to Know name of the Site for the QTP Help and the Best Book through that I can start the QTP Practice here also whare can I download the QTP Users Guide I search I was Unable .  2
hai, i am doing QTP by own. So, i am confident in checkpts,synchronization, data driven test, recovery scenarioe manager etc. but actually i don't know how all these we wil implement while we r writting code manually. when we r doing practice, while recording code is automatically generated but in real time i heard that we have to write the script.But i don't know how it is? How to write descriptive prog.? plz. tel me what r the basic things we have to know? explain how to write descriptive prog.? explain me with an example pls....... Vertex2
How can we open an Excel sheet through the script eSymbiosis6
how to get column count in datatable  2
Hi, Can any body please tell me how to create framework in qtp & where i can get some material to learn about it. regards, rahulT  1
How do you find out whether the string is Numeric or Alpha numenric.Suppose..'QTP is an automation testing tool 12345' How should I know it is alphanumeric.Can any one please write the code for this  3
what is the another name for blackbox testing?  6
difference between multiple parameterization and data driven wizard in QTP?  1
Can we do Load Teting with QTP?  10
what is the use of automation objective model?where is used? plz tell me  1
what is the use of VIRTUAL OBJECTS? explain ?  4
 
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