测试运行失败:由于&key.dispatchingTimedOut'键盘运行失败; Robotium

时间:2014-04-22 14:38:33

标签: android eclipse automated-tests robotium

我是Robotium的新手。 当我运行我的测试用例时,我收到以下错误: Test run failed: Instrumentation run failed due to 'keyDispatchingTimedOut'

我的TestCase代码:

public void testRun_4() {
    // Wait for activity: 'com.youcureme.pharmaguide.activity.MainActivity'
    solo.waitForActivity("MainActivity", 2000);
    // Wait for dialog
    solo.waitForDialogToOpen(5000);
    // Set default small timeout to 58102 milliseconds
    Timeout.setSmallTimeout(58102);

    // Click on Великобритания
    solo.clickOnView(solo.getView("spinner"));
    // Scroll to Россия
    android.widget.ListView listView0 = (android.widget.ListView) solo.getView(android.widget.ListView.class, 0);
    solo.scrollListToLine(listView0, 4);
    // Click on Россия
    solo.clickOnView(solo.getView("tvDropdown", 6));

    // Set default small timeout to 96972 milliseconds
    Timeout.setSmallTimeout(96972);
}

0 个答案:

没有答案