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

What are test settings and global settings?

0 Answers  


OR is full with objects but i want to add 5 more objects,but i tried merging files,shared mode and descriptive ,iwont work.is there any alternative for that

6 Answers   CTS,


How to find if given number is prime or not

1 Answers  


How to add a runtime parameter to a datasheet?

1 Answers   Crea,


What are the features of quick test pro(qtp)?

0 Answers  


What expansion of "MIC" in MICPASS (TEST ReportPAGE)

11 Answers   TCS,


How to test login page by using QTP

6 Answers  


How Exactly we can find out the INDEX No. of any object of an application when we test that application in QTP? Explain this by giving me the example of all LINKS of G-Mail (including home page, User-account page and all possible pages you ever seen in G Mail)?????? and if your answer is that as per appearance of objects(LINKS) in application we can find out the index number in application then tell me how you find out which object(LINK) having INDEX No. 1,2,3 and so on and how you say which object(LINK) is appeared first and which is last?

4 Answers   Infosys,


WHAT IS THE DIFFERENCE BETWEEN QTP SCRIPT AND VB SCRIPT? HOW MUCH PERCENTAGE WE USE IN QTP SCRIPT REAL TIME AND HOW MUCH PERCEN OF VB SCRIPT,,,,,,,

0 Answers  


WHAT IS THE DESCRIPTIVE programming when it is useful? & when to use this ?

6 Answers   CTS,


what is difference between analog and low level recording

2 Answers   Intel,


what is the syntax for regular expression in QTP? how to create user defined functions in QTP?

6 Answers   CTS, MBT, TCS,


Categories