I have below user Defained function
function AddTwo(ByVal a, ByVal b)
Dim Ans
Ans=a+b
MsgBox Ans
End function
Now my question comes here...from given below methods which
method is right to call above function?Which is Wrong and why?
1. AddTwo(2,4)
2. Call AddTwo(2,4)
3. AddTwo 2,4
4. Call AddTwo 2,4
Answer / sisira
Call AddTwo(2,4)
AddTwo 2,4
these two ans are true
Thanks
sisira
| Is This Answer Correct ? | 1 Yes | 0 No |
difference Between Call Run action and copy of action?
How to handle Run-time errors?
What is the difference between link and hyperlink?
Explain the Load testing process?
If QTP not recognizing using repository while executing, how can we go forward
I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?
What is the Difference Between Quick Test Pro and Quick test professional?
how can u put synchronization point in qtp,wat is exactly synchroniztion why we use it wat is benifit in qtp
13 Answers College School Exams Tests, Mind Tree,
Hi, I want to pass a value in to Link object. For ex: I have a link where in which contains the value like "DC4463219(Active)". Whenever i will execute the script this value "DC4463219 (Active)" will get changed. I got the value DC4463219(Active) from the link and stored that value in variable "ACTUAL". If i want to select the same link again, while recording the value DC4463219(Active) will be recorded in object repository. So, that it will not work for the next cycle of execution as the value will get changed everytime as i mentioned above. I want to pass that Acutal value in to link object. The script is as follows: Actual Script when recording: Browser("Web Login").Page("Application").Frame ("ScopeFrame").Link(DC4463219(Active)".Click But now instead of this DC4463219(Active) i want to pass a variable where i have the same value. I tried to execute the script Browser("Web Login").Page("Application").Frame ("ScopeFrame").Link(Actual).Click But it is displaying the error message as that the value which we got from Actual is not existing in Object repository. So,i made the link object as regular expression. Even it is displaying the same message as mentioned above. If you are not able to understand, feel free to contact me with nbabu11@gmail.com
how do you remove object repository at runtime and load object repository and verify it
What are FAST and NORMAL modes in qtp ? Why r these modes intended for ?
What is the difference between qtp and selenium?