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
examples of user definied functions? how to write user 
defined functions in qtp9.2?
 Question Submitted By :: Venkat123
I also faced this Question!!     Rank Answer Posted By  
 
  Re: examples of user definied functions? how to write user defined functions in qtp9.2?
Answer
# 1
see..u can write user defined function in many ways.

  here i am explaing u one sample example.
  
   Public Function Func_Login(strUser,strPassWord)
          
       Browser().Page().WebEdit("Name:=UserID").set strUser
       Browser().Page().WebEdit("Name:=Password").setSecure 
crypt.encrypt(strPassword)
       Browser().Page().WebButton("Name:=Log In").Click

   End Function

 When ever u want to login to application u can call this 
function with parameter values for User and Password.

Example:
   sUser = DataTable.Value("UserName")
   sPassword = DataTable.value("Password")

' Call the Login function for loggin in to application.. 

 Func_Login sUser,sPassword

Note : the function can not contain Object repository. So 
before calling or executing this function u have to 
associate Object repostiroy to the Current Action where 
this function is called. And also should assoicate the 
function library file where this function is stored.

  If any queries..

    nanda.dreddy@gmail.com
 
Is This Answer Correct ?    1 Yes 1 No
Nanda
 
  Re: examples of user definied functions? how to write user defined functions in qtp9.2?
Answer
# 2
Its better to write user defined functions by using 
Descriptive programing in notepad and save them as .vbs 
extension. we can upload those files in QTP and we can use 
those functions.
 
Is This Answer Correct ?    2 Yes 0 No
Viswanath
 
 
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Plz explain about InTERNAl Environment variable, External environment variable,builtin environment variables with examples? TCS1
wht is the difference betn check point and output value? BirlaSoft4
what is descriptive programming in QTP? How can be done? Accenture10
If QTP not recognizing using repository while executing, how can we go forward  3
What is the "Release Notes", what it cosists? Key components in Release Notes ?  2
What is the concept of hooking in QTP?  1
How can I find out whether a word in a string is existed or not for example "QTP IS A POWERFULL TOOL FOR AUTOMATION" How can i find out whether "powerfull" is existed in the above string or not Could anyone answer it? Livetek3
how to identify the user defind varibles? plz tell me  1
How do you data drive an external spreadsheet?  1
can any one tell me what is process metrics and what is product metrics if possible give me example. Thank You  2
Take a situation when you are working with QTP, suddenly system has crashed.so you again start the system. My questyion is how can QTP directly opened when the system desktop appears.  1
Hi, Any one have the crack for QTP 10.0,if so could you please send it to phanijuly10@gmail.com  1
How to send QTP test results to an email...(with out using Quality Center)?  8
What is the BPT(bussiness process testing ).and what is the main difference between BPT and QTP EDS2
what is syncurnisation point? what is the use of this in real time environment? plz explain? AppLabs5
anyone can explain about "Smart Identification" in QTP I mean what is the use of "Smart Identification" Give an example  2
how can we call an external library file in QTP apart from using the Executefile statement..?? is there any other way we can call the external library file in QTP..?? DST-Global-Solutions1
In real time ,How to run all scripts in QTP? i,e in projects  1
How can we use the "CreateObject("Wscript.Shell")" in QTP and what is the definition and purpose of it?  1
What is the difference between Action and Function.? when both has the same functionaltiy, when do we choose Action and when do we choose Function..?? DST-Global-Solutions2
 
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