how can i pass parameters into function?
Answers were Sorted based on User's Feedback
Answer / venkat
In the above answer (a,b) are the arguments not parameters.
And we called as arguments in functions.
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / deven
Function MyFunction(Argument1, Argument2)
MyFunction = Argument1 + Argument2
End Function
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / bluemoon_bala
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 ? | 2 Yes | 4 No |
Answer / sunil reddy
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 | 4 No |
How to check which add-ins are associated with a test in qtp?
What is object & properties (in QTP)
How do you done Data-Driven Testing using MS-Word. What is the script for that
what are the settings to be done to make the recovery scenario created for one test to be used bye all the other tests. please tell me recovery scenario process in detail.
I have faced one issues while doing test in QTP. I have described the scenario below. 1. I have to test web application.In that i want to give input of drop down values in the application. 2. Suppose Drop down has 5 value "A,B,C,D,E".I would like to give value from data table of QTP. 3. I have changed the drop down value as variable in Keyword view and given values in data table "A,B,C,D,E" as one below one. 4. While i am running the script it could not identify the drop down value which is in Data Table.It shows message. How to make value identify by QTP?
what is Automation frame work and how do u used this for your project?
What is exact meaning of Database Checkpoint in QTP 9.2 and what are the different types of the database check points?
In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer
0 Answers Tavant Technologies,
hi gavasker i want how to merg OR's in QTP 8.2 by QTP Plus
Why to use descriptive programming?
What are the check points can be inserted without recording?
How to record a qtp script ?