GeekInterview.com
Series: Subject: Topic:
Question: 340 of 785

How can we use debug viewer in QTP.What is the use of that?

Asked by: Interview Candidate | Asked on: Nov 8th, 2006
Showing Answers 1 - 4 of 4 Answers
Rawat

Answered On : Nov 10th, 2006

Yes , we can use debuger view in QTP.

  
Login to rate this answer.
smartmanoj

Answered On : Nov 13th, 2006

Hi lakshminarayana,

u can use debug viewer in the following way.  First enable the option Debug viewer in the view menu.  The debug view consists of three tabs Watch expressions, variables, commands. consider the following code snippet.

Dim A(5)

A(0) = 5

A(1) = 10

A(2) = 15

A(3) = 20

A(4) = 25

In the watch expression tab, add the expression A(2) which enables u to trace the value of an array element A(2) alone.  But the variables tab will show the values of all variables in the code when it is run in debugging mode.

catch me at 9884746410 or mail me at manojpsg04@yahoo.co.in for further queries.

  
Login to rate this answer.
anjalireddy

Answered On : Dec 29th, 2006

While debugging your script ,using command tab you can execute a line of script to change or set the current value of a variable or object.Further execution of your test will use the changed value

  
Login to rate this answer.

Go to View option click on Debug viewer. This will activate ur debug viewer.

Use F11 to debug ur code.

Thanks

Tarun Pandey

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.