views:

27

answers:

0

I've search for a while now, but I can't find any answers on this topic.

So, i've been trying to include UI tests into my suite. But I can't figure out how to check if a certain menu item on the options menu for an activity is visible after I sent a certain series of keys to the emulator.

Is it possible to get a handle to the options menu from the test project and then do something like hasVisibleItems() on that handle?

Is it even necessary to test these things?

Thanks in advance