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)

Answers were Sorted based on User's Feedback



how can u find the syntax errors or other script errors in your test during the execution of your ..

Answer / 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

how can u find the syntax errors or other script errors in your test during the execution of your ..

Answer / gabbar singh

CTRL+F7 SYNTAX CHECK. or click on syntax check icon

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More QTP Interview Questions

what is defenetion of kiran can u tell me plz CVS, SVN

0 Answers  


How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?

0 Answers  


What is the difference between property and method?

2 Answers  


How to create runtime property for an object?

7 Answers  


how u track bugs using Test director in manual testing.

2 Answers   Accenture, FCG,






I have made the recovery scenario in script. When i am exceuting the script. it stop automatically after running recovery scenario. Please tell the resaon?

2 Answers  


What is parameter in qtp?

0 Answers  


one ok button and one text box is there.when i click on ok button in that text box one no. will display from 1 to 100 randomley.if that is not 100 when we click on ok button again ,again another text box ll created with another no. we will continue this till the text box created and displays 100.and when its 100 ok button should disabled. remember thet no will display not seriely ,it displays randomley,and each time new text box will created.

6 Answers   ADP,


How can i check items sorted or not in a weblist ? Give me the script for this...

0 Answers  


hai there..this is chandu..i have a txt file which containing 1000 lines but at a time i want to retrieve 50 lines..after 50 lines i required to retrieve 51-100..like that i want...so could anybody help me in this...thanks in Advance..

3 Answers  


I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.

0 Answers   Adea Solutions,


Explain about the Test Fusion Report of QTP ?

1 Answers  


Categories