A bit more detailed information is here:
Debug Viewer is used to debug the scripts, where you can find the value of 
variables.
To know what value variable is holding, you have to run in debug mode or 
put a break point at the variable.

Debug Viewer is having 3 tabs.
*Watch*: where you can find the value of a variable of your interest. In 
your script you might have certain number of variables, but you want to 
know a specific variable.
To view the value of a var. following are two approaches
right click on the variable name in your script and then choose "Add to 
watch", 
The other way is, in the "name" cell of Watch, double click on the cell and 
enter the variable name.
During execution you can find the value of that  var.

*Variables*: All variables in your action are displayed with values.

*Command*: You can set the value of a variable during run time using 
Command.
For Ex. you are already in debugging, where the value of a var is having 
set some value, but you want to try with different value.
Ex, during debug the value of x say 10, but you want to test with 20.
During those scenarios when the debug pointer is at x, in command tab you 
enter x=20 and then click Enter.
Then when you resume your debug the value of x now set to 20 during run 
time.

I hope the above helps.

If it is not clear, let me know.

Thanks,
Uday
QTP / UFT Videos <https://www.youtube.com/user/AnemUday/videos>


On Wednesday, 7 May 2014 16:19:22 UTC+5:30, aparnadharthi reddy wrote:
>
> Hi,
>
> Can any one explain Watch, Variable and Command tabs in Debug viewer with 
> example.
>
> -- 
> Regards
> Aparna 
>

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to