What will be the output of the statements below?
On error Resume Next
Sum 100/0
if Sum= 0 Then
msgbox "Pass"
else
msgbox "Fail"
End If
Answer Posted / pushkar1206
It will result as "Pass". If we remove "On error resume next" line then "Divide by zero" error will be thrown by QTP.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What is the difference between them? How to handle script issues?
how will load the object during runtime?
By using QTP can we record any log files written by the application which is in execution?
How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?
Does QTP record on Objects created on XWindows Environment?
What do you to script when objects are removed from application?
How you can write contexts to text file in qtp?
Is it possible to change the values of analog recording?
could any help me please, how to work on visual foxpro application using UFT
How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?
What is a Patch in QTP?
What we are looking for is to load properties of object dynamically as for our application the global repository will pretty huge. It will be really helpful to us if something similar to following functions of Winrunner is available in QTP. #Define descriptor auto strDesc; #set property in the descriptor Gui_desc_set_attr(strDesc,?Class?,?Edit?); --- put other properties #Add Edit box to GUI Map Gui_add(? ?,strWindowName,strEditboxName,strDesc);
In qtp, how you can use xpath to identify objects?
If I change the property value at runtime is it effect is object repository?
Explain about Test Fusion Report of QTP?