I am trying to run an ui test using robotium. I have a simple test case:
public class test1 extendsActivityInstrumentationTestCase2<MainActivity> {
private Solo solo;
public test1() {
super(MainActivity.class);
}
public void setUp() throws Exception {
super.setUp();
setActivityInitialTouchMode(true);
solo = new Solo(getInstrumentation(), getActivity());
}
public void testButtons() throws Exception {
getInstrumentation().waitForIdleSync();
assertTrue(solo.waitForActivity("MainActivity",3000));
}
@Override
public void tearDown() throws Exception {
try {
solo.finalize();
} catch (Throwable e) {
e.printStackTrace();
}
getActivity().finish();
solo.finishOpenedActivities();
super.tearDown();
}
It worked, but the app got bigger and now it even doesnt run the tests. I allways gets stuck while doing: "Sending test information to Eclipse":
[2015-06-24 05:14:20 - gui_test] Launching instrumentation android.test.InstrumentationTestRunner on
[2015-06-24 05:14:20 - gui_test] Sending test information to Eclipse
It doesnt perform "running tests...". what can be the cause?
Aucun commentaire:
Enregistrer un commentaire