Selendroid Inspector

388 views
Skip to first unread message

Dominik Dary

unread,
Mar 10, 2014, 4:19:08 AM3/10/14
to
Hello,

I know some of you face issues witht the selendroid inspector. We had 3 major issues:
  • enocding: this caused issues when you wanted to display e.g. japanese text in the inspector
  • screenshot & source code: the screenshot and the source code was sometimes only half displayed
  • the source tree was not able to load beacause there was an UI element with a class name like that; PullToRefreshListView$InternalListView

Those issues have been fixed and are part of the latest snapshot build that you can find here:

http://ci.selendroid.io/job/selendroid/lastSuccessfulBuild/artifact/selendroid-standalone/target/selendroid-standalone-0.9.0-SNAPSHOT-with-dependencies.jar

I would like to ask you, for those of you that had issues with the inspector, try it out and give feedback?

Thanks

Dominik

Yan Lincle

unread,
Mar 11, 2014, 11:28:23 PM3/11/14
to selen...@googlegroups.com
Tthanks,Dominic Dary,I will try these issues in Chinese,and give you feed back soon

Yan Lincle

unread,
Mar 12, 2014, 2:50:11 AM3/12/14
to selen...@googlegroups.com

Dominic Dary,for selendroid inspector,chinese text displays no problem now,and in test case,sendkeys()still not working in the latest build

On Monday, March 10, 2014 4:18:33 PM UTC+8, Dominik Dary wrote:
Hello,

I know some of you face issues witht the selendroid inspector. We had 3 major issues:
  • enocding: this caused issues when you wanted to display e.g. japanese text in the inspector
  • screenshot & source code: the screenshot and the source code was sometimes only half displayed
  • the source tree was not able to load beacause there was an UI element with a clDoass name like that; PullToRefreshListView$InternalListView

Dominik Dary

unread,
Mar 12, 2014, 2:09:08 PM3/12/14
to selen...@googlegroups.com

Yan Lincle

unread,
Mar 13, 2014, 3:41:03 AM3/13/14
to selen...@googlegroups.com
hi,Dominik:
   I have a look at the place you tell me ,and use the code in my test,but still error occurs,the info is this:

  org.openqa.selenium.UnsupportedCommandException:
Command duration or timeout: 2 milliseconds
Build info: version: '2.39.0', revision: 'ff23eac', time: '2013-12-16 16:12:12'
System info: host: 'sohutest-PC', ip: '10.2.25.179', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.6.0_21'
Session ID: 95a7bd90-09eb-f193-f026-759527b17c66
Driver info: io.selendroid.SelendroidDriver
Capabilities [{platform=ANDROID, acceptSslCerts=true, javascriptEnabled=true, handlesAlerts=true, browserName=selendroid, rotatable=true, takesScreenshot=true, version=0.9.0-SNAPSHOT}]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:193)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:554)
    at io.selendroid.SelendroidDriver.setConfiguration(SelendroidDriver.java:120)
    at selendroidSohuClub.ChangeNickName.testLogin(ChangeNickName.java:44)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

and  my test case is like this:

        Configuration configurable = (Configuration)driver;
        configurable.setConfiguration(DriverCommand.SEND_KEYS_TO_ELEMENT, "nativeEvents", false);
        driver.findElement(By.xpath("//EditText[@id='et_nick_name']")).clear();
        driver.findElement(By.xpath("//EditText[@id='et_nick_name']")).sendKeys(nicknameString);
        driver.findElement(By.id("rl_btn_save")).click();
        String realnickString = driver.findElement(By.id("tv_lbl_nickname")).getText();
        assertEquals(nicknameString, realnickString);

I wanna know any place have problem?can you help me?

Anuj

unread,
Mar 14, 2014, 11:53:09 PM3/14/14
to selen...@googlegroups.com
Hi Dominik,

Thank you for for your efforts which are helping us is using these tools. 

I have opened one issue regarding the objects not getting displayed in the inspector view. Please find the below link for your reference.


I am using latest selendroid jar file & the issue is still occurring. Request you to look into this & provide an update.

Regards,
Anuj


On Monday, March 10, 2014 1:48:33 PM UTC+5:30, Dominik Dary wrote:
Hello,

I know some of you face issues witht the selendroid inspector. We had 3 major issues:
  • enocding: this caused issues when you wanted to display e.g. japanese text in the inspector
  • screenshot & source code: the screenshot and the source code was sometimes only half displayed
  • the source tree was not able to load beacause there was an UI element with a class name like that; PullToRefreshListView$InternalListView

Anuj

unread,
Mar 15, 2014, 12:11:58 AM3/15/14
to selen...@googlegroups.com
I even tried web view, but no luck. The inspector view is displaying the same object tree. Not able to locate & identify object properties.

Please find the attached file for your reference. 

Regards,
Anuj
Inspector_WebView.png

Dominik Dary

unread,
Mar 17, 2014, 3:44:01 AM3/17/14
to selen...@googlegroups.com
Hello,

selendroid inspector supports only displaying the native UI element tree. There is currently no plan to show in the tree the html UI element tree. If you want to grab the html of the webview:
  • select the web view in the ui element tree
  • press ctrl (to keep the selection)
  • click on "html" tab
  • --> then you will see the html source.

- Dominik

Dominik Dary

unread,
Mar 17, 2014, 3:51:04 AM3/17/14
to selen...@googlegroups.com
Hi Yan,

it seems like you are using the snapshot version but the feature seems not to be there. can you please try to use this version of the selendroid-standalone (has been pushed on friday):
https://oss.sonatype.org/content/repositories/snapshots/io/selendroid/selendroid-standalone/0.9.0-SNAPSHOT/selendroid-standalone-0.9.0-20140314.160007-3-with-dependencies.jar

- Dominik

Yan Lincle

unread,
Mar 18, 2014, 1:47:12 AM3/18/14
to selen...@googlegroups.com
hi,Dominik:
   the error still exists with the version you mentioned below.

Yan Lincle

unread,
Mar 18, 2014, 3:59:00 AM3/18/14
to
hi,Dominik:
   I encoutered a serious problem which I tried all my method to solve ,but failed,it is really weird,before i use an android test apk,all are ok,but this time,I need to test another apk app,but it failed,all are the same as before,I just changed the appid,and app path.and log is just like that:

2014-3-18 15:46:42 io.selendroid.SelendroidLauncher lauchServer
信息: Starting selendroid-server port 4444
2014-3-18 15:46:42 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\build-tools\18.1.1\aapt.exe remove D:\automation\selendroid\91xiongmaokanshu_5700.apk META-INF/MANIFEST.MF
2014-3-18 15:46:43 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\build-tools\18.1.1\aapt.exe remove D:\automation\selendroid\91xiongmaokanshu_5700.apk META-INF/CERT.RSA
2014-3-18 15:46:43 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\build-tools\18.1.1\aapt.exe remove D:\automation\selendroid\91xiongmaokanshu_5700.apk META-INF/CERT.SF
2014-3-18 15:46:43 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\build-tools\18.1.1\aapt.exe remove D:\automation\selendroid\91xiongmaokanshu_5700.apk META-INF/ANDROIDD.SF
2014-3-18 15:46:43 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\build-tools\18.1.1\aapt.exe remove D:\automation\selendroid\91xiongmaokanshu_5700.apk META-INF/ANDROIDD.RSA
2014-3-18 15:46:43 io.selendroid.io.ShellCommand exec
信息: executing command: C:\Program Files (x86)\Java\jdk1.6.0_21\bin\jarsigner.exe -sigalg MD5withRSA -digestalg SHA1 -signedjar D:\automation\selendroid\resigned-91xiongmaokanshu_5700.apk -storepass android -keystore C:\Users\sohutest\.android\debug.keystore D:\automation\selendroid\91xiongmaokanshu_5700.apk androiddebugkey
2014-3-18 15:46:45 io.selendroid.builder.SelendroidServerBuilder signTestServer
信息: App signing output:
2014-3-18 15:46:45 io.selendroid.builder.SelendroidServerBuilder signTestServer
信息: The app has been signed: D:\automation\selendroid\resigned-91xiongmaokanshu_5700.apk
2014-3-18 15:46:45 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\build-tools\18.1.1\aapt.exe dump badging D:\automation\selendroid\resigned-91xiongmaokanshu_5700.apk
2014-3-18 15:46:45 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\build-tools\18.1.1\aapt.exe dump badging D:\automation\selendroid\resigned-91xiongmaokanshu_5700.apk
2014-3-18 15:46:45 io.selendroid.server.model.SelendroidStandaloneDriver initApplicationsUnderTest
信息: App com.nd.android.pandareader:5.70 has been added to selendroid standalone server.
2014-3-18 15:46:45 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\build-tools\18.1.1\aapt.exe remove C:\Users\sohutest\AppData\Local\Temp\android-driver4558712697729285856.apk META-INF/MANIFEST.MF
2014-3-18 15:46:45 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\build-tools\18.1.1\aapt.exe remove C:\Users\sohutest\AppData\Local\Temp\android-driver4558712697729285856.apk META-INF/CERT.RSA
2014-3-18 15:46:45 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\build-tools\18.1.1\aapt.exe remove C:\Users\sohutest\AppData\Local\Temp\android-driver4558712697729285856.apk META-INF/CERT.SF
2014-3-18 15:46:45 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\build-tools\18.1.1\aapt.exe remove C:\Users\sohutest\AppData\Local\Temp\android-driver4558712697729285856.apk META-INF/ANDROIDD.SF
2014-3-18 15:46:45 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\build-tools\18.1.1\aapt.exe remove C:\Users\sohutest\AppData\Local\Temp\android-driver4558712697729285856.apk META-INF/ANDROIDD.RSA
2014-3-18 15:46:45 io.selendroid.io.ShellCommand exec
信息: executing command: C:\Program Files (x86)\Java\jdk1.6.0_21\bin\jarsigner.exe -sigalg MD5withRSA -digestalg SHA1 -signedjar C:\Users\sohutest\AppData\Local\Temp\resigned-android-driver4558712697729285856.apk -storepass android -keystore C:\Users\sohutest\.android\debug.keystore C:\Users\sohutest\AppData\Local\Temp\android-driver4558712697729285856.apk androiddebugkey
2014-3-18 15:46:45 io.selendroid.builder.SelendroidServerBuilder signTestServer
信息: App signing output:
2014-3-18 15:46:45 io.selendroid.builder.SelendroidServerBuilder signTestServer
信息: The app has been signed: C:\Users\sohutest\AppData\Local\Temp\resigned-android-driver4558712697729285856.apk
Adding: HardwareDevice [serial=DBOKCT136270, model=null, targetVersion=null]
Adding: HardwareDevice [serial=DBOKCT136270, model=ASUS K00S, targetVersion=ANDROID18]
Adding: HardwareDevice [serial=DBOKCT136270, model=ASUS K00S, targetVersion=ANDROID18]
2014-3-18 15:46:46 io.selendroid.android.impl.DefaultDeviceManager initializeAdbConnection
信息: my devices: null
2014-3-18 15:46:46 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\tools\android.bat list avds
2014-3-18 15:46:47 io.selendroid.server.model.DeviceStore addEmulators
信息: Adding: AndroidEmulator [screenSize=480x800, targetPlatform=ANDROID14, avdName=Android4.0]
2014-3-18 15:46:47 io.selendroid.server.SelendroidStandaloneServer start
信息: selendroid-standalone server has been started on port: 4444
2014-3-18 15:46:47 io.selendroid.server.handler.ListSessionsHandler handle
信息: list sessions command
2014-3-18 15:46:48 io.selendroid.server.handler.CreateSessionHandler handle
信息: new session command with capabilities: {"desiredCapabilities": {
  "aut": "com.nd.android.pandareader:5.70",
  "browserName": "selendroid",
  "emulator": false,
  "locale": "en_US"
}}
2014-3-18 15:46:48 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\build-tools\18.1.1\aapt.exe dump badging C:\Users\sohutest\AppData\Local\Temp\resigned-android-driver4558712697729285856.apk
2014-3-18 15:46:48 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\platform-tools\adb.exe -s DBOKCT136270 shell pm list packages io.selendroid.androiddriver
2014-3-18 15:46:48 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\platform-tools\adb.exe -s DBOKCT136270 uninstall io.selendroid.androiddriver
2014-3-18 15:46:51 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\platform-tools\adb.exe -s DBOKCT136270 install C:\Users\sohutest\AppData\Local\Temp\resigned-android-driver4558712697729285856.apk
2014-3-18 15:46:53 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\platform-tools\adb.exe -s DBOKCT136270 shell pm list packages com.nd.android.pandareader
2014-3-18 15:46:54 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\platform-tools\adb.exe -s DBOKCT136270 uninstall com.nd.android.pandareader
2014-3-18 15:46:56 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\platform-tools\adb.exe -s DBOKCT136270 install D:\automation\selendroid\resigned-91xiongmaokanshu_5700.apk
2014-3-18 15:47:02 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\platform-tools\adb.exe -s DBOKCT136270 install D:\automation\selendroid\resigned-91xiongmaokanshu_5700.apk
2014-3-18 15:47:08 io.selendroid.builder.SelendroidServerBuilder createSelendroidServer
信息: create SelendroidServer for apk: D:\automation\selendroid\resigned-91xiongmaokanshu_5700.apk
2014-3-18 15:47:08 io.selendroid.builder.SelendroidServerBuilder init
信息: Creating customized Selendroid-server: C:\Users\sohutest\AppData\Local\Temp\selendroid-server5844715720187712991.apk
2014-3-18 15:47:08 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\build-tools\18.1.1\aapt.exe remove C:\Users\sohutest\AppData\Local\Temp\selendroid-server5844715720187712991.apk META-INF/CERT.RSA
2014-3-18 15:47:08 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\build-tools\18.1.1\aapt.exe remove C:\Users\sohutest\AppData\Local\Temp\selendroid-server5844715720187712991.apk META-INF/CERT.SF
2014-3-18 15:47:08 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\build-tools\18.1.1\aapt.exe remove C:\Users\sohutest\AppData\Local\Temp\selendroid-server5844715720187712991.apk AndroidManifest.xml
2014-3-18 15:47:08 io.selendroid.builder.SelendroidServerBuilder createAndAddCustomizedAndroidManifestToSelendroidServer
信息: Adding target package 'com.nd.android.pandareader' to C:\Users\sohutest\AppData\Local\Temp\com.nd.android.pandareader1395128828761\AndroidManifest.xml
2014-3-18 15:47:08 io.selendroid.builder.SelendroidServerBuilder createAndAddCustomizedAndroidManifestToSelendroidServer
信息: Final Manifest File:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="0.8.0" package="io.selendroid.com.nd.android.pandareader">

    <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>
2014-3-18 15:47:08 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\build-tools\18.1.1\aapt.exe package -M C:\Users\sohutest\AppData\Local\Temp\com.nd.android.pandareader1395128828761\AndroidManifest.xml -I D:\android-sdks\platforms\android-8\android.jar -F C:\Users\sohutest\AppData\Local\Temp\com.nd.android.pandareader1395128828761\manifest.apk -f
2014-3-18 15:47:08 io.selendroid.builder.SelendroidServerBuilder createAndAddCustomizedAndroidManifestToSelendroidServer
信息:
2014-3-18 15:47:09 io.selendroid.builder.SelendroidServerBuilder createAndAddCustomizedAndroidManifestToSelendroidServer
信息: file: C:\Users\sohutest\AppData\Local\Temp\com.nd.android.pandareader1395128828761selendroid-server.apk
2014-3-18 15:47:09 io.selendroid.io.ShellCommand exec
信息: executing command: C:\Program Files (x86)\Java\jdk1.6.0_21\bin\jarsigner.exe -sigalg MD5withRSA -digestalg SHA1 -signedjar C:\Users\sohutest\AppData\Local\Temp\selendroid-server-com.nd.android.pandareader-0.8.0.apk -storepass android -keystore C:\Users\sohutest\.android\debug.keystore C:\Users\sohutest\AppData\Local\Temp\com.nd.android.pandareader1395128828761selendroid-server.apk androiddebugkey
2014-3-18 15:47:09 io.selendroid.builder.SelendroidServerBuilder signTestServer
信息: App signing output:
2014-3-18 15:47:09 io.selendroid.builder.SelendroidServerBuilder signTestServer
信息: The app has been signed: C:\Users\sohutest\AppData\Local\Temp\selendroid-server-com.nd.android.pandareader-0.8.0.apk
2014-3-18 15:47:09 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\build-tools\18.1.1\aapt.exe dump badging C:\Users\sohutest\AppData\Local\Temp\selendroid-server-com.nd.android.pandareader-0.8.0.apk
2014-3-18 15:47:09 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\platform-tools\adb.exe -s DBOKCT136270 shell pm list packages io.selendroid.com.nd.android.pandareader
2014-3-18 15:47:10 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\platform-tools\adb.exe -s DBOKCT136270 uninstall io.selendroid.com.nd.android.pandareader
2014-3-18 15:47:12 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\platform-tools\adb.exe -s DBOKCT136270 install C:\Users\sohutest\AppData\Local\Temp\selendroid-server-com.nd.android.pandareader-0.8.0.apk
2014-3-18 15:47:16 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\build-tools\18.1.1\aapt.exe dump badging D:\automation\selendroid\resigned-91xiongmaokanshu_5700.apk
2014-3-18 15:47:16 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\platform-tools\adb.exe -s DBOKCT136270 shell am instrument -e main_activity com.nd.android.pandareader.home.Pandareader -e server_port 8080 io.selendroid.com.nd.android.pandareader/io.selendroid.ServerInstrumentation
2014-3-18 15:47:16 io.selendroid.io.ShellCommand exec
信息: executing command: D:\android-sdks\platform-tools\adb.exe -s DBOKCT136270 forward tcp:8080 tcp:8080
starting logcat:
D:\android-sdks\platform-tools\adb.exe -s DBOKCT136270 logcat -v time
2014-3-18 15:47:16 io.selendroid.android.impl.AbstractDevice isSelendroidRunning
信息: using url: http://localhost:8080/wd/hub/status
2014-3-18 15:47:16 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:16 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:16 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:16 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:16 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:16 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:16 io.selendroid.android.impl.AbstractDevice isSelendroidRunning
严重: Error getting status: java.net.SocketException: Connection reset
2014-3-18 15:47:18 io.selendroid.android.impl.AbstractDevice isSelendroidRunning
信息: using url: http://localhost:8080/wd/hub/status
2014-3-18 15:47:19 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:19 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:19 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:19 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:19 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:19 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:19 io.selendroid.android.impl.AbstractDevice isSelendroidRunning
严重: Error getting status: java.net.SocketException: Connection reset
2014-3-18 15:47:21 io.selendroid.android.impl.AbstractDevice isSelendroidRunning
信息: using url: http://localhost:8080/wd/hub/status
2014-3-18 15:47:21 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:21 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:21 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:21 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:21 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:21 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:21 io.selendroid.android.impl.AbstractDevice isSelendroidRunning
严重: Error getting status: java.net.SocketException: Connection reset
2014-3-18 15:47:23 io.selendroid.android.impl.AbstractDevice isSelendroidRunning
信息: using url: http://localhost:8080/wd/hub/status
2014-3-18 15:47:23 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:23 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:23 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:23 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:23 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:23 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:23 io.selendroid.android.impl.AbstractDevice isSelendroidRunning
严重: Error getting status: java.net.SocketException: Software caused connection abort: recv failed
Cleaning up unclosed ZipFile for archive C:\Users\sohutest\AppData\Local\Temp\selendroid-server5844715720187712991.apk
2014-3-18 15:47:25 io.selendroid.android.impl.AbstractDevice isSelendroidRunning
信息: using url: http://localhost:8080/wd/hub/status
2014-3-18 15:47:25 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:25 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:25 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:25 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:25 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:25 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:25 io.selendroid.android.impl.AbstractDevice isSelendroidRunning
严重: Error getting status: java.net.SocketException: Connection reset
2014-3-18 15:47:27 io.selendroid.android.impl.AbstractDevice isSelendroidRunning
信息: using url: http://localhost:8080/wd/hub/status
2014-3-18 15:47:27 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:27 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:27 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:27 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:27 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:27 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:27 io.selendroid.android.impl.AbstractDevice isSelendroidRunning
严重: Error getting status: java.net.SocketException: Connection reset
2014-3-18 15:47:29 io.selendroid.android.impl.AbstractDevice isSelendroidRunning
信息: using url: http://localhost:8080/wd/hub/status
2014-3-18 15:47:29 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:29 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:29 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:29 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:29 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:29 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:29 io.selendroid.android.impl.AbstractDevice isSelendroidRunning
严重: Error getting status: java.net.SocketException: Connection reset
2014-3-18 15:47:31 io.selendroid.android.impl.AbstractDevice isSelendroidRunning
信息: using url: http://localhost:8080/wd/hub/status
2014-3-18 15:47:31 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:31 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:31 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:31 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:31 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:31 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:31 io.selendroid.android.impl.AbstractDevice isSelendroidRunning
严重: Error getting status: java.net.SocketException: Connection reset
2014-3-18 15:47:33 io.selendroid.android.impl.AbstractDevice isSelendroidRunning
信息: using url: http://localhost:8080/wd/hub/status
2014-3-18 15:47:33 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:33 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:33 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:33 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:33 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:33 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:33 io.selendroid.android.impl.AbstractDevice isSelendroidRunning
严重: Error getting status: java.net.SocketException: Connection reset
2014-3-18 15:47:35 io.selendroid.android.impl.AbstractDevice isSelendroidRunning
信息: using url: http://localhost:8080/wd/hub/status
2014-3-18 15:47:35 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:35 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:35 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:35 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:35 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:35 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:35 io.selendroid.android.impl.AbstractDevice isSelendroidRunning
严重: Error getting status: java.net.SocketException: Connection reset
2014-3-18 15:47:37 io.selendroid.android.impl.AbstractDevice isSelendroidRunning
信息: using url: http://localhost:8080/wd/hub/status
2014-3-18 15:47:37 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:37 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:37 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:37 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:37 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-3-18 15:47:37 org.apache.http.impl.client.DefaultRequestDirector tryExecute
信息: Retrying request
2014-3-18 15:47:37 io.selendroid.android.impl.AbstractDevice isSelendroidRunning
严重: Error getting status: java.net.SocketException: Connection reset
2014-3-18 15:47:37 io.selendroid.server.handler.CreateSessionHandler handle
严重: Error while creating new session: Selendroid server on the device didn't came up after 20sec:
io.selendroid.exceptions.SelendroidException: Selendroid server on the device didn't came up after 20sec:
    at io.selendroid.server.model.SelendroidStandaloneDriver.createNewTestSession(SelendroidStandaloneDriver.java:393)
    at io.selendroid.server.handler.CreateSessionHandler.handle(CreateSessionHandler.java:41)
    at io.selendroid.server.SelendroidServlet.handleRequest(SelendroidServlet.java:127)
    at io.selendroid.server.BaseServlet.handleHttpRequest(BaseServlet.java:70)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:78)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:62)
    at org.webbitserver.handler.PathMatchHandler.handleHttpRequest(PathMatchHandler.java:33)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:78)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:62)
    at org.webbitserver.handler.DateHeaderHandler.handleHttpRequest(DateHeaderHandler.java:21)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:78)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:62)
    at org.webbitserver.handler.ServerHeaderHandler.handleHttpRequest(ServerHeaderHandler.java:25)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:78)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:67)
    at org.webbitserver.netty.NettyHttpChannelHandler$2.run(NettyHttpChannelHandler.java:72)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)

I need your help,appreciated,attachments is the apk

 

On Thursday, March 13, 2014 2:09:08 AM UTC+8, Dominik Dary wrote:
91xiongmaokanshu_5700.apk
code.txt

Anuj

unread,
Mar 19, 2014, 12:14:42 AM3/19/14
to selen...@googlegroups.com
Thanks much Dominik. It is working perfect now.

Regards,
Anuj

Dominik Dary

unread,
Mar 21, 2014, 9:19:34 AM3/21/14
to selen...@googlegroups.com
Hi Yan Lincle,

I looked into your apk and it turned out, that it was signed in a way that I was not aware of. Usually, if the apk is signed, there are the following files in the apk:
  •     META-INF/CERT.RSA
  •     META-INF/CERT.SF

or

  •     META-INF/ANDROIDD.SF
  •     META-INF/ANDROIDD.RSA
In your case, the files were:
  • NDKEYSTO.SF
  • NDKEYSTO.RSA

When I removed them manually and signed the apk manually as well, I was able to use and automate it.

Can you please tell me, how your app has been signed?

If you want to use selendroid on your end, remove those files via e.g. aapt remove 91xiongmaokanshu_5700.apk META-INF/NDKEYSTO.SF and then you can use it.

-Dominik

laxmankumar nakka

unread,
Dec 18, 2014, 12:33:13 AM12/18/14
to selen...@googlegroups.com

Hi Dominik,

How will you inspect camera button to capture a picture. 

laxmankumar nakka

unread,
Dec 18, 2014, 1:40:37 AM12/18/14
to selen...@googlegroups.com
i have written this testcase in selendroid and i am unable to capture picture  using the last line because i am anble to inspect camera button (its not showing any id or name or xpath)...plz any one help me...
driver.findElement(By.xpath("//Button[@id='btnLogUtilsin']")).click();
driver.findElement(By.xpath("//EditText[@id='etMyNumber']")).click();
driver.findElement(By.xpath("//EditText[@id='etMyNumber']")).sendKeys("98850802");
driver.findElement(By.xpath("//EditText[@id='etFName']")).sendKeys("Laxman");
driver.findElement(By.xpath("//EditText[@id='etLName']")).sendKeys("Nakka");
new Actions(driver).sendKeys(SelendroidKeys.BACK).perform();
driver.findElement(By.id("llMale")).click();
driver.findElement(By.xpath("//EditText[@id='etCity']")).clear();
driver.findElement(By.xpath("//EditText[@id='etCity']")).sendKeys("403,9th cross");
new Actions(driver).sendKeys(SelendroidKeys.BACK).perform();
driver.findElement(By.xpath("//EditText[@id='etHouseNo']")).sendKeys("201");
driver.findElement(By.xpath("//EditText[@id='etStreetName']")).sendKeys("J P Nagar");
driver.findElement(By.xpath("//EditText[@id='etPinCode']")).sendKeys("505001");
new Actions(driver).sendKeys(SelendroidKeys.BACK).perform();
driver.findElement(By.xpath("//EditText[@id='etEmail']")).sendKeys("laxmanku...@gmail.com");
new Actions(driver).sendKeys(SelendroidKeys.BACK).perform();
driver.findElement(By.xpath("//Button[@id='btnHome']")).click();
new Actions(driver).sendKeys(SelendroidKeys.DPAD_DOWN).perform();
driver.findElement(By.xpath("//TextView[@value='Take Photo']")).click();
Thread.sleep(10000);
new Actions(driver).sendKeys(SelendroidKeys.BACK).perform();
//driver.findElement(By.xpath("//TextView[@value='Choose Photo']")).click();
//driver.findElement(By.xpath("//TextView[@value='Choose Photo']")).sendKeys("Screenshot_2014-12-08-14-58-40.png");
//driver.findElement(By.className("android.widget.Button")).click();
//driver.findElement(By.id("3701adc4-11bf-b81c-5ac1-4b6f59abebb2")).click();

On Thu, Dec 18, 2014 at 11:03 AM, laxmankumar nakka <laxmanku...@gmail.com> wrote:

Hi Dominik,

How will you inspect camera button to capture a picture. 

--
You received this message because you are subscribed to a topic in the Google Groups "selendroid" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selendroid/oJvFfG2k-kI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selendroid+...@googlegroups.com.
Visit this group at http://groups.google.com/group/selendroid.
To view this discussion on the web, visit https://groups.google.com/d/msgid/selendroid/57092e3a-d07b-40fb-90c9-dcddbe0eb0be%40googlegroups.com.

anuja...@tsepak.com

unread,
Jul 9, 2015, 6:59:58 AM7/9/15
to selen...@googlegroups.com
Hi,

I Selendroid inspector I am just getting screenshot of the device but I am unable to see the source code. How can I resolve the issue.

Regards,
Anuja
Reply all
Reply to author
Forward
0 new messages