SeleniumHQ / selenium-google-code-issue-archive

Archive, please see main selenium repo
https://github.com/seleniumhq/selenium
345 stars 195 forks source link

Android Webdriver : unable to run adb shell am instrument -w simple.app.test/android.test.InstrumentationTestRunner #4126

Closed lukeis closed 8 years ago

lukeis commented 8 years ago

Originally reported on Google Code with ID 4126

What steps will reproduce the problem?
1. Follow the guide at http://code.google.com/p/selenium/wiki/AndroidDriver
2. install both SimpleApp and TestAndroidWebapp apks
3. adb shell am instrument -w simple.app.test/android.test.InstrumentationTestRunner

What is the expected output? What do you see instead?
expected : test success
obtained :
INSTRUMENTATION_STATUS: id=ActivityManagerService
INSTRUMENTATION_STATUS: Error=Permission Denial: starting instrumentation ComponentInfo{simple.app.test/android.test.InstrumentationTestRunner}
from pid=766, uid=766 not allowed because package simple.app.test does not have a signature
matching the target simple.app
INSTRUMENTATION_STATUS_CODE: -1
java.lang.SecurityException: Permission Denial: starting instrumentation ComponentInfo{simple.app.test/android.test.InstrumentationTestRunner}
from pid=766, uid=766 not allowed because package simple.app.test does not have a signature
matching the target simple.app
    at android.os.Parcel.readException(Parcel.java:1327)
    at android.os.Parcel.readException(Parcel.java:1281)
    at android.app.ActivityManagerProxy.startInstrumentation(ActivityManagerNative.java:2459)
    at com.android.commands.am.Am.runInstrument(Am.java:585)
    at com.android.commands.am.Am.run(Am.java:117)
    at com.android.commands.am.Am.main(Am.java:80)
    at com.android.internal.os.RuntimeInit.finishInit(Native Method)
    at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:238)
    at dalvik.system.NativeStart.main(Native Method)

Selenium version:
OS: OSX Snow Leopard

Hello

I'm unable to run the tests using simple.app.test/android.test.InstrumentationTestRunner,
it looks like the test package mismatches the simple.app package

Could anyone help ? :)

Thanks

Reported by l.laurent.p on 2012-06-21 20:05:31

lukeis commented 8 years ago

Reported by barancev on 2012-06-23 20:16:05

lukeis commented 8 years ago
This issue was closed by revision r17450.

Reported by barancev on 2012-07-16 17:55:51

lukeis commented 8 years ago
Sorry, mistyped the issue number.

Reported by barancev on 2012-07-16 18:03:49

lukeis commented 8 years ago
Selenium project no longer supports the AndroidDriver.

Please use Selendroid instead:
http://selendroid.io/webview.html

And log any issues against that project:
https://github.com/selendroid/selendroid/issues

Reported by luke.semerau on 2013-12-26 21:57:35

lukeis commented 8 years ago

Reported by luke.semerau on 2015-09-17 18:15:40