Robotium 測試多個activity

How to test two activities with Robotiumhttp://stackoverflow.com/questions/16019011/how-to-test-two-activities-with-robotiumide

    //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);
        }
    }
相關文章
相關標籤/搜索