Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. #456

Closed
nish- opened this issue Jun 24, 2014 · 3 comments

Comments

@nish-
Copy link

nish- commented Jun 24, 2014

on selendroid, it launch the application on my Galaxy S4, but then it gives me following error on Eclipse console.
I am Learning selendroid and stuck here. Please help and thanks in advance
Here is my code

SelendroidCapabilities capa = new SelendroidCapabilities("io.selendroid.testapp:0.10.0");

        System.out.println("start");
        WebDriver driver = new SelendroidDriver(capa);
        driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);

        System.out.println("open the app");
        WebElement inputField = driver.findElement(By.id("my_text_field"));
        //Assert.assertEquals("true", inputField.getAttribute("enabled"));

        inputField.sendKeys("Hello, selenium");

        System.out.println("close app");

Eclipse console:

start
Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: '2.42.2', revision: '6a6995d', time: '2014-06-03 17:42:30'
System info: host: 'VAIO', ip: '192.168.1.131', os.name: 'Windows 8', os.arch: 'amd64', os.version: '6.2', java.version: '1.7.0_13'
Driver info: driver.version: SelendroidDriver
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:593)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:240)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:126)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:139)
    at io.selendroid.SelendroidDriver.<init>(SelendroidDriver.java:70)
    at mymob.Navitve_S4.main(Navitve_S4.java:42)
Caused by: org.apache.http.client.ClientProtocolException
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:188)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
    at org.openqa.selenium.remote.HttpCommandExecutor.fallBackExecute(HttpCommandExecutor.java:204)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:173)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:572)
    ... 5 more
Caused by: org.apache.http.HttpException: Unsupported Content-Coding: none
    at org.apache.http.client.protocol.ResponseContentEncoding.process(ResponseContentEncoding.java:98)
    at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:139)
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:200)
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:85)
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186)
    ... 10 more

This is the status under selendroid server on command prompt.

################# Selendroid #################
################# Configuration in use #################
io.selendroid.SelendroidConfiguration@2f2c9b19[
  port=4444
  timeoutEmulatorStart=300000
  supportedApps=[selendroid-test-app-0.10.0.apk]
  verbose=false
  emulatorPort=5560
  deviceScreenshot=false
  selendroidServerPort=8080
  keystore=<null>
  emulatorOptions=<null>
  registrationUrl=<null>
  proxy=<null>
  serverHost=<null>
  keepAdbAlive=false
  noWebViewApp=false
  noClearData=false
  sessionTimeoutSeconds=1800
  forceReinstall=false
  logLevel=ERROR
]
Jun 24, 2014 4:06:32 PM io.selendroid.SelendroidLauncher launchServer
INFO: Starting selendroid-server port 4444
Jun 24, 2014 4:06:32 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe remove A:\AA_selenium\selendroid\selendroid-test-ap
p-0.10.0.apk META-INF/MANIFEST.MF
Jun 24, 2014 4:06:32 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe remove A:\AA_selenium\selendroid\selendroid-test-ap
p-0.10.0.apk META-INF/CERT.RSA
Jun 24, 2014 4:06:32 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe remove A:\AA_selenium\selendroid\selendroid-test-ap
p-0.10.0.apk META-INF/CERT.SF
Jun 24, 2014 4:06:32 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe remove A:\AA_selenium\selendroid\selendroid-test-ap
p-0.10.0.apk META-INF/ANDROIDD.SF
Jun 24, 2014 4:06:33 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe remove A:\AA_selenium\selendroid\selendroid-test-ap
p-0.10.0.apk META-INF/ANDROIDD.RSA
Jun 24, 2014 4:06:33 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe remove A:\AA_selenium\selendroid\selendroid-test-ap
p-0.10.0.apk META-INF/NDKEYSTO.SF
Jun 24, 2014 4:06:33 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe remove A:\AA_selenium\selendroid\selendroid-test-ap
p-0.10.0.apk META-INF/NDKEYSTO.RSA
Jun 24, 2014 4:06:33 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Program Files\Java\jdk1.8.0_05\bin\jarsigner.exe -si
galg MD5withRSA -digestalg SHA1 -signedjar A:\AA_selenium\selendroid\resigned-se
lendroid-test-app-0.10.0.apk -storepass android -keystore C:\Users\nISH\.android
\debug.keystore A:\AA_selenium\selendroid\selendroid-test-app-0.10.0.apk android
debugkey
Jun 24, 2014 4:06:34 PM io.selendroid.builder.SelendroidServerBuilder signTestSe
rver
INFO: App signing output: jar signed.

Warning:
No -tsa or -tsacert is provided and this jar is not timestamped. Without a times
tamp, users may not be able to validate this jar after the signer certificate's
expiration date (2041-10-27) or after any future revocation date.

Jun 24, 2014 4:06:34 PM io.selendroid.builder.SelendroidServerBuilder signTestSe
rver
INFO: The app has been signed: A:\AA_selenium\selendroid\resigned-selendroid-tes
t-app-0.10.0.apk
Jun 24, 2014 4:06:34 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe dump badging A:\AA_selenium\selendroid\resigned-sel
endroid-test-app-0.10.0.apk
Jun 24, 2014 4:06:34 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe dump badging A:\AA_selenium\selendroid\resigned-sel
endroid-test-app-0.10.0.apk
Jun 24, 2014 4:06:34 PM io.selendroid.server.model.SelendroidStandaloneDriver in
itApplicationsUnderTest
INFO: App io.selendroid.testapp:0.10.0 has been added to selendroid standalone s
erver.
Jun 24, 2014 4:06:34 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe remove C:\Users\nISH\AppData\Local\Temp\android-dri
ver2309994828001324139.apk META-INF/MANIFEST.MF
Jun 24, 2014 4:06:34 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe remove C:\Users\nISH\AppData\Local\Temp\android-dri
ver2309994828001324139.apk META-INF/CERT.RSA
Jun 24, 2014 4:06:35 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe remove C:\Users\nISH\AppData\Local\Temp\android-dri
ver2309994828001324139.apk META-INF/CERT.SF
Jun 24, 2014 4:06:35 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe remove C:\Users\nISH\AppData\Local\Temp\android-dri
ver2309994828001324139.apk META-INF/ANDROIDD.SF
Jun 24, 2014 4:06:35 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe remove C:\Users\nISH\AppData\Local\Temp\android-dri
ver2309994828001324139.apk META-INF/ANDROIDD.RSA
Jun 24, 2014 4:06:35 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe remove C:\Users\nISH\AppData\Local\Temp\android-dri
ver2309994828001324139.apk META-INF/NDKEYSTO.SF
Jun 24, 2014 4:06:35 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe remove C:\Users\nISH\AppData\Local\Temp\android-dri
ver2309994828001324139.apk META-INF/NDKEYSTO.RSA
Jun 24, 2014 4:06:35 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Program Files\Java\jdk1.8.0_05\bin\jarsigner.exe -si
galg MD5withRSA -digestalg SHA1 -signedjar C:\Users\nISH\AppData\Local\Temp\resi
gned-android-driver2309994828001324139.apk -storepass android -keystore C:\Users
\nISH\.android\debug.keystore C:\Users\nISH\AppData\Local\Temp\android-driver230
9994828001324139.apk androiddebugkey
Jun 24, 2014 4:06:36 PM io.selendroid.builder.SelendroidServerBuilder signTestSe
rver
INFO: App signing output: jar signed.

Warning:
No -tsa or -tsacert is provided and this jar is not timestamped. Without a times
tamp, users may not be able to validate this jar after the signer certificate's
expiration date (2041-10-27) or after any future revocation date.

Jun 24, 2014 4:06:36 PM io.selendroid.builder.SelendroidServerBuilder signTestSe
rver
INFO: The app has been signed: C:\Users\nISH\AppData\Local\Temp\resigned-android
-driver2309994828001324139.apk
Jun 24, 2014 4:06:37 PM io.selendroid.server.model.DeviceStore addDevice
INFO: Adding: HardwareDevice [serial=0b685d2f, model=null, targetVersion=null]
Jun 24, 2014 4:06:37 PM io.selendroid.server.model.DeviceStore addDevice
INFO: Adding: HardwareDevice [serial=0b685d2f, model=GT-I9505, targetVersion=AND
ROID19]
Jun 24, 2014 4:06:37 PM io.selendroid.server.model.DeviceStore addDevice
INFO: Adding: HardwareDevice [serial=0b685d2f, model=GT-I9505, targetVersion=AND
ROID19]
Jun 24, 2014 4:06:37 PM io.selendroid.android.impl.DefaultDeviceManager initiali
zeAdbConnection
INFO: my devices: null
Jun 24, 2014 4:06:37 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\tools\
android.bat list avds
Jun 24, 2014 4:06:38 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\platfo
rm-tools\adb.exe devices
Jun 24, 2014 4:06:39 PM io.selendroid.server.model.DeviceStore addEmulators
INFO: No emulators has been found.
selendroid-standalone server has been started on port: 4444
Jun 24, 2014 4:06:58 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe dump badging C:\Users\nISH\AppData\Local\Temp\resig
ned-android-driver2309994828001324139.apk
Jun 24, 2014 4:06:58 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe dump badging C:\Users\nISH\AppData\Local\Temp\resig
ned-android-driver2309994828001324139.apk
Jun 24, 2014 4:06:58 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe dump badging C:\Users\nISH\AppData\Local\Temp\resig
ned-android-driver2309994828001324139.apk
Jun 24, 2014 4:06:58 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe dump badging A:\AA_selenium\selendroid\resigned-sel
endroid-test-app-0.10.0.apk
Jun 24, 2014 4:09:36 PM io.selendroid.server.handler.CreateSessionHandler handle

INFO: new session command with capabilities: {"desiredCapabilities": {"aut": "io
.selendroid.testapp:0.10.0"}}
Jun 24, 2014 4:09:36 PM io.selendroid.server.model.DeviceStore findAndroidDevice

INFO: Evaluating if this device is a match for this session: HardwareDevice [ser
ial=0b685d2f, model=GT-I9505, targetVersion=ANDROID19]
Jun 24, 2014 4:09:36 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\platfo
rm-tools\adb.exe -s 0b685d2f shell pm list packages io.selendroid.testapp
Jun 24, 2014 4:09:37 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\platfo
rm-tools\adb.exe -s 0b685d2f install -r A:\AA_selenium\selendroid\resigned-selen
droid-test-app-0.10.0.apk
Jun 24, 2014 4:09:42 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\platfo
rm-tools\adb.exe -s 0b685d2f shell pm list packages io.selendroid.io.selendroid.
testapp
Jun 24, 2014 4:09:43 PM io.selendroid.builder.SelendroidServerBuilder createSele
ndroidServer
INFO: create SelendroidServer for apk: A:\AA_selenium\selendroid\resigned-selend
roid-test-app-0.10.0.apk
Jun 24, 2014 4:09:43 PM io.selendroid.builder.SelendroidServerBuilder init
INFO: Creating customized Selendroid-server: C:\Users\nISH\AppData\Local\Temp\se
lendroid-server319827070636307279.apk
Jun 24, 2014 4:09:43 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe remove C:\Users\nISH\AppData\Local\Temp\selendroid-
server319827070636307279.apk META-INF/CERT.RSA
Jun 24, 2014 4:09:43 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe remove C:\Users\nISH\AppData\Local\Temp\selendroid-
server319827070636307279.apk META-INF/CERT.SF
Jun 24, 2014 4:09:43 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe remove C:\Users\nISH\AppData\Local\Temp\selendroid-
server319827070636307279.apk AndroidManifest.xml
Jun 24, 2014 4:09:43 PM io.selendroid.builder.SelendroidServerBuilder createAndA
ddCustomizedAndroidManifestToSelendroidServer
INFO: Adding target package 'io.selendroid.testapp' to C:\Users\nISH\AppData\Loc
al\Temp\io.selendroid.testapp1403622583849\AndroidManifest.xml
Jun 24, 2014 4:09:43 PM io.selendroid.builder.SelendroidServerBuilder createAndA
ddCustomizedAndroidManifestToSelendroidServer
INFO: Final Manifest File:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:ver
sionCode="1" android:versionName="0.10.0" package="io.selendroid.io.selendroid.t
estapp">

    <uses-sdk android:minSdkVersion="10"/>

    <instrumentation android:name="io.selendroid.ServerInstrumentation" android:
targetPackage="io.selendroid.testapp"/>

    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION"/>
    <uses-permission android:name="android.permission.INJECT_EVENTS"/>
    <uses-permission android:name="android.permission.WAKE_LOCK"/>

    <application android:debuggable="true" android:icon="@drawable/selenium_icon
" android:label="Selendroid">
        <uses-library android:name="android.test.runner"/>
    </application>

</manifest>

Jun 24, 2014 4:09:43 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe package -M C:\Users\nISH\AppData\Local\Temp\io.sele
ndroid.testapp1403622583849\AndroidManifest.xml -I A:\AA_selenium\dev\adt-bundle
-windows-x86_64\sdk\platforms\android-19\android.jar -F C:\Users\nISH\AppData\Lo
cal\Temp\io.selendroid.testapp1403622583849\manifest.apk -f
Jun 24, 2014 4:09:44 PM io.selendroid.builder.SelendroidServerBuilder createAndA
ddCustomizedAndroidManifestToSelendroidServer
INFO:
Jun 24, 2014 4:09:44 PM io.selendroid.builder.SelendroidServerBuilder createAndA
ddCustomizedAndroidManifestToSelendroidServer
INFO: file: C:\Users\nISH\AppData\Local\Temp\io.selendroid.testapp1403622583849s
elendroid-server.apk
Jun 24, 2014 4:09:44 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Program Files\Java\jdk1.8.0_05\bin\jarsigner.exe -si
galg MD5withRSA -digestalg SHA1 -signedjar C:\Users\nISH\AppData\Local\Temp\sele
ndroid-server-io.selendroid.testapp-0.10.0.apk -storepass android -keystore C:\U
sers\nISH\.android\debug.keystore C:\Users\nISH\AppData\Local\Temp\io.selendroid
.testapp1403622583849selendroid-server.apk androiddebugkey
Jun 24, 2014 4:09:45 PM io.selendroid.builder.SelendroidServerBuilder signTestSe
rver
INFO: App signing output: jar signed.

Warning:
No -tsa or -tsacert is provided and this jar is not timestamped. Without a times
tamp, users may not be able to validate this jar after the signer certificate's
expiration date (2041-10-27) or after any future revocation date.

Jun 24, 2014 4:09:45 PM io.selendroid.builder.SelendroidServerBuilder signTestSe
rver
INFO: The app has been signed: C:\Users\nISH\AppData\Local\Temp\selendroid-serve
r-io.selendroid.testapp-0.10.0.apk
Jun 24, 2014 4:09:45 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\platfo
rm-tools\adb.exe -s 0b685d2f install -r C:\Users\nISH\AppData\Local\Temp\selendr
oid-server-io.selendroid.testapp-0.10.0.apk
running command: adb shell setprop log.tag.SELENDROID ERROR
Jun 24, 2014 4:09:53 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\platfo
rm-tools\adb.exe -s 0b685d2f shell setprop log.tag.SELENDROID ERROR
Jun 24, 2014 4:09:54 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\platfo
rm-tools\adb.exe -s 0b685d2f shell am instrument -e main_activity io.selendroid.
testapp.HomeScreenActivity -e server_port 8080 io.selendroid.io.selendroid.testa
pp/io.selendroid.ServerInstrumentation
Jun 24, 2014 4:09:55 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\platfo
rm-tools\adb.exe -s 0b685d2f forward tcp:8080 tcp:8080
Jun 24, 2014 4:09:55 PM io.selendroid.android.impl.AbstractDevice startLogging
INFO: starting logcat:
Jun 24, 2014 4:09:55 PM io.selendroid.android.impl.AbstractDevice isSelendroidRu
nning
INFO: using url: http://localhost:8080/wd/hub/status
Jun 24, 2014 4:09:55 PM io.selendroid.android.impl.AbstractDevice isSelendroidRu
nning
INFO: got response status code: 200
Jun 24, 2014 4:09:55 PM io.selendroid.android.impl.AbstractDevice isSelendroidRu
nning
INFO: got response value: {"value":{"supportedApps":[],"build":{"browserName":"s
elendroid","version":"0.10.0"},"os":{"arch":"armeabi-v7a","version":"19","name":
"Android"},"supportedDevices":[]},"status":0}
new Session URL: http://localhost:4444/wd/hub/session/bc14cb4d-0377-2434-731e-69
a364da7ec6
@DominikDary
Copy link
Member

The issue is related to the selenium bindings. You are using 2.42.2. they are currently not supported. We have added a fix, but before shipping it we need to fix first another one. A pull request (#465) has been filed already, but testing it is still going on.
Closing this because it is already on the list.

@nish-
Copy link
Author

nish- commented Jul 10, 2014

Hi Dominik,

Thanks for your help. It worked with selenium 2.41.

@sattishpandey
Copy link

From Command line:
################# Selendroid #################
################# Configuration in use #################
io.selendroid.SelendroidConfiguration@2f2c9b19[
port=4444
timeoutEmulatorStart=300000
supportedApps=[selendroid-test-app-0.10.0.apk]
verbose=false
emulatorPort=5560
deviceScreenshot=false
selendroidServerPort=8080
keystore=
emulatorOptions=
registrationUrl=
proxy=
serverHost=
keepAdbAlive=false
noWebViewApp=false
noClearData=false
sessionTimeoutSeconds=1800
forceReinstall=false
logLevel=ERROR
]
Jun 24, 2014 4:06:32 PM io.selendroid.SelendroidLauncher launchServer
INFO: Starting selendroid-server port 4444
Jun 24, 2014 4:06:32 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe remove A:\AA_selenium\selendroid\selendroid-test-ap
p-0.10.0.apk META-INF/MANIFEST.MF
Jun 24, 2014 4:06:32 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe remove A:\AA_selenium\selendroid\selendroid-test-ap
p-0.10.0.apk META-INF/CERT.RSA
Jun 24, 2014 4:06:32 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe remove A:\AA_selenium\selendroid\selendroid-test-ap
p-0.10.0.apk META-INF/CERT.SF
Jun 24, 2014 4:06:32 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe remove A:\AA_selenium\selendroid\selendroid-test-ap
p-0.10.0.apk META-INF/ANDROIDD.SF
Jun 24, 2014 4:06:33 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe remove A:\AA_selenium\selendroid\selendroid-test-ap
p-0.10.0.apk META-INF/ANDROIDD.RSA
Jun 24, 2014 4:06:33 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe remove A:\AA_selenium\selendroid\selendroid-test-ap
p-0.10.0.apk META-INF/NDKEYSTO.SF
Jun 24, 2014 4:06:33 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe remove A:\AA_selenium\selendroid\selendroid-test-ap
p-0.10.0.apk META-INF/NDKEYSTO.RSA
Jun 24, 2014 4:06:33 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Program Files\Java\jdk1.8.0_05\bin\jarsigner.exe -si
galg MD5withRSA -digestalg SHA1 -signedjar A:\AA_selenium\selendroid\resigned-se
lendroid-test-app-0.10.0.apk -storepass android -keystore C:\Users\nISH.android
\debug.keystore A:\AA_selenium\selendroid\selendroid-test-app-0.10.0.apk android
debugkey
Jun 24, 2014 4:06:34 PM io.selendroid.builder.SelendroidServerBuilder signTestSe
rver
INFO: App signing output: jar signed.

Warning:
No -tsa or -tsacert is provided and this jar is not timestamped. Without a times
tamp, users may not be able to validate this jar after the signer certificate's
expiration date (2041-10-27) or after any future revocation date.

Jun 24, 2014 4:06:34 PM io.selendroid.builder.SelendroidServerBuilder signTestSe
rver
INFO: The app has been signed: A:\AA_selenium\selendroid\resigned-selendroid-tes
t-app-0.10.0.apk
Jun 24, 2014 4:06:34 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe dump badging A:\AA_selenium\selendroid\resigned-sel
endroid-test-app-0.10.0.apk
Jun 24, 2014 4:06:34 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe dump badging A:\AA_selenium\selendroid\resigned-sel
endroid-test-app-0.10.0.apk
Jun 24, 2014 4:06:35 PM io.selendroid.io.ShellCommand exec
INFO: executing command: A:\AA_selenium\dev\adt-bundle-windows-x86_64\sdk\build-
tools\android-4.4.2\aapt.exe dump badging A:\AA_selenium\selendroid\resigned-sel

endroid-test-app-0.10.0.apk

After this the execution stops but server startup fails but localhost:4444 shows the details .

From eclipse it gives error :Adb connection Error:An existing connection was forcibly closed by the remote host"
This is repeated again again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants