Closed GoogleCodeExporter closed 9 years ago
Robotium is run in the same process as your app. If your app crashes, has an
ANR or similar it will affect the tests as well. What you need to do is check
the log and find out why its crashing and then take it from there.
Original comment by renasr...@gmail.com
on 24 Oct 2013 at 5:04
Thanks for your response!
I agree with this, but application is not crashing, it stuck at some activity
and doesn't do anything (nothing going ahead). I checked thoroughly, my
Activity is correct.
If I execute single test case, it works fine but if I execute 4 tests at once,
other 3 test cases hangs and doesn't do anything.
Original comment by Tlakh...@gmail.com
on 24 Oct 2013 at 5:37
Do you use solo.finishOpenedActivities() in your tearDown()?
Original comment by renasr...@gmail.com
on 24 Oct 2013 at 5:55
I used both
@Override
public void tearDown() throws Exception {
solo.finishOpenedActivities();
super.tearDown();
}
Original comment by Tlakh...@gmail.com
on 24 Oct 2013 at 6:02
What happens if you use the second constructor: solo = new
Solo(getInstrumentation); instead?
Original comment by renasr...@gmail.com
on 24 Oct 2013 at 6:11
No launching even the first test case (Activity).
Please let me know will I have to create another Instrumentation instance for
other test cases and again write
solo = new Solo(getInstrumentation(),getActivity());
Original comment by Tlakh...@gmail.com
on 24 Oct 2013 at 6:22
Write it like this:
solo = new Solo(getInstrumentation());
getActivity();
Original comment by renasr...@gmail.com
on 24 Oct 2013 at 6:24
Hi Renas,
I have sent you logcat via mail. Please review it and let me know why Test
cases hangs?
Regards,
Tanuj Lakshakar
Original comment by Tlakh...@gmail.com
on 25 Oct 2013 at 5:51
There is nothing in the log pointing at Robotium failure. The reason for the
crash is something you need to figure out.
Original comment by renasr...@gmail.com
on 25 Oct 2013 at 6:13
Actually application is not crashing but it hangs after executing 1st test
case. You might see in log a comment "The application may be doing too much
work on its main thread.". May be this causes an issue, I don't know.
Also there is clearly mentioned in log that "Starting test:
testMyProfileActivity(com.WhatsApp.test.StartWhatsAppApp)" that means this test
case started but not executing all its instrumentations. I hangs after
sometimes, means stuck at one activity and doesn't proceed ahead.
Original comment by Tlakh...@gmail.com
on 25 Oct 2013 at 6:20
Would it be possible for you to share the app? You can just email me the apk.
Original comment by renasr...@gmail.com
on 25 Oct 2013 at 6:22
Sorry I can't share the app. But I have sent you snapshot that tells you where
I am getting stuck.
After executing 1st test case successfully, application hangs at this page. In
code even if I write
solo.enterText(0, "stest123");
solo.sleep(500);
solo.enterText(1, "123456");
it didn't execute these instructions
Original comment by Tlakh...@gmail.com
on 25 Oct 2013 at 6:25
Unfortunately there is nothing I can figure out or do based on that
screenshot.
Original comment by renasr...@gmail.com
on 25 Oct 2013 at 6:26
Original issue reported on code.google.com by
Tlakh...@gmail.com
on 23 Oct 2013 at 1:41