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


On 27 May 2014 12:56, aparnadharthi reddy <[email protected]> wrote:

> 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
>
>
>
>
>
> On Tue, May 27, 2014 at 9:04 AM, udayanem <[email protected]> wrote:
>
>> 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.
>>
>
>
>
> --
> 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.
>

-- 
-- 
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