sangmingming / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

Limitation: Can not inject event to application other than the application under test. #147

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have a application that use system SMS application to send messages. When the 
activity switched to SMS, test losts the control of my application and can not 
inject event to SMS. Thus, the test hold a long time before if fails.

Original issue reported on code.google.com by ant...@gmail.com on 1 Sep 2011 at 9:26

GoogleCodeExporter commented 9 years ago
No, that is not possible. In the AndroidManifest.xml you state which target 
application you want to test. That means that the test project is locked to the 
targetPackage. Going outside of that target package is not allowed by the 
Android platform. Therefore you will need 2 test projects, one for each 
application.

Original comment by renasr...@gmail.com on 1 Sep 2011 at 11:25

GoogleCodeExporter commented 9 years ago
Is it possible to combine some features like adroidscreencast to override
the limitation?  Since it is impossible to write a test for build-in
application like phone, sms, setting and so on.

Original comment by ant...@gmail.com on 5 Sep 2011 at 7:02