Debug viewer

71 views
Skip to first unread message

aparnadharthi reddy

unread,
May 7, 2014, 6:49:22 AM5/7/14
to mercu...@googlegroups.com
Hi,

Can any one explain Watch, Variable and Command tabs in Debug viewer with example.

--
Regards
Aparna

Prasad.L.V

unread,
May 26, 2014, 4:59:02 AM5/26/14
to mercu...@googlegroups.com


--
--
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 Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
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 mercuryqtp+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

udayanem

unread,
May 26, 2014, 11:34:18 PM5/26/14
to mercu...@googlegroups.com
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

aparnadharthi reddy

unread,
May 27, 2014, 3:34:50 AM5/27/14
to mercu...@googlegroups.com
Thank you Uday and Prasad

Same thing i did explain by uday in command tab but not working as expected 

I wrote small script like below

a=10
msgbox a

In debug viewer command tab changed value as a=20

but it display value 10 only

Thanks,
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 Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
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 mercuryqtp+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Regards
Aparna

Prasad.L.V

unread,
May 27, 2014, 8:13:40 AM5/27/14
to mercu...@googlegroups.com
try this

a=10
btxt="hello"
msgbox a

insert breakpoint at btxt and change the value of a then u should get msgbox as 20

udayanem

unread,
May 27, 2014, 8:34:51 AM5/27/14
to mercu...@googlegroups.com
Aparna,

Put a breakpoint at "msgbox a" and run. So here you will see the value of 10 for "a" in variables tab.

Now in command tab, enter a=20 and press "enter" button. Then click on F10 or F5 or Run. You will see the value 20 displayed.

Find the attachment to get more idea.


Thanks,
Uday
QTP / UFT Videos

Command.jpg

aparnadharthi reddy

unread,
May 28, 2014, 5:11:31 AM5/28/14
to mercu...@googlegroups.com
Hi Uday,

Same process followed but problem is not resolved.
Please find attachment file. 
Debug viewer.bmp

udayanem

unread,
May 28, 2014, 9:37:52 AM5/28/14
to mercu...@googlegroups.com
Aprana,

As i mentioned in my previous mail, you have to put your breatkpoint at "msgbox a".

The reason being, once you reach msgbox statement means you already set the value of a=10, then in command tab you can try alter the value to 50.

Then the value will be altered to 50.


Thanks,
Uday
QTP / UFT Videos

aparnadharthi reddy

unread,
May 29, 2014, 3:40:59 AM5/29/14
to mercu...@googlegroups.com
Thank you Uday 

Sedhupathi Gnanasundaram

unread,
Sep 3, 2014, 6:54:09 AM9/3/14
to mercu...@googlegroups.com
Gud one Uday...
Reply all
Reply to author
Forward
0 new messages