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

How do we retrieve the content from a text box in a web page

2 Answers  


In Webtable New rows getting added, we have select the name as Sandeep ,If name column is sandeep then need to check the checkbox ,we don't know the rows and columns ,Can anyone please tell me the answer.

3 Answers   Broadridge, Cigniti Technologies, HCL,


How can we disable popup blocker?

1 Answers  


How can I change object description or check point values in qtp?

0 Answers  


Suppose I want to use Index value of "WinEdit" in my script .But it is showing None in "Ordinal identifier" value of Testobject Details in the Object Repository.How to enable Ordinal Identifiers to capture the Index value of that particular WinEdit. I have selected "index" and clicked "OK" from Tools-> Object Identification Again I added same WinEdit to the Object repository But I did not get Index value..Please any one help me.How to enable Ordinal indentifiers

1 Answers  






How to Test Dynamic links ?

4 Answers   Wipro,


Explain about business process component? types and usage?

0 Answers  


Explain more about the Test Fusion Report of QTP?

0 Answers  


Write a script to print below pattern 5 4 3 2 1 5 4 3 2 5 4 3 5 4 5

9 Answers  


How can we disable popup blocker? (I think it means when we get a pop up messge(its error) how we wil disable that one with out interrupting normal process)

6 Answers  


I want to open a GOOGLE page without recording a test in QTP.Can any one answer me?

4 Answers   IBM,


Hi can anybody send me the QTP material, To my email ID: nuve1284@gmail.com ?

0 Answers  


Categories