How to check the value for variables during run time.

Pls anybody can give the answer.. Thanks in advance...

Answers were Sorted based on User's Feedback



How to check the value for variables during run time. Pls anybody can give the answer.. Thanks i..

Answer / chakrapani

Put a Break point then
do F11 step .
when u comes to variable,select that variable
and do Watch(ctrl+T).In this way during run time
u can chck value of variable.

Is This Answer Correct ?    4 Yes 0 No

How to check the value for variables during run time. Pls anybody can give the answer.. Thanks i..

Answer / nandankumar

if we want to check the return value of particular variable
during run time we can use "msgbox" correct.

ex :

Var = datatable("column name",1)
msgbox var
(it displays only one by one return values)
or

print var

(it displays whole return values at a time)

Is This Answer Correct ?    0 Yes 0 No

How to check the value for variables during run time. Pls anybody can give the answer.. Thanks i..

Answer / uday kumar_anem

You can achieve this only when you debug the scripts.

Put some break points in your script.
By default the runtime evaluates the variable values upto
that breakpoint, and from there on to know var. values use
step in, step out short cut keys.

Is This Answer Correct ?    0 Yes 1 No

How to check the value for variables during run time. Pls anybody can give the answer.. Thanks i..

Answer / chandru

You can check log file for that.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

In automation testing, while doing descriptive programing; how will u get the properties of the objects in what format, what type of a document, and by whom? Pls explain in detail. Thanks a lot

2 Answers   Quest,


What are the abbreviations for tsr and mtr?

17 Answers   Ordain Solutions, TSR,


what is reusable action and how the same can be implemented (process)?

2 Answers  


what is the use of automation frame work ??(QTP)

2 Answers  


Actually what is Quality center..is it Test Director or some other tool..Anybody can expalain it in detail..Thanks in advance..

3 Answers   Sony,






explain virtual object? in detailed? pls any one explain me?

4 Answers   Cap Gemini,


What are the Features & Benefits of Quick Test Pro ?

0 Answers   Crea,


I encountered with very strange problem in qtp while writing the script i written the code window"regexpwndclass:=XLMAIN").window"regexpwndtitle:=Open" ).Exit this code was working fine for about 10-15 times i executed the script but after some time qtp started giving the error with the same code the error is "Object doesnt support this method or function window(...).window(..)" then i modified the code with only window"regexpwndtitle:=Open").Exit in place of window"regexpwndclass:=XLMAIN").window"regexpwndtitle:=Open" ).Exit now again its working fine i cannot understand what thing is creating the problem if same code executed successfully in starting for about 10 times then why it is giving the error now can anyone give the reason .

0 Answers  


What is a runtime datatable ?

2 Answers   Ordain Solutions,


Hi All, What is an XML Checkpoint in QTP? How can i use it while testing a web application? Kindly explain in detail. Thanks in advance

2 Answers  


explain keyword driven framework with banking domain?

0 Answers   TCS,


when I was doing the web testing with QTP using with standard checkpoint the Object selection -checkpoint properties dialog box not displaying pages and links hierarchical order. Could you please tell me. thanks

0 Answers  


Categories