Robotium Uniting Testing on an application having multiple processes

Posted by warenix on Stack Overflow See other posts from Stack Overflow or by warenix
Published on 2012-08-09T02:57:24Z Indexed on 2012/12/03 23:05 UTC
Read the original article Hit count: 393

I have written an application running activities in multiple processes.

I tried Robotium by creating a new test project set target package to my application. When I executed it, the test stopped with the following error message:

Error in testDisplayBlackBox:
java.lang.RuntimeException: Intent in process com.abc.def resolved to different process com.abc.def:mail: Intent { act=android.intent.action.MAIN flg=0x10000000    cmp=com.abc.def/com.abc.def.email.activity.Welcome }
    at android.app.Instrumentation.startActivitySync(Instrumentation.java:377)
    at android.test.InstrumentationTestCase.launchActivityWithIntent(InstrumentationTestCase.java:119)
    at android.test.InstrumentationTestCase.launchActivity(InstrumentationTestCase.java:97)
    at android.test.ActivityInstrumentationTestCase2.getActivity(ActivityInstrumentationTestCase2.java:104)
    at com.abc.def.test.TestApk.setUp(TestApk.java:31)
    at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:190)
    at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:175)
    at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555)
    at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1584)

Test results for InstrumentationTestRunner=.E
Time: 0.027

FAILURES!!!
Tests run: 1,  Failures: 0,  Errors: 1

Is it possible to have any workaround provided that I have source code in hand?

© Stack Overflow or respective owner

Related posts about android

Related posts about unit-testing