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 |
Step 3&4 are repeated until an the object in recognised uniquely.
Hi, I'm a beginner in QTP and planning of a certification in QTP, but have no idea about it :P. Could anyone please tell me what certifications that a QTP- beginner can take? What is the fees and the syllabus for the certification? Please reply soon. Thanks Vidhya
How to "Turn Off" QTP results after running a Script?
Hi, When I click on a hyperlink a secondary pop-window will open. In that pop-up window there will be 'N' number of records arranged in with paging option in datagrid table. Each rows contains two columns, one is text and the other is a radio button. I will pass the first column value and based in it the tool have to select the corresponding radio button in that row. Please someone help me how to handle this as am new to QTP.
IF THE GUI OF APPLICATION IS CHANGED THEN IS THERE ANY NECISSITY TO CHANGE OR UPDATE OUR TEST SCRIPTS
How to test fly out menu in qtp?
What are the methods used in UFT to handle exceptions or run-time errors?
can the activities of test case design be automated?
how can you describe the basic flow of automation with conditional and programmatic logic?
diff between global variables and environment variables in qtp?
what are the Common Problems in S/w development process
how we implement share object repository in QTP 9.0 without using quality Centre , Explaine in brief