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
Answers were Sorted based on User's Feedback
Answer / udham singh
if the statement is sum = 100/0
then the answer is
"Pass"
Is This Answer Correct ? | 4 Yes | 0 No |
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 |
what is the use of VIRTUAL OBJECTS? explain ?
In a flight window we have to enter the name and meal request for every passenger.In that window if we give Total passengers=1 then the Psngr1 name field and psngr1 meal request field will reflects.if we give Total passengers=2 then Psngr1 name field and psngr1 meal request field,Psngr2 name field and psngr2 meal request field will reflects and so on.if total psngrs=100 then will we capture all the fields for the psngrs to Automate the app how we can handle this scenerio thru Descriptive programming?
How to analyzing test results using quicktest professional?
how i can get the value of label box , please any body tell me script of that code
how will load the object during runtime?
What are benefits of qtp?
IF I SET THE VIRTUAL OBJECT AFTER THAT MAXIMIZE THE APPLICATION THEN QTP SENT ERROR OR EXECUTE SUCCESSFULLY? WHY ?
Does we use Classes and methods in realtime..?How wud we access methods in a class..?Thanq Guys..!
How to use userdifined environment variables.Once we created in Environment tab which is at File--> Settings-- >Environment-->Userdifined
Today only i joined in this site. Can u please tell me definition of parameterization. and how i can do the parameterization?
What is the use of Debug Viewer?
Can we Script any test case with out having Object repository? or Using Object Repository is a must