|
先上代码:
public class WoTest extends ActivityInstrumentationTestCase2<Login> {
public WoTest() {
super("com.wo.kan", Login.class);
}
private Solo solo;
public void setUp() throws Exception {
solo = new Solo(getInstrumentation(), getActivity());
}
public void test1() throws Exception {
//......
assertEquals("ok?", 1, 1);
}
public void test2() throws Exception {
//......
assertEquals("ok?", 1, 1);
}
@Override
public void tearDown() throws Exception {
try {
solo.finalize();
} catch (Throwable e) {
e.printStackTrace();
}
getActivity().finish();
super.tearDown();
// Robotium will finish all the activities that have been opened
solo.finishOpenedActivities();
}
}
执行完test1后,test2就没有执行了,但程序也没有终止,就一直在那挂起。
请问大侠们是什么原因? |
|