Can please be more clear on what kind of action you want? 

"I need Index selection.  for example.if i click menu item 1,the default 
qtp take menu names . Isit possilbe in QTP. " 

You can do that with QTP but it is not that straight forward.. 
Can you please attach runtime and native property for Menu object. I can 
help you out then ..  I think there are two possibilities 

1, When you do GetRoProeprty for WpfMenu.. one of the property will have 
all item name like this 
 New;Open;save:saveas 
 so in that case you can split that values into array and do something like 
that .... here 0 index is associated with New, 1 is associated with Open so 
forth.. 


itemCount=WpfWindow("x").WpfMenu("y").GetRoProperty("itemCount(check with 
property is assigned to retrieve a value for item num")

For i=0 to itemCount-1

    WpfWindow("x").WpfMenu("y").select i --- here you are selecting an item 
from your menu 
    menuListVal=menuList[i]; 
    msgbox menuListVal
    Perform Action here...

Next 


2. Since you are using .Net Application you have to 
You need to know native property, 

getValue= WpfWindow("x").WpfMenu("y").object.getitem("selected item") 








On Thursday, August 16, 2012 5:31:58 AM UTC-4, Prakash Sethupathi wrote:
>
> Thanks Dixit,
>    But i dont have database ,we have text file with encrypt format.I need 
> Index selection.
>  for example.if i click menu item 1,the default qtp take menu names .
> Isit possilbe in QTP.
>
>
> Regards, 
> S Prakash
> 9094394616
>
>

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

Reply via email to