Robotium フレームワークを使用して Android メニューにアクセスする方法はありますか? (http://code.google.com/p/robotium/) プログラムでメニューから GPS アクティベーション ラインを選択したい。Robotiumで可能ですか?
2324 次
3 に答える
2
Robotium を使用して独自のアプリケーションのメニューにアクセスするには、次のようにします。
Solo solo = new Solo(getInstrumentation(), getActivity());
solo.clickOnMenuItem("MENU ITEM TEXT HERE");
于 2011-02-17T19:46:59.660 に答える
1
私は実際には少し違うものを使用しています:
solo.sendKey(Solo.MENU);
solo.clickOnText("MenuItemText");
于 2012-02-02T22:22:16.327 に答える
0
not for another app in which you cannot insert the robotium framework..
if that Android device menu was part of your app than yes you could but that is not the case.
There is a visual testing library framework you could use though which would fit this test case..
Look on my blog for the link, it was posted in Oct or November: MobileBytes
于 2010-11-21T13:00:21.507 に答える