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   To Refer this Site to Your Friends   Click 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
how can i pass  parameters into  function?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how can i pass parameters into function?
Answer
# 1
From the information, i understand that u have written a
function and trying to pass values to that funciton..

Here is an example:
I have created a function called Add and taken two arguments
" a" and "b". And called that function by passing the values
as 2 and 3

Function Add(a,b)
c=a+b
msgbox c
end function

add 2,3
 
Is This Answer Correct ?    1 Yes 2 No
Bluemoon_bala
 
  Re: how can i pass parameters into function?
Answer
# 2
In the above answer (a,b) are the arguments not parameters. 
And we called as arguments in functions.
 
Is This Answer Correct ?    3 Yes 0 No
Venkat
 
 
 
  Re: how can i pass parameters into function?
Answer
# 3
We will defeinitely pass the parameters to Function

Try with this Example

First parameterize the Agent name with invalid data like sun
Dialog("Login").Einedit("AgentName").Set datatable.Value
("Agent")
Call the function
Function Login(Sunny)
Dialog("Login").Einedit("AgentName").Set datatable.Value
("Agent1")
End Function
 
Is This Answer Correct ?    0 Yes 0 No
Sunil Reddy
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Definationions for keyword view and tree view?  1
How u perform exception handling in QTp,what is other name for ths Lehman-Brothers1
What is Parameterizing Tests?  2
hi gavasker i want how to merg OR's in QTP 8.2 by QTP Plus  1
How u will open the build automatically in QTP except using Systemutil.run command  4
How we test the logo or images in the web page using QTP? For example take google page, they change their logo for new year,christmas etc..How we test that? Plz answer this question... Thanks in advance..  2
Hello Guys, Can anybody Explain me about Automation framework?? and how can we prepareAutomation Framework using QTP Sapient3
How to make "TEST Batches" in manual testing . How it is possible plz explin in detail?  1
Can objects recognised without repository?  4
Synchronization methods? Ordain-Solutions5
with out using import sheet came is it possible to get the excel sheet ? Ordain-Solutions2
How u call functions in QTP Function to calculate the length of characters in a wor  2
What is difference between function and procedure? Wipro15
how can i call an external action,which is not added external action of an action? Ordain-Solutions2
PLEASE TELL ME WHEN DO YOU USE THE OBJECT SPY AT RUN TIME Ordain-Solutions3
how to tell about testing a website in interview using qtp?? what r the points to be covered mainly?  2
Syntax for how to call one script from another? and Syntax to call one "Action" in another?  2
Can we create test script with out Step Generator?  4
any one can explain about QTP proocess,means where to start and how to start Scripting.  3
Synchronizing test Wipro2
 
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