I am trying to navigate through an applications menu system to verify their existence and state.
This is a totally data driven test.
When I invoke a menu item that is unavailable (grey), Robot does not catch it in a way that I can test for. The
sqaPass, sqaFail, sqaSuccess, ... flags are not used. There is an error that shows up in the Console window and the
Test Manager results->properties screen notes information about it (see below).
How can I test for this state?
Thanks in advance for any help!
The Console window has the following:
**** Script Command Failure on line 24 of 'trial' -
The properties window contents:
Event Type Script Command Failure
Start Date/Time 12/14/2005 9:30:33 AM
Stop Date/Time 12/14/2005 9:30:33 AM
Failure Description Cannot Select a disabled menu item
Script Line Number 24
Script Name trial
Additional Information MenuSelect ,"Edit->Undo",""
Hi, if you can't just use MenuVP to compare the state to an expected baseline, what about using the menu shortcut keys to activate the feature instead of MenuSelect...? Then use a WindowVP to see if the feature was launched or not...
Try using an object properties test case. Select all the properties first, then look for the one that tells if the item is greyed or not. Then write the verification point. Then write a condition for that vp. Only if it is enabled would you then use the code to select it. Hope that make sense.