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 Posted / sisira
Call AddTwo(2,4)
AddTwo 2,4
these two ans are true
Thanks
sisira
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Hi, i run scripts in one machine those r passed.when i run the scripts in client side those r failed.Give me such a scenario when ever u faced?
what is object and child object.. explain ..if possible give some example for better understanding ..
What is quicktest professional window?
What is checkpoints for quicktest professional?
How to export quicktest professional (qtp) results to an .xls file?
when u script reveiwing in which area u more concentrates?
What are the check points can be inserted without recording?
can the activities of test case design be automated?
How to save your test using quicktest professional?
Is the qtp course will help to create a virtual object?
I want to capture data(using keyword) from msdos application using QTP?... Below is little work i could do on it... /* Set app=CreateObject("Wscript.shell") SystemUtil.run ("C:\Users\Agent\Desktop\pumpsim\PUMPSIM.EXE") Window(“PUMPSIM.EXE”).Activate wait(3) app.sendkeys "N" */ Thanks in advance...!!!
Hi, While recording a Jave based web application, its recording all my actions and the objects.And I have 5 WebEdit objects on the page and all are recorded. But while execution, at the 2 WebEdit object, its entering the value into the object (Its making a call to the AJAX, matching the value), when the control get out of this object the value is erased or cleared. Could anyone please help. I have recoreded 5 more scenarios where WebEdit is in the picture on different webpages and all are working fine. Here is my Script: Browser("Sign In").Page("Matching Workbench_3").WebEdit ("locationLookup").Set "0320 - SEATTLE-KM" Browser("Sign In").Page("Matching Workbench_3").WebEdit ("supplierNameLookup").Set "TRAMMO PETROLEUM INC" *** SupplierNameLookup is the object, which is haing an issue. And also I was using the SendString function, but it didnt work.
Can you brief the hurdles you faced during Automation testing?
What is parameter in qtp?
How many types of recording modes in qtp? Which will be used when?