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 Function Definition Generator? can any one explain me in details?
Is QTP Object Oriented language or Object Based language? What are the OOPS concepts it will support? Why it wont support all the OOPS concepts?
How to use QTP for Regration testing, plz tell as with short Example of login window? plz tell as....
How can i get the image text that changes dynamically? Here i have used "GetROProperty", but it's not working. I used like Ex:Browser("webmail").Page("inbox").image ("captchaimage).getroproperty("innertext/text/value")
How many actions we can create with in a test?
What are the points to be taken into consideration while doing desktop testing?
Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.
Explain about opening notepad in QTP and writing of test result in notepad?
With out using the task manager,how to close the application using vbscript and what is the statement?
write a script to verify the image path(src property) of the images which are in web pages.(do it by Descriptive method by creating a description object)
I am a beginner plz tell me,how do we write scripts in QTP? In my opinion we can write scipts in expert view or there is another option where we can write scripts. plz tell me.
For Regression testing already written test cases are sufficient?