how can u find the syntax errors or other script errors in
your test during the execution of your QTP Test - (i.e.,
not after the execution/test run finished, but before
finishing the test run)
Answer Posted / nath t
we can findout errors before finishing the test run by
using Err Object.
Example:
On Error Resume Next
Err.Raise 6 ' Raise an overflow error.
MsgBox ("Error # " & CStr(Err.Number) & " " &
Err.Description)
Err.Clear ' Clear the error.
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Explain sub procedure of vbscript.
What is object repository in qtp?
What are the features supported by UFT?
Step 3&4 are repeated until an the object in recognised uniquely.
what is the difference between modular framework & datadriven framework
how to convert 100 into hundred repees only and viceversa
Can we call qtp test from another test using scripting. Suppose there are 4 tests and I want to call these tests in a main script. Is this possible in qtp?
What is Unicode Compatibility?
Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?
How can you send user defined messages to test report?
What is the difference between QTP and WinRunner? Why do you choose only QTP for automation among remaing tools like Rational robot and silk test? Write the VBscript for any functionality in your project ? What is the cost of QTP ? If you entered into yahoo mail with your valid user name then you will get FOR EXAMPLE , " welcome to krishna " on the top of inbo page , how can you test it in QTP? What type of testing you can do, when we gave you 5 screens and how can you test that application? What type of framework you are using in your company and explain it?
I have qtp 9.5 demo ver,I am not able to record the yahoo broeser.so anyone can tell me what setting i have to do in QTP for yahoo brower recording. why its not recognise the object of yahoo browser????
unique properties of button,edit box, radio button,check box?
explain how to write vb script in qtp?when will you write own script?
How can I find out the cursor position through QTP suppose I am keep tabbing(Pressing the tab key continuously) and stoped at a position Now I want to find out where the cursor position is