How to test two activities with Robotium:http://stackoverflow.com/questions/16019011/how-to-test-two-activities-with-robotium
//Click on add ident button
solo.clickOnButton("Tap to get another number");
if (solo.waitForActivity(IdentityTemplateActivity.class)) {
// select ident type
solo.clickOnImageButton(0);
// add name/label and create ident
if (solo.waitForActivity(NumberDetailActivity.class)) {
solo.enterText(0, "Robotium");
solo.enterText(1, "test 1");
solo.clickOnImageButton(6);
}
}
来源:oschina
链接:https://my.oschina.net/u/855532/blog/411958