Closed GoogleCodeExporter closed 9 years ago
I think there may be some thing wrong in setUp or tearDown
protected void setUp() throws Exception {
super.setUp();
mInst = getInstrumentation();
mActivity = launchActivity();
mSolo = new Solo(mInst, mActivity);
SystemClock.sleep(2000);
}
@Override
protected void tearDown() throws Exception {
super.tearDown();
if (mActivity != null) {
mActivity.finish();
SystemClock.sleep(2000);
mActivity = null;
}
mSolo = null;
mInst = null;
}
Original comment by lengguan...@gmail.com
on 2 Aug 2011 at 3:35
Use solo.finalize() in your teardown.
Original comment by renasr...@gmail.com
on 2 Aug 2011 at 7:34
I get the same result when I call solo.finalize() in teardown
thank you
Original comment by lengguan...@gmail.com
on 3 Aug 2011 at 1:36
if I remove mSolo = null from teardown,all the cases passed
Original comment by lengguan...@gmail.com
on 3 Aug 2011 at 2:49
Original issue reported on code.google.com by
lengguan...@gmail.com
on 2 Aug 2011 at 3:27