"Selenium for Android" (Test automate native or hybrid Android apps and the mobile web with Selendroid.) Join us on IRC #selendroid on freenode. Also confirm you have signed the CLA http://goo.gl/pAvxEI when making a Pull Request.

Overview

Selendroid

Build Status

Selendroid is a test automation framework which drives of the UI of Android native and hybrid applications (apps) and the mobile web with Selendroid. Tests are written using the Selenium 2 client API and for testing the application under test must not be modified.

Selendroid can be used on emulators and real devices and can be integrated as a node into the Selenium Grid for scaling and parallel testing.

You want more details?

Check out our documentation.

Contributing

We have documented Selendroid's Architecture and all the small tricks you need to know when contributing to selendroid you find in our wiki. Also confirm you have signed the CLA when making a Pull Request.

Maven Artifacts

You can find the current version in Maven central.

Building

  1. Run gradle clean build

License

The Apache Software License, Version 2.0

Comments
  • Selendroid don't work on my own app

    Selendroid don't work on my own app

    i have downloaded and built selendroid 0.5.0 with maven and ellipse and successfully ran the selendroid-test-app with it. but when i try to test my app "fido myaccount", its not working. here is what i did:

    1. clone selendroid 0.5.0 from gitbub (github: clone https://github.com/DominikDary/selendroid.git to d:\project\Git\selendroid)
    2. mvn clean install (cd D:\Project\GIT\selendroid-0.5.0 & D:\Project\apache-maven-3.0.5\bin\mvn clean install)
    3. generate eclipse project file from maven (cd D:\Project\GIT\selendroid-0.5.0 & D:\Project\apache-maven-3.0.5\bin\mvn eclipse:eclipse)
    4. import ecipse project (ADT/eclipse - Import - General - Exsting proj - D:\project\git\selendroid-0.5.0)
    5. install selendroid server on my LG G2 device (adb install -r D:\Project\selendroid\050\selendroid-server-0.5.0.apk)
    6. install my own app "fido myaccount' on LG G2 adb install -r D:\Project\selendroid\050\com.fidosolutions.myaccount-1_debug.apk) *i did use re-sign tool on both selendroid-server-0.5.0.apk and com.fidosolutions.myaccount-1_debug.apk)
    7. start the selendroid server: (adb shell am instrument -e main_activity 'com.fidosolutions.myaccount.MyAccountApp' io.selendroid/.ServerInstrumentation) *MyAccountApp is main activity of fido my acct app
    8. activate port forwarding. (adb forward tcp:5555 tcp:8080) *forward tcp:8080 to tcp:8080 don't work for me, i had to use forward 5555 to 8080
    9. run testNG proj: SayHelloWebviewTest from ellipse IDE
    10. always fail when i try to do: String html = driver.getPageSource(); or WebElement text = driver.findElement(By.name("Data"))

    above steps works fine on testing selendroid-test-app. is there anything i miss? can you pls help. thanks in advance for your help.

    opened by popwich 32
  • sendKeys() not working in username/password editText fields

    sendKeys() not working in username/password editText fields

    On my application login page, sendKeys() fails to type in the username/password fields. A screenshot of the inspector layout of the login page is attached (really wish github allowed you to upload other files so I could attach the app package). loginpage

    Also, not sure if this helps but I played around with robotium a while back and I had the same issue with their typeText() method, but their enterText() method worked fine.

    Is there a work around for this issue? In the interim I've written a little method that uses chimpchat to type in the username/password field but I'd like to get rid of that work around if possible.

    Appreciate any info/help!

    opened by baclark77 32
  • Selendroid + Protractor:

    Selendroid + Protractor: "The requested command is currently not yet supported"

    Hi!

    I am trying to get selendroid to work together with protractor so I can get some mobile automation going. However I ran into the following issue (after spending tons of time trying stuff out because the docs are really sparse in both projects :/ )

    Using the selenium server at http://localhost:5555/wd/hub
    
    [...]\protractor\node_modules\selenium-webdriver\lib\webdriver\promise.js:1549
          throw error;
                ^
    UnknownCommandError: The requested command is currently not yet supported by selendroid.
        at new bot.Error ([...]\protractor\node_modules\selenium-webdriver\lib\atoms\error.js:109:18)
        at Object.bot.response.checkResponse ([...]\protractor\node_modules\selenium-webdriver\lib\atoms\respo
    nse.js:106:9)
        at [...]\protractor\node_modules\selenium-webdriver\lib\webdriver\webdriver.js:276:20
        at [...]\protractor\node_modules\selenium-webdriver\lib\goog\base.js:1178:15
        at webdriver.promise.ControlFlow.runInNewFrame_ ([...]\protractor\node_modules\selenium-webdriver\lib\
    webdriver\promise.js:1445:20)
        at notify ([...]\protractor\node_modules\selenium-webdriver\lib\webdriver\promise.js:328:12)
        at notifyAll ([...]\protractor\node_modules\selenium-webdriver\lib\webdriver\promise.js:297:7)
        at fulfill ([...]\protractor\node_modules\selenium-webdriver\lib\webdriver\promise.js:402:7)
        at [...]\protractor\node_modules\selenium-webdriver\lib\webdriver\promise.js:1312:10
        at [...]\protractor\node_modules\selenium-webdriver\lib\goog\base.js:1178:15
    ==== async task ====
    WebDriver.manage().timeouts().setScriptTimeout(11000)
        at webdriver.WebDriver.schedule ([...]\protractor\node_modules\selenium-webdriver\lib\webdriver\webdri
    ver.js:267:15)
        at webdriver.WebDriver.Timeouts.setScriptTimeout ([...]\protractor\node_modules\selenium-webdriver\lib
    \webdriver\webdriver.js:1149:23)
        at [...]\protractor\lib\runner.js:260:32
        at [...]\protractor\node_modules\selenium-webdriver\lib\goog\base.js:1178:15
        at webdriver.promise.ControlFlow.runInNewFrame_ ([...]\protractor\node_modules\selenium-webdriver\lib\
    webdriver\promise.js:1445:20)
        at notify ([...]\protractor\node_modules\selenium-webdriver\lib\webdriver\promise.js:328:12)
        at notifyAll ([...]\protractor\node_modules\selenium-webdriver\lib\webdriver\promise.js:297:7)
        at fulfill ([...]\protractor\node_modules\selenium-webdriver\lib\webdriver\promise.js:402:7)
        at [...]\protractor\node_modules\selenium-webdriver\lib\webdriver\promise.js:1312:10
    

    which comes from selendroid (just that the formatting there is non-existent). My config looks like this:

    exports.config = {
      seleniumAddress: 'http://localhost:5555/wd/hub',
    
      capabilities: {
        'browserName': 'android',
        'platform': 'selendroid'
      },
    
      specs: ['example_spec.js'],
    
      jasmineNodeOpts: {
        showColors: true,
        defaultTimeoutInterval: 30000
      }
    };
    

    if you need the example_spec I can also attach that but the error message would suggest that the error happens way earlier.

    Thx for any input in advance (maybe I am "just holding it wrong" ;)) best regards :)

    enhancement 
    opened by FrankyBoy 29
  • Command 'aapt' was not found in the android SDK

    Command 'aapt' was not found in the android SDK

    cmd window

    Hi Everyone,

    I am facing this issue again. When I made the setup ready and run the Jar file: "java -jar selendroid-standalone-0.7.0-with-dependencies.jar" I am getting the issue as shown below: INFO: ################# Selendroid ################# Jan 06, 2014 11:16:06 PM io.selendroid.SelendroidLauncher lauchServer INFO: Starting selendroid-server port 5555 Jan 06, 2014 11:16:06 PM io.selendroid.SelendroidLauncher lauchServer SEVER: Selendroid was not able to interact with the Android SDK: Command 'aapt' was not found inside the Android SDK. Please update to the latest development tools and try again.

    Please help me out on this.

    I have the aapt file inside the build-tools already.

    please find the attachment "cmd window" for further reference.

    opened by nmaddula 26
  • Cannot run Cordova hybrid app.

    Cannot run Cordova hybrid app.

    I get this error as soon as I do a 'view source' or find element within a Webview. There is some sort of conflict between Cordova and Selendroid WebDriver classes.

    E/SELENDROID(  952): io.selendroid.server.model.SelendroidWebDriver$4#run:354 - An error occured while configuring the web view
    E/SELENDROID(  952): java.lang.ClassCastException: io.selendroid.server.model.SelendroidWebDriver$SelendroidWebChromeClient cannot be cast to org.apache.cordova.CordovaChromeClient
    E/SELENDROID(  952):    at org.apache.cordova.CordovaWebView.setWebChromeClient(CordovaWebView.java:316)
    E/SELENDROID(  952):    at io.selendroid.server.model.SelendroidWebDriver$4.run(SelendroidWebDriver.java:331)
    E/SELENDROID(  952):    at android.os.Handler.handleCallback(Handler.java:615)
    E/SELENDROID(  952):    at android.os.Handler.dispatchMessage(Handler.java:92)
    E/SELENDROID(  952):    at android.os.Looper.loop(Looper.java:137)
    E/SELENDROID(  952):    at android.app.ActivityThread.main(ActivityThread.java:4745)
    E/SELENDROID(  952):    at java.lang.reflect.Method.invokeNative(Native Method)
    E/SELENDROID(  952):    at java.lang.reflect.Method.invoke(Method.java:511)
    E/SELENDROID(  952):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
    E/SELENDROID(  952):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
    E/SELENDROID(  952):    at dalvik.system.NativeStart.main(Native Method)
    I/dalvikvm-heap(  952): Grow heap (frag case) to 8.687MB for 143314-byte allocation
    D/AndroidRuntime(  952): Shutting down VM
    E/SEL
    

    This can be reproduced this way:

    1/ generate the app

    npm install -g cordova
    cordova create helloworld com.example.hello
    cd helloworld
    cordova platform add android
    cordova build android
    

    The generated app is /helloworld/platforms/android/ant-build/CordovaApp-debug.apk

    2/ start Selendroid server

    java -jar selendroid-standalone-0.12.0-with-dependencies.jar -app <PATH>/helloworld/platforms/android/ant-build/CordovaApp-debug.apk
    

    3/ run test:

    • init app
    • switch_to WEBVIEW_0
    • get page source

    wd.js gist here: https://gist.github.com/sebv/ad538e1db3d6a479f847

    client output:

     > CALL init({"aut":"com.example.hello:0.0.1"})
     > POST /session {"desiredCapabilities":{"deviceName":"selendroid","aut":"com.example.hello:0.0.1"}}
    
    Driving the web on session: c5a78f00-ba52-1268-8c30-25127f45dbb4
    
     > RESPONSE init({"aut":"com.example.hello:0.0.1"}) "c5a78f00-ba52-1268-8c30-25127f45dbb4",{"platform":"ANY","deviceName":"selendroid","aut":"com.example.hello:0.0.1"}
     > CALL windowHandles()
     > GET /session/:sessionID/window_handles
     > RESPONSE windowHandles() ["NATIVE_APP","WEBVIEW_0"]
     > CALL window("WEBVIEW_0")
     > POST /session/:sessionID/window {"name":"WEBVIEW_0"}
     > RESPONSE window("WEBVIEW_0")
     > CALL source()
     > GET /session/:sessionID/source
    
    /Users/baba/Documents/Work/selendroid-hack/node_modules/wd/node_modules/q/q.js:126
                        throw e;
                              ^
    Error: [source()] Error response status: 13, , UnknownError - An unknown server-side error occurred while processing the command. Selenium error: Unexpected error communicating with selendroid server on the device
    
    opened by sebv 25
  • Error occurred while starting selendroid-server on the device

    Error occurred while starting selendroid-server on the device

    Afternoon,

    I have been attempting to get Selendroid to work with our own APK after successfully getting it to work with the selendroid-test-app through Eclipse.

    At one point today I managed to get it to actually install the app onto the phone but then it would error. Since that point I have experimented some more and cannot seem to even get it that far.

    The log from the selendroid server after the server has started is as follows:

    May 28, 2014 3:06:18 PM io.selendroid.server.handler.CreateSessionHandler handle
    INFO: new session command with capabilities: {"desiredCapabilities": {
      "aut": "com.qtx.mtk:1.1",
      "emulator": false
    }}
    May 28, 2014 3:06:18 PM io.selendroid.server.model.DeviceStore findAndroidDevice
    INFO: Evaluating if this device is a match for this session: HardwareDevice [serial=04dbf5f15bdc44e7, model=Nexus 4, targetVersion=ANDROID19]
    May 28, 2014 3:06:18 PM io.selendroid.io.ShellCommand exec
    INFO: executing command: /Users/ak/Testing/adt-bundle-mac-x86_64-20140321/sdk/platform-tools/adb -s 04dbf5f15bdc44e7 shell pm list packages com.qtx.mtk
    May 28, 2014 3:06:18 PM io.selendroid.io.ShellCommand exec
    INFO: executing command: /Users/ak/Testing/adt-bundle-mac-x86_64-20140321/sdk/platform-tools/adb -s 04dbf5f15bdc44e7 install -r /Users/ak/Testing/Selendroid/resigned-qtx.apk
    May 28, 2014 3:06:24 PM io.selendroid.io.ShellCommand exec
    INFO: executing command: /Users/ak/Testing/adt-bundle-mac-x86_64-20140321/sdk/platform-tools/adb -s 04dbf5f15bdc44e7 shell pm list packages io.selendroid.com.qtx.mtk
    May 28, 2014 3:06:25 PM io.selendroid.builder.SelendroidServerBuilder createSelendroidServer
    INFO: create SelendroidServer for apk: /Users/ak/Testing/Selendroid/resigned-qtx.apk
    May 28, 2014 3:06:25 PM io.selendroid.builder.SelendroidServerBuilder init
    INFO: Creating customized Selendroid-server: /var/folders/ht/3rht99vn7bx7rbhqs0hnbrrw0000gn/T/selendroid-server5102260972452353625.apk
    May 28, 2014 3:06:25 PM io.selendroid.io.ShellCommand exec
    INFO: executing command: /Users/ak/Testing/adt-bundle-mac-x86_64-20140321/sdk/build-tools/android-4.4.2/aapt remove /var/folders/ht/3rht99vn7bx7rbhqs0hnbrrw0000gn/T/selendroid-server5102260972452353625.apk META-INF/CERT.RSA
    May 28, 2014 3:06:25 PM io.selendroid.io.ShellCommand exec
    INFO: executing command: /Users/ak/Testing/adt-bundle-mac-x86_64-20140321/sdk/build-tools/android-4.4.2/aapt remove /var/folders/ht/3rht99vn7bx7rbhqs0hnbrrw0000gn/T/selendroid-server5102260972452353625.apk META-INF/CERT.SF
    May 28, 2014 3:06:25 PM io.selendroid.io.ShellCommand exec
    INFO: executing command: /Users/ak/Testing/adt-bundle-mac-x86_64-20140321/sdk/build-tools/android-4.4.2/aapt remove /var/folders/ht/3rht99vn7bx7rbhqs0hnbrrw0000gn/T/selendroid-server5102260972452353625.apk AndroidManifest.xml
    May 28, 2014 3:06:25 PM io.selendroid.builder.SelendroidServerBuilder createAndAddCustomizedAndroidManifestToSelendroidServer
    INFO: Adding target package 'com.qtx.mtk' to /var/folders/ht/3rht99vn7bx7rbhqs0hnbrrw0000gn/T/com.qtx.mtk1401285985772/AndroidManifest.xml
    May 28, 2014 3:06:25 PM io.selendroid.builder.SelendroidServerBuilder createAndAddCustomizedAndroidManifestToSelendroidServer
    INFO: 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.10.0" package="io.selendroid.com.qtx.mtk">
    
        <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>
    
    May 28, 2014 3:06:25 PM io.selendroid.io.ShellCommand exec
    INFO: executing command: /Users/ak/Testing/adt-bundle-mac-x86_64-20140321/sdk/build-tools/android-4.4.2/aapt package -M /var/folders/ht/3rht99vn7bx7rbhqs0hnbrrw0000gn/T/com.qtx.mtk1401285985772/AndroidManifest.xml -I /Users/ak/Testing/adt-bundle-mac-x86_64-20140321/sdk/platforms/android-19/android.jar -F /var/folders/ht/3rht99vn7bx7rbhqs0hnbrrw0000gn/T/com.qtx.mtk1401285985772/manifest.apk -f
    May 28, 2014 3:06:25 PM io.selendroid.builder.SelendroidServerBuilder createAndAddCustomizedAndroidManifestToSelendroidServer
    INFO: 
    May 28, 2014 3:06:26 PM io.selendroid.builder.SelendroidServerBuilder createAndAddCustomizedAndroidManifestToSelendroidServer
    INFO: file: /var/folders/ht/3rht99vn7bx7rbhqs0hnbrrw0000gn/T/com.qtx.mtk1401285985772selendroid-server.apk
    May 28, 2014 3:06:26 PM io.selendroid.io.ShellCommand exec
    INFO: executing command: /Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home/bin/jarsigner -sigalg MD5withRSA -digestalg SHA1 -signedjar /var/folders/ht/3rht99vn7bx7rbhqs0hnbrrw0000gn/T/selendroid-server-com.qtx.mtk-0.10.0.apk -storepass android -keystore /Users/ak/.android/debug.keystore /var/folders/ht/3rht99vn7bx7rbhqs0hnbrrw0000gn/T/com.qtx.mtk1401285985772selendroid-server.apk androiddebugkey
    May 28, 2014 3:06:26 PM io.selendroid.builder.SelendroidServerBuilder signTestServer
    INFO: App signing output: jar signed.
    
    Warning: 
    No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2041-08-22) or after any future revocation date.
    
    May 28, 2014 3:06:26 PM io.selendroid.builder.SelendroidServerBuilder signTestServer
    INFO: The app has been signed: /var/folders/ht/3rht99vn7bx7rbhqs0hnbrrw0000gn/T/selendroid-server-com.qtx.mtk-0.10.0.apk
    May 28, 2014 3:06:26 PM io.selendroid.io.ShellCommand exec
    INFO: executing command: /Users/ak/Testing/adt-bundle-mac-x86_64-20140321/sdk/platform-tools/adb -s 04dbf5f15bdc44e7 install -r /var/folders/ht/3rht99vn7bx7rbhqs0hnbrrw0000gn/T/selendroid-server-com.qtx.mtk-0.10.0.apk
    running command: adb shell setprop log.tag.SELENDROID ERROR
    May 28, 2014 3:06:30 PM io.selendroid.io.ShellCommand exec
    INFO: executing command: /Users/ak/Testing/adt-bundle-mac-x86_64-20140321/sdk/platform-tools/adb -s 04dbf5f15bdc44e7 shell setprop log.tag.SELENDROID ERROR
    May 28, 2014 3:06:30 PM io.selendroid.io.ShellCommand exec
    INFO: executing command: /Users/ak/Testing/adt-bundle-mac-x86_64-20140321/sdk/platform-tools/adb -s 04dbf5f15bdc44e7 shell am instrument -e main_activity qtx.mtk.droid.SplashScreen -e server_port 8080 io.selendroid.com.qtx.mtk/io.selendroid.ServerInstrumentation
    May 28, 2014 3:06:30 PM io.selendroid.io.ShellCommand exec
    INFO: executing command: /Users/ak/Testing/adt-bundle-mac-x86_64-20140321/sdk/platform-tools/adb -s 04dbf5f15bdc44e7 shell am instrument -w -e main_activity qtx.mtk.droid.SplashScreen -e server_port 8080 io.selendroid.com.qtx.mtk/io.selendroid.ServerInstrumentation
    May 28, 2014 3:06:31 PM io.selendroid.server.handler.CreateSessionHandler handle
    SEVERE: Error while creating new session: Error occurred while starting selendroid-server on the device
    io.selendroid.exceptions.SelendroidException: Error occurred while starting selendroid-server on the device
        at io.selendroid.android.impl.AbstractDevice.startSelendroid(AbstractDevice.java:235)
        at io.selendroid.server.model.SelendroidStandaloneDriver.createNewTestSession(SelendroidStandaloneDriver.java:290)
        at io.selendroid.server.handler.CreateSessionHandler.handle(CreateSessionHandler.java:42)
        at io.selendroid.server.SelendroidServlet.handleRequest(SelendroidServlet.java:142)
        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.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.Throwable: android.util.AndroidException: INSTRUMENTATION_FAILED: io.selendroid.com.qtx.mtk/io.selendroid.ServerInstrumentation
        at com.android.commands.am.Am.runInstrument(Am.java:865)
        at com.android.commands.am.Am.onRun(Am.java:282)
        at com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
        at com.android.commands.am.Am.main(Am.java:76)
        at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
        at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:243)
        at dalvik.system.NativeStart.main(Native Method)
    

    Details:

    INSTRUMENTATION_STATUS: id=ActivityManagerService
    INSTRUMENTATION_STATUS: Error=Unable to find instrumentation target package: com.qtx.mtk
    INSTRUMENTATION_STATUS_CODE: -1
    android.util.AndroidException: INSTRUMENTATION_FAILED: io.selendroid.com.qtx.mtk/io.selendroid.ServerInstrumentation
        at com.android.commands.am.Am.runInstrument(Am.java:865)
        at com.android.commands.am.Am.onRun(Am.java:282)
        at com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
        at com.android.commands.am.Am.main(Am.java:76)
        at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
        at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:243)
        at dalvik.system.NativeStart.main(Native Method)
    
        ... 20 more
    

    At the same time I have been tailing the logcat output and the first sign of trouble appears to happen when I see:

    W/ActivityManager(  638): No content provider found for permission revoke: file:///data/local/tmp/resigned-qtx.apk
    

    Let me know what I could be missing here to get this moving forward.

    Thanks!

    enhancement 
    opened by antonydootrix 22
  • Error when trying to start standalone server with APK

    Error when trying to start standalone server with APK

    A 'Severe' error occurs when the standalone server tries to resign the APK file. No details of the error are displayed. The output is attached below.

    I've verified that the ANDROID_HOME environment variable is set.

    Jun 5, 2013 11:09:46 AM io.selendroid.SelendroidLauncher main INFO: ################# Selendroid ################# Jun 5, 2013 11:09:46 AM io.selendroid.SelendroidLauncher lauchSelendroid INFO: Starting selendroid-server port 5555 Jun 5, 2013 11:09:46 AM io.selendroid.io.ShellCommand exec INFO: executing command: /usr/libexec/java_home -v 1.7/bin/jarsigner -sigalg MD5withRSA -digestalg SHA1 -signedjar /Users/scb/Downloads/resigned-HelloWorld.apk -storepass android -keystore /Users/scb/.android/debug.keystore /Users/scb/Downloads/HelloWorld.apk androiddebugkey Jun 5, 2013 11:09:46 AM io.selendroid.SelendroidLauncher lauchSelendroid SEVERE: Error occured while building server: An error occured while resigning the app 'HelloWorld.apk'. Build info: version: 'unknown', revision: 'unknown', time: 'unknown' System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.8.3', java.version: '1.6.0_45' Driver info: driver.version: SelendroidStandaloneDriver

    opened by subeeshb 21
  • io.selendroid.exceptions.NoSuchElementException: Element was not found.

    io.selendroid.exceptions.NoSuchElementException: Element was not found.

    sf1 inspector Hello , I am using selendroid to run the test on salesforce1 apk file. The salesforce app successfully launching but its throwing an exception while entering the 'User Name' that "io.selendroid.exceptions.NoSuchElementException: Element was not found." But the element i have used is correct since it was located using selendroid inspector. code is "WebElement element = driver.findElement(By.id("username")); ". I have successfully executed selendroid test app. But getting problem in salesforce1 login page. Please help since I am new to selendroid!

    opened by nithinshetty 20
  • Selendroid 0.11.0 makes three orphaned processes per mobile web test.

    Selendroid 0.11.0 makes three orphaned processes per mobile web test.

    Selendroid 0.11.0 makes three orphaned processes per mobile web test. After sevral mobile web testing, device became unstable. (due to the memory exhaust caused by orphaned processes?).

    I checked following platform and got following result

    • Android 4.0.4, 4.1.2 and 4.3: child processes are orphaned after test.
    • Android 4.4.2: Seems no probrem. No orphaned processes are left.

    This behavior introduced between 08ccefa955c3198ac0afd412158e0ff76b5c01fe and 08ccefa955c3198ac0afd412158e0ff76b5c01fe

    How To Reproduce:

    1. run 0.11.0 release of selendroid-standalone server for mobile web testing:
      java -jar selendroid-standalone-0.11.0-with-dependencies.jar
      
    2. Run mobile web test as you like. While running test, io.selendroid.androiddriver processes are like blow:
      % adb shell ps | grep selendroid
      u0_a295   4706  218   560536 91624 ffffffff 00000000 S io.selendroid.androiddriver
      u0_a295   4742  4706  515456 41412 ffffffff 00000000 S io.selendroid.androiddriver
      u0_a295   4743  4706  515456 41548 ffffffff 00000000 S io.selendroid.androiddriver
      u0_a295   4746  4706  516224 42488 ffffffff 00000000 S io.selendroid.androiddriver
      
    3. After finishing mobile web test. there are 3 chile processes orphaned:
      adb shell ps | grep selendroid
      u0_a295   4742  1     515456 41412 ffffffff 00000000 S io.selendroid.androiddriver
      u0_a295   4743  1     515456 41548 ffffffff 00000000 S io.selendroid.androiddriver
      u0_a295   4746  1     516224 42488 ffffffff 00000000 S io.selendroid.androiddriver
      
    4. If you run another mobile web test, you will get three more orphaned processes.
    opened by koichirok 20
  • Cannot start Selendroid server

    Cannot start Selendroid server

    $JAVA_HOME = /usr/lib/jvm/java-8-oracle $ANDROID_HOME = /home/sumit/Android/Sdk

    When the Run the below mentioned command :-> java -jar selendroid-standalone-0.17ith-dependencies.jar -app selendroid-test-app-0.17.0.apk

    Output:

    INFO: Adding: HardwareDevice [serial=FQJZQG8SAEHAZS5S, model=P7 Max, targetVersion=ANDROID23, apiTargetType=google] May 19, 2017 8:04:43 AM io.selendroid.standalone.android.impl.DefaultDeviceManager initializeAdbConnection INFO: my devices: null May 19, 2017 8:04:43 AM io.selendroid.standalone.io.ShellCommand exec INFO: Executing shell command: /home/sumit/Android/Sdk/tools/android list avds May 19, 2017 8:04:43 AM io.selendroid.standalone.io.ShellCommand exec SEVERE: Error executing command: /home/sumit/Android/Sdk/tools/android list avds org.apache.commons.exec.ExecuteException: Process exited with an error: 2 (Exit value: 2) at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147) at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49) at io.selendroid.standalone.android.impl.DefaultAndroidEmulator.listAvailableAvds(DefaultAndroidEmulator.java:152) at io.selendroid.standalone.server.model.DeviceStore.initAndroidDevices(DeviceStore.java:124) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initAndroidDevices(SelendroidStandaloneDriver.java:185) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:95) at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63) at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52) at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65) at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

    May 19, 2017 8:04:43 AM io.selendroid.standalone.SelendroidLauncher launchServer SEVERE: Error building server: io.selendroid.standalone.exceptions.ShellCommandException: Error executing shell command: /home/sumit/Android/Sdk/tools/android list avds Exception in thread "main" java.lang.RuntimeException: io.selendroid.standalone.exceptions.AndroidDeviceException: io.selendroid.standalone.exceptions.ShellCommandException: Error executing shell command: /home/sumit/Android/Sdk/tools/android list avds at com.google.common.base.Throwables.propagate(Throwables.java:160) at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:75) at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117) Caused by: io.selendroid.standalone.exceptions.AndroidDeviceException: io.selendroid.standalone.exceptions.ShellCommandException: Error executing shell command: /home/sumit/Android/Sdk/tools/android list avds at io.selendroid.standalone.android.impl.DefaultAndroidEmulator.listAvailableAvds(DefaultAndroidEmulator.java:154) at io.selendroid.standalone.server.model.DeviceStore.initAndroidDevices(DeviceStore.java:124) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initAndroidDevices(SelendroidStandaloneDriver.java:185) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:95) at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63) at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52) at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65) ... 1 more Caused by: io.selendroid.standalone.exceptions.ShellCommandException: Error executing shell command: /home/sumit/Android/Sdk/tools/android list avds at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:56) at io.selendroid.standalone.android.impl.DefaultAndroidEmulator.listAvailableAvds(DefaultAndroidEmulator.java:152) ... 7 more Caused by: io.selendroid.standalone.exceptions.ShellCommandException: ************************************************************************* The "android" command is deprecated. For manual SDK, AVD, and project management, please use Android Studio. For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager


    Invalid or unsupported command "list avds"

    Supported commands are: android list target android list avd android list device android create avd android move avd android delete avd android list sdk android update sdk

    ... 9 more
    
    opened by SumitPugalia 19
  • Incompatible with SDK Tools 25, command

    Incompatible with SDK Tools 25, command "list avds" does not exist

    Hello,

    I don't know about previous versions, but in Version 25, to list all available avds, you need to use "android list avd" instead of "android list avds".

    When i type in

    java -jar selendroid.jar
    

    I get the following output

    Mõr 31, 2017 1:45:31 PM io.selendroid.standalone.SelendroidLauncher main
    INFORMATION: ################# Selendroid #################
    Mõr 31, 2017 1:45:31 PM io.selendroid.standalone.SelendroidLauncher main
    INFORMATION: ################# Configuration in use #################
    Mõr 31, 2017 1:45:31 PM io.selendroid.standalone.SelendroidLauncher main
    INFORMATION: io.selendroid.standalone.SelendroidConfiguration@3b07d329[
      port=4444
      timeoutEmulatorStart=300000
      supportedApps=[]
      verbose=false
      emulatorPort=5560
      deviceScreenshot=false
      selendroidServerPort=8080
      keystore=<null>
      keystorePassword=<null>
      keystoreAlias=<null>
      emulatorOptions=<null>
      keepEmulator=false
      registrationUrl=<null>
      proxy=<null>
      serverHost=<null>
      keepAdbAlive=false
      maxSession=5
      maxInstances=5
      registerCycle=0
      noWebViewApp=false
      noClearData=false
      sessionTimeoutSeconds=1800
      forceReinstall=false
      logLevel=ERROR
      deviceLog=true
      serverStartTimeout=20000
      printHelp=false
      serverStartRetries=5
      folder=<null>
      deleteTmpFiles=true
    ]
    Mõr 31, 2017 1:45:31 PM io.selendroid.standalone.SelendroidLauncher launchServer
    INFORMATION: Starting Selendroid standalone on port 4444
    Mõr 31, 2017 1:45:32 PM io.selendroid.standalone.io.ShellCommand exec
    INFORMATION: Executing shell command: C:\Users\bergau\AppData\Local\Android\sdk\build-tools\25.0.2\aapt.exe remove C:\Users\bergau\AppData\Local\Temp\android
    -driver377826651231336737.apk META-INF/MANIFEST.MF
    Mõr 31, 2017 1:45:32 PM io.selendroid.standalone.io.ShellCommand exec
    INFORMATION: Shell command output
    -->
    
    <--
    Mõr 31, 2017 1:45:32 PM io.selendroid.standalone.io.ShellCommand exec
    INFORMATION: Executing shell command: C:\Users\bergau\AppData\Local\Android\sdk\build-tools\25.0.2\aapt.exe remove C:\Users\bergau\AppData\Local\Temp\android
    -driver377826651231336737.apk META-INF/CERT.RSA
    Mõr 31, 2017 1:45:32 PM io.selendroid.standalone.io.ShellCommand exec
    INFORMATION: Shell command output
    -->
    
    <--
    Mõr 31, 2017 1:45:32 PM io.selendroid.standalone.io.ShellCommand exec
    INFORMATION: Executing shell command: C:\Users\bergau\AppData\Local\Android\sdk\build-tools\25.0.2\aapt.exe remove C:\Users\bergau\AppData\Local\Temp\android
    -driver377826651231336737.apk META-INF/CERT.SF
    Mõr 31, 2017 1:45:32 PM io.selendroid.standalone.io.ShellCommand exec
    INFORMATION: Shell command output
    -->
    
    <--
    Mõr 31, 2017 1:45:32 PM io.selendroid.standalone.io.ShellCommand exec
    INFORMATION: Executing shell command: C:\Users\bergau\AppData\Local\Android\sdk\build-tools\25.0.2\aapt.exe remove C:\Users\bergau\AppData\Local\Temp\android
    -driver377826651231336737.apk META-INF/ANDROIDD.SF
    Mõr 31, 2017 1:45:32 PM io.selendroid.standalone.io.ShellCommand exec
    SCHWERWIEGEND: Error executing command: C:\Users\bergau\AppData\Local\Android\sdk\build-tools\25.0.2\aapt.exe remove C:\Users\bergau\AppData\Local\Temp\andro
    id-driver377826651231336737.apk META-INF/ANDROIDD.SF
    org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
    		at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
    		at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
    		at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
    		at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
    		at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112)
    		at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133)
    		at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:145)
    		at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:172)
    		at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.<init>(SelendroidStandaloneDriver.java:94)
    		at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
    		at io.selendroid.standalone.server.SelendroidStandaloneServer.<init>(SelendroidStandaloneServer.java:52)
    		at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
    		at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)
    
    Mõr 31, 2017 1:45:32 PM io.selendroid.standalone.io.ShellCommand exec
    INFORMATION: Executing shell command: C:\Users\bergau\AppData\Local\Android\sdk\build-tools\25.0.2\aapt.exe remove C:\Users\bergau\AppData\Local\Temp\android
    -driver377826651231336737.apk META-INF/ANDROIDD.RSA
    Mõr 31, 2017 1:45:32 PM io.selendroid.standalone.io.ShellCommand exec
    SCHWERWIEGEND: Error executing command: C:\Users\bergau\AppData\Local\Android\sdk\build-tools\25.0.2\aapt.exe remove C:\Users\bergau\AppData\Local\Temp\andro
    id-driver377826651231336737.apk META-INF/ANDROIDD.RSA
    org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
    		at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
    		at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
    		at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
    		at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
    		at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112)
    		at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133)
    		at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:146)
    		at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:172)
    		at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.<init>(SelendroidStandaloneDriver.java:94)
    		at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
    		at io.selendroid.standalone.server.SelendroidStandaloneServer.<init>(SelendroidStandaloneServer.java:52)
    		at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
    		at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)
    
    Mõr 31, 2017 1:45:32 PM io.selendroid.standalone.io.ShellCommand exec
    INFORMATION: Executing shell command: C:\Users\bergau\AppData\Local\Android\sdk\build-tools\25.0.2\aapt.exe remove C:\Users\bergau\AppData\Local\Temp\android
    -driver377826651231336737.apk META-INF/NDKEYSTO.SF
    Mõr 31, 2017 1:45:32 PM io.selendroid.standalone.io.ShellCommand exec
    SCHWERWIEGEND: Error executing command: C:\Users\bergau\AppData\Local\Android\sdk\build-tools\25.0.2\aapt.exe remove C:\Users\bergau\AppData\Local\Temp\andro
    id-driver377826651231336737.apk META-INF/NDKEYSTO.SF
    org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
    		at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
    		at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
    		at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
    		at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
    		at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112)
    		at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133)
    		at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:147)
    		at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:172)
    		at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.<init>(SelendroidStandaloneDriver.java:94)
    		at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
    		at io.selendroid.standalone.server.SelendroidStandaloneServer.<init>(SelendroidStandaloneServer.java:52)
    		at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
    		at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)
    
    Mõr 31, 2017 1:45:32 PM io.selendroid.standalone.io.ShellCommand exec
    INFORMATION: Executing shell command: C:\Users\bergau\AppData\Local\Android\sdk\build-tools\25.0.2\aapt.exe remove C:\Users\bergau\AppData\Local\Temp\android
    -driver377826651231336737.apk META-INF/NDKEYSTO.RSA
    Mõr 31, 2017 1:45:32 PM io.selendroid.standalone.io.ShellCommand exec
    SCHWERWIEGEND: Error executing command: C:\Users\bergau\AppData\Local\Android\sdk\build-tools\25.0.2\aapt.exe remove C:\Users\bergau\AppData\Local\Temp\andro
    id-driver377826651231336737.apk META-INF/NDKEYSTO.RSA
    org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
    		at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
    		at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
    		at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
    		at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
    		at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112)
    		at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133)
    		at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:148)
    		at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:172)
    		at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.<init>(SelendroidStandaloneDriver.java:94)
    		at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
    		at io.selendroid.standalone.server.SelendroidStandaloneServer.<init>(SelendroidStandaloneServer.java:52)
    		at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
    		at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)
    
    Mõr 31, 2017 1:45:32 PM io.selendroid.standalone.io.ShellCommand exec
    INFORMATION: Executing shell command: C:\Program Files\Java\jdk1.8.0_111\bin\jarsigner.exe -sigalg MD5withRSA -digestalg SHA1 -signedjar C:\Users\bergau\AppD
    ata\Local\Temp\resigned-android-driver377826651231336737.apk -storepass android -keystore C:\Users\bergau\.android\debug.keystore C:\Users\bergau\AppData\Loc
    al\Temp\android-driver377826651231336737.apk androiddebugkey
    Mõr 31, 2017 1:45:33 PM io.selendroid.standalone.io.ShellCommand exec
    INFORMATION: Shell command output
    -->
    jar signed.
    
    Warning:
    No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate
    's expiration date (2047-03-23) or after any future revocation date.
    <--
    Mõr 31, 2017 1:45:33 PM io.selendroid.standalone.builder.SelendroidServerBuilder signTestServer
    INFORMATION: App signing output: jar signed.
    
    Warning:
    No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate
    's expiration date (2047-03-23) or after any future revocation date.
    Mõr 31, 2017 1:45:33 PM io.selendroid.standalone.builder.SelendroidServerBuilder signTestServer
    INFORMATION: The app has been signed: C:\Users\bergau\AppData\Local\Temp\resigned-android-driver377826651231336737.apk
    Mõr 31, 2017 1:45:35 PM io.selendroid.standalone.io.ShellCommand exec
    INFORMATION: Executing shell command: C:\Users\bergau\AppData\Local\Android\sdk\tools\android.bat list avds
    Mõr 31, 2017 1:45:36 PM io.selendroid.standalone.io.ShellCommand exec
    SCHWERWIEGEND: Error executing command: C:\Users\bergau\AppData\Local\Android\sdk\tools\android.bat list avds
    org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
    		at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
    		at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
    		at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
    		at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
    		at io.selendroid.standalone.android.impl.DefaultAndroidEmulator.listAvailableAvds(DefaultAndroidEmulator.java:152)
    		at io.selendroid.standalone.server.model.DeviceStore.initAndroidDevices(DeviceStore.java:124)
    		at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initAndroidDevices(SelendroidStandaloneDriver.java:185)
    		at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.<init>(SelendroidStandaloneDriver.java:95)
    		at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
    		at io.selendroid.standalone.server.SelendroidStandaloneServer.<init>(SelendroidStandaloneServer.java:52)
    		at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
    		at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)
    
    Mõr 31, 2017 1:45:36 PM io.selendroid.standalone.SelendroidLauncher launchServer
    SCHWERWIEGEND: Error building server: io.selendroid.standalone.exceptions.ShellCommandException: Error executing shell command: C:\Users\bergau\AppData\Local
    \Android\sdk\tools\android.bat list avds
    Exception in thread "main" java.lang.RuntimeException: io.selendroid.standalone.exceptions.AndroidDeviceException: io.selendroid.standalone.exceptions.ShellC
    ommandException: Error executing shell command: C:\Users\bergau\AppData\Local\Android\sdk\tools\android.bat list avds
    		at com.google.common.base.Throwables.propagate(Throwables.java:160)
    		at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:75)
    		at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)
    Caused by: io.selendroid.standalone.exceptions.AndroidDeviceException: io.selendroid.standalone.exceptions.ShellCommandException: Error executing shell comma
    nd: C:\Users\bergau\AppData\Local\Android\sdk\tools\android.bat list avds
    		at io.selendroid.standalone.android.impl.DefaultAndroidEmulator.listAvailableAvds(DefaultAndroidEmulator.java:154)
    		at io.selendroid.standalone.server.model.DeviceStore.initAndroidDevices(DeviceStore.java:124)
    		at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initAndroidDevices(SelendroidStandaloneDriver.java:185)
    		at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.<init>(SelendroidStandaloneDriver.java:95)
    		at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
    		at io.selendroid.standalone.server.SelendroidStandaloneServer.<init>(SelendroidStandaloneServer.java:52)
    		at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
    		... 1 more
    Caused by: io.selendroid.standalone.exceptions.ShellCommandException: Error executing shell command: C:\Users\bergau\AppData\Local\Android\sdk\tools\android.
    bat list avds
    		at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:56)
    		at io.selendroid.standalone.android.impl.DefaultAndroidEmulator.listAvailableAvds(DefaultAndroidEmulator.java:152)
    		... 7 more
    Caused by: io.selendroid.standalone.exceptions.ShellCommandException: **************************************************************************
    The "android" command is deprecated.
    For manual SDK, AVD, and project management, please use Android Studio.
    For command-line tools, use tools\bin\sdkmanager.bat
    and tools\bin\avdmanager.bat
    **************************************************************************
    
    Invalid or unsupported command "list avds"
    
    Supported commands are:
    android list target
    android list avd
    android list device
    android create avd
    android move avd
    android delete avd
    android list sdk
    android update sdk
    
    		... 9 more
    
    opened by cbergau 19
  • android gradle issue

    android gradle issue

    I encountered these issues and saw these posts on SOF but couldnt solve it

    Initially i got this error

    A problem occurred evaluating project ':android-driver'.
    > Failed to apply plugin 'com.android.application'.
       > Gradle version 2.2 is required. Current version is 6.8.
    

    Then, i got these after adding these from https://stackoverflow.com/questions/62919478/error-gradle-version-2-2-is-required-current-version-is-6-5-1

    buildscript {
        repositories {
            mavenCentral();
            jcenter();
            google();
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:4.1.0'
        }
    }
    

    The new error is:

    A problem occurred configuring project ':android-driver'.
    > Failed to notify project evaluation listener.
       > The "android" command is no longer included in the SDK. Any references to it (e.g. by third-party plugins) should be removed.
       > groovy.lang.GroovyRuntimeException: Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated{variantOutput=VariantOutputImpl(versionCode=property(java.lang.Integer, map(java.lang.Integer map(property(com.android.build.gradle.internal.manifest.ManifestData, map(com.android.build.gradle.internal.manifest.ManifestData map(property(org.gradle.api.file.RegularFile, fixed(class org.gradle.api.internal.file.DefaultFilePropertyFactory$FixedFile, C:\Users\Q Team\Desktop\selendroid-master\selendroid-master\android-driver\AndroidManifest.xml))) check-type()))) check-type())), versionName=property(java.lang.String, provider(class java.lang.String)), enabled=property(java.lang.Boolean, fixed(class java.lang.Boolean, true)), variantOutputConfiguration=VariantOutputConfigurationImpl(isUniversal=false, filters=[]), baseName=debug, fullName=debug, outputFileName=property(java.lang.String, fixed(class java.lang.String, android-driver-debug.apk)))} of type com.android.build.gradle.internal.api.ApkVariantOutputImpl.
    
    

    Could you please advise on the necessary changes to make ?

    opened by fatbringer 0
  • Windows cmd error

    Windows cmd error

    C:\Users\proon\Desktop\Programs>java -jar selendroid-standalone-0.17.0-with-dependencies.jar -app selendroid-test-app-0.17.0.apk May 13, 2022 2:40:27 PM io.selendroid.standalone.SelendroidLauncher main INFO: ################# Selendroid ################# May 13, 2022 2:40:27 PM io.selendroid.standalone.SelendroidLauncher main INFO: ################# Configuration in use ################# May 13, 2022 2:40:27 PM io.selendroid.standalone.SelendroidLauncher main INFO: io.selendroid.standalone.SelendroidConfiguration@484b61fc[ port=4444 timeoutEmulatorStart=300000 supportedApps=[selendroid-test-app-0.17.0.apk] verbose=false emulatorPort=5560 deviceScreenshot=false selendroidServerPort=8080 keystore= keystorePassword= keystoreAlias= emulatorOptions= keepEmulator=false registrationUrl= proxy= serverHost= keepAdbAlive=false maxSession=5 maxInstances=5 registerCycle=0 noWebViewApp=false noClearData=false sessionTimeoutSeconds=1800 forceReinstall=false logLevel=ERROR deviceLog=true serverStartTimeout=20000 printHelp=false serverStartRetries=5 folder= deleteTmpFiles=true ] May 13, 2022 2:40:27 PM io.selendroid.standalone.SelendroidLauncher launchServer INFO: Starting Selendroid standalone on port 4444 May 13, 2022 2:40:27 PM io.selendroid.standalone.io.ShellCommand exec INFO: Executing shell command: C:\Users\proon\AppData\Local\Android\Sdk\build-tools\32.0.0\aapt.exe remove C:\Users\proon\Desktop\Programs\selendroid-test-app-0.17.0.apk META-INF/MANIFEST.MF May 13, 2022 2:40:27 PM io.selendroid.standalone.io.ShellCommand exec SEVERE: Error executing command: C:\Users\proon\AppData\Local\Android\Sdk\build-tools\32.0.0\aapt.exe remove C:\Users\proon\Desktop\Programs\selendroid-test-app-0.17.0.apk META-INF/MANIFEST.MF org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147) at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49) at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112) at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133) at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:142) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94) at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63) at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52) at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65) at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

    May 13, 2022 2:40:27 PM io.selendroid.standalone.io.ShellCommand exec INFO: Executing shell command: C:\Users\proon\AppData\Local\Android\Sdk\build-tools\32.0.0\aapt.exe remove C:\Users\proon\Desktop\Programs\selendroid-test-app-0.17.0.apk META-INF/CERT.RSA May 13, 2022 2:40:27 PM io.selendroid.standalone.io.ShellCommand exec SEVERE: Error executing command: C:\Users\proon\AppData\Local\Android\Sdk\build-tools\32.0.0\aapt.exe remove C:\Users\proon\Desktop\Programs\selendroid-test-app-0.17.0.apk META-INF/CERT.RSA org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147) at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49) at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112) at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133) at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:143) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94) at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63) at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52) at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65) at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

    May 13, 2022 2:40:27 PM io.selendroid.standalone.io.ShellCommand exec INFO: Executing shell command: C:\Users\proon\AppData\Local\Android\Sdk\build-tools\32.0.0\aapt.exe remove C:\Users\proon\Desktop\Programs\selendroid-test-app-0.17.0.apk META-INF/CERT.SF May 13, 2022 2:40:27 PM io.selendroid.standalone.io.ShellCommand exec SEVERE: Error executing command: C:\Users\proon\AppData\Local\Android\Sdk\build-tools\32.0.0\aapt.exe remove C:\Users\proon\Desktop\Programs\selendroid-test-app-0.17.0.apk META-INF/CERT.SF org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147) at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49) at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112) at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133) at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:144) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94) at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63) at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52) at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65) at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

    May 13, 2022 2:40:27 PM io.selendroid.standalone.io.ShellCommand exec INFO: Executing shell command: C:\Users\proon\AppData\Local\Android\Sdk\build-tools\32.0.0\aapt.exe remove C:\Users\proon\Desktop\Programs\selendroid-test-app-0.17.0.apk META-INF/ANDROIDD.SF May 13, 2022 2:40:27 PM io.selendroid.standalone.io.ShellCommand exec SEVERE: Error executing command: C:\Users\proon\AppData\Local\Android\Sdk\build-tools\32.0.0\aapt.exe remove C:\Users\proon\Desktop\Programs\selendroid-test-app-0.17.0.apk META-INF/ANDROIDD.SF org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147) at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49) at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112) at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133) at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:145) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94) at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63) at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52) at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65) at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

    May 13, 2022 2:40:27 PM io.selendroid.standalone.io.ShellCommand exec INFO: Executing shell command: C:\Users\proon\AppData\Local\Android\Sdk\build-tools\32.0.0\aapt.exe remove C:\Users\proon\Desktop\Programs\selendroid-test-app-0.17.0.apk META-INF/ANDROIDD.RSA May 13, 2022 2:40:27 PM io.selendroid.standalone.io.ShellCommand exec SEVERE: Error executing command: C:\Users\proon\AppData\Local\Android\Sdk\build-tools\32.0.0\aapt.exe remove C:\Users\proon\Desktop\Programs\selendroid-test-app-0.17.0.apk META-INF/ANDROIDD.RSA org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147) at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49) at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112) at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133) at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:146) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94) at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63) at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52) at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65) at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

    May 13, 2022 2:40:27 PM io.selendroid.standalone.io.ShellCommand exec INFO: Executing shell command: C:\Users\proon\AppData\Local\Android\Sdk\build-tools\32.0.0\aapt.exe remove C:\Users\proon\Desktop\Programs\selendroid-test-app-0.17.0.apk META-INF/NDKEYSTO.SF May 13, 2022 2:40:27 PM io.selendroid.standalone.io.ShellCommand exec SEVERE: Error executing command: C:\Users\proon\AppData\Local\Android\Sdk\build-tools\32.0.0\aapt.exe remove C:\Users\proon\Desktop\Programs\selendroid-test-app-0.17.0.apk META-INF/NDKEYSTO.SF org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147) at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49) at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112) at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133) at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:147) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94) at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63) at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52) at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65) at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

    May 13, 2022 2:40:27 PM io.selendroid.standalone.io.ShellCommand exec INFO: Executing shell command: C:\Users\proon\AppData\Local\Android\Sdk\build-tools\32.0.0\aapt.exe remove C:\Users\proon\Desktop\Programs\selendroid-test-app-0.17.0.apk META-INF/NDKEYSTO.RSA May 13, 2022 2:40:28 PM io.selendroid.standalone.io.ShellCommand exec SEVERE: Error executing command: C:\Users\proon\AppData\Local\Android\Sdk\build-tools\32.0.0\aapt.exe remove C:\Users\proon\Desktop\Programs\selendroid-test-app-0.17.0.apk META-INF/NDKEYSTO.RSA org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147) at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49) at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112) at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133) at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:148) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94) at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63) at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52) at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65) at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

    May 13, 2022 2:40:28 PM io.selendroid.standalone.io.ShellCommand exec INFO: Executing shell command: C:\Program Files\Java\jdk-16.0.1\bin\jarsigner.exe -sigalg MD5withRSA -digestalg SHA1 -signedjar C:\Users\proon\Desktop\Programs\resigned-selendroid-test-app-0.17.0.apk -storepass android -keystore C:\Users\proon.android\debug.keystore C:\Users\proon\Desktop\Programs\selendroid-test-app-0.17.0.apk androiddebugkey May 13, 2022 2:40:28 PM io.selendroid.standalone.io.ShellCommand exec INFO: Shell command output --> jar signed.

    Warning: The signer's certificate is self-signed. The MD5withRSA algorithm specified for the -sigalg option is considered a security risk and is disabled. The SHA1 algorithm specified for the -digestalg option is considered a security risk. This algorithm will be disabled in a future update. <-- May 13, 2022 2:40:28 PM io.selendroid.standalone.builder.SelendroidServerBuilder signTestServer INFO: App signing output: jar signed.

    Warning: The signer's certificate is self-signed. The MD5withRSA algorithm specified for the -sigalg option is considered a security risk and is disabled. The SHA1 algorithm specified for the -digestalg option is considered a security risk. This algorithm will be disabled in a future update. May 13, 2022 2:40:28 PM io.selendroid.standalone.builder.SelendroidServerBuilder signTestServer INFO: The app has been signed: C:\Users\proon\Desktop\Programs\resigned-selendroid-test-app-0.17.0.apk May 13, 2022 2:40:28 PM io.selendroid.standalone.io.ShellCommand exec INFO: Executing shell command: C:\Users\proon\AppData\Local\Android\Sdk\build-tools\32.0.0\aapt.exe dump badging C:\Users\proon\Desktop\Programs\resigned-selendroid-test-app-0.17.0.apk May 13, 2022 2:40:28 PM io.selendroid.standalone.io.ShellCommand exec INFO: Shell command output --> package: name='io.selendroid.testapp' versionCode='1' versionName='0.17.0' platformBuildVersionName='4.1.2-1425332' sdkVersion:'10' uses-permission: name='android.permission.INTERNET' uses-permission: name='android.permission.CALL_PHONE' uses-permission: name='android.permission.WRITE_CALL_LOG' uses-permission: name='android.permission.READ_CALL_LOG' uses-permission: name='android.permission.WRITE_EXTERNAL_STORAGE' application-label:'selendroid-test-app' application-label-de:'selendroid-test-app' application-label-es:'selendroid-test-app' application-label-fr:'selendroid-test-app' application-label-it:'selendroid-test-app' application-icon-120:'res/drawable-ldpi-v4/icon.png' application-icon-160:'res/drawable-mdpi-v4/icon.png' application-icon-240:'res/drawable-hdpi-v4/icon.png' application: label='selendroid-test-app' icon='res/drawable-mdpi-v4/icon.png' application-debuggable launchable-activity: name='io.selendroid.testapp.HomeScreenActivity' label='' icon='' uses-permission: name='android.permission.READ_EXTERNAL_STORAGE' uses-implied-permission: name='android.permission.READ_EXTERNAL_STORAGE' reason='requested WRITE_EXTERNAL_STORAGE' feature-group: label='' uses-feature: name='android.hardware.faketouch' uses-implied-feature: name='android.hardware.faketouch' reason='default feature for all apps' uses-feature: name='android.hardware.telephony' uses-implied-feature: name='android.hardware.telephony' reason='requested a telephony permission' provides-component:'search' main other-activities other-services supports-screens: 'small' 'normal' 'large' 'xlarge' supports-any-density: 'true' locales: '----' 'de' 'es' 'fr' 'it' densities: '120' '160' '240' <-- May 13, 2022 2:40:28 PM io.selendroid.standalone.io.ShellCommand exec INFO: Executing shell command: C:\Users\proon\AppData\Local\Android\Sdk\build-tools\32.0.0\aapt.exe dump badging C:\Users\proon\Desktop\Programs\resigned-selendroid-test-app-0.17.0.apk May 13, 2022 2:40:28 PM io.selendroid.standalone.io.ShellCommand exec INFO: Shell command output --> package: name='io.selendroid.testapp' versionCode='1' versionName='0.17.0' platformBuildVersionName='4.1.2-1425332' sdkVersion:'10' uses-permission: name='android.permission.INTERNET' uses-permission: name='android.permission.CALL_PHONE' uses-permission: name='android.permission.WRITE_CALL_LOG' uses-permission: name='android.permission.READ_CALL_LOG' uses-permission: name='android.permission.WRITE_EXTERNAL_STORAGE' application-label:'selendroid-test-app' application-label-de:'selendroid-test-app' application-label-es:'selendroid-test-app' application-label-fr:'selendroid-test-app' application-label-it:'selendroid-test-app' application-icon-120:'res/drawable-ldpi-v4/icon.png' application-icon-160:'res/drawable-mdpi-v4/icon.png' application-icon-240:'res/drawable-hdpi-v4/icon.png' application: label='selendroid-test-app' icon='res/drawable-mdpi-v4/icon.png' application-debuggable launchable-activity: name='io.selendroid.testapp.HomeScreenActivity' label='' icon='' uses-permission: name='android.permission.READ_EXTERNAL_STORAGE' uses-implied-permission: name='android.permission.READ_EXTERNAL_STORAGE' reason='requested WRITE_EXTERNAL_STORAGE' feature-group: label='' uses-feature: name='android.hardware.faketouch' uses-implied-feature: name='android.hardware.faketouch' reason='default feature for all apps' uses-feature: name='android.hardware.telephony' uses-implied-feature: name='android.hardware.telephony' reason='requested a telephony permission' provides-component:'search' main other-activities other-services supports-screens: 'small' 'normal' 'large' 'xlarge' supports-any-density: 'true' locales: '----' 'de' 'es' 'fr' 'it' densities: '120' '160' '240' <-- May 13, 2022 2:40:28 PM io.selendroid.standalone.server.model.SelendroidStandaloneDriver addToAppsStore INFO: App io.selendroid.testapp:0.17.0 has been added to selendroid standalone server. May 13, 2022 2:40:28 PM io.selendroid.standalone.io.ShellCommand exec INFO: Executing shell command: C:\Users\proon\AppData\Local\Android\Sdk\build-tools\32.0.0\aapt.exe remove C:\Users\proon\AppData\Local\Temp\android-driver12739547967136922455.apk META-INF/MANIFEST.MF May 13, 2022 2:40:28 PM io.selendroid.standalone.io.ShellCommand exec INFO: Shell command output -->

    <-- May 13, 2022 2:40:28 PM io.selendroid.standalone.io.ShellCommand exec INFO: Executing shell command: C:\Users\proon\AppData\Local\Android\Sdk\build-tools\32.0.0\aapt.exe remove C:\Users\proon\AppData\Local\Temp\android-driver12739547967136922455.apk META-INF/CERT.RSA May 13, 2022 2:40:28 PM io.selendroid.standalone.io.ShellCommand exec INFO: Shell command output -->

    <-- May 13, 2022 2:40:28 PM io.selendroid.standalone.io.ShellCommand exec INFO: Executing shell command: C:\Users\proon\AppData\Local\Android\Sdk\build-tools\32.0.0\aapt.exe remove C:\Users\proon\AppData\Local\Temp\android-driver12739547967136922455.apk META-INF/CERT.SF May 13, 2022 2:40:28 PM io.selendroid.standalone.io.ShellCommand exec INFO: Shell command output -->

    <-- May 13, 2022 2:40:28 PM io.selendroid.standalone.io.ShellCommand exec INFO: Executing shell command: C:\Users\proon\AppData\Local\Android\Sdk\build-tools\32.0.0\aapt.exe remove C:\Users\proon\AppData\Local\Temp\android-driver12739547967136922455.apk META-INF/ANDROIDD.SF May 13, 2022 2:40:28 PM io.selendroid.standalone.io.ShellCommand exec SEVERE: Error executing command: C:\Users\proon\AppData\Local\Android\Sdk\build-tools\32.0.0\aapt.exe remove C:\Users\proon\AppData\Local\Temp\android-driver12739547967136922455.apk META-INF/ANDROIDD.SF org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147) at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49) at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112) at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133) at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:145) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:172) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94) at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63) at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52) at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65) at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

    May 13, 2022 2:40:28 PM io.selendroid.standalone.io.ShellCommand exec INFO: Executing shell command: C:\Users\proon\AppData\Local\Android\Sdk\build-tools\32.0.0\aapt.exe remove C:\Users\proon\AppData\Local\Temp\android-driver12739547967136922455.apk META-INF/ANDROIDD.RSA May 13, 2022 2:40:28 PM io.selendroid.standalone.io.ShellCommand exec SEVERE: Error executing command: C:\Users\proon\AppData\Local\Android\Sdk\build-tools\32.0.0\aapt.exe remove C:\Users\proon\AppData\Local\Temp\android-driver12739547967136922455.apk META-INF/ANDROIDD.RSA org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147) at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49) at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112) at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133) at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:146) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:172) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94) at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63) at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52) at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65) at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

    May 13, 2022 2:40:28 PM io.selendroid.standalone.io.ShellCommand exec INFO: Executing shell command: C:\Users\proon\AppData\Local\Android\Sdk\build-tools\32.0.0\aapt.exe remove C:\Users\proon\AppData\Local\Temp\android-driver12739547967136922455.apk META-INF/NDKEYSTO.SF May 13, 2022 2:40:28 PM io.selendroid.standalone.io.ShellCommand exec SEVERE: Error executing command: C:\Users\proon\AppData\Local\Android\Sdk\build-tools\32.0.0\aapt.exe remove C:\Users\proon\AppData\Local\Temp\android-driver12739547967136922455.apk META-INF/NDKEYSTO.SF org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147) at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49) at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112) at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133) at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:147) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:172) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94) at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63) at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52) at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65) at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

    May 13, 2022 2:40:28 PM io.selendroid.standalone.io.ShellCommand exec INFO: Executing shell command: C:\Users\proon\AppData\Local\Android\Sdk\build-tools\32.0.0\aapt.exe remove C:\Users\proon\AppData\Local\Temp\android-driver12739547967136922455.apk META-INF/NDKEYSTO.RSA May 13, 2022 2:40:28 PM io.selendroid.standalone.io.ShellCommand exec SEVERE: Error executing command: C:\Users\proon\AppData\Local\Android\Sdk\build-tools\32.0.0\aapt.exe remove C:\Users\proon\AppData\Local\Temp\android-driver12739547967136922455.apk META-INF/NDKEYSTO.RSA org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147) at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49) at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112) at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133) at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:148) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:172) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94) at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63) at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52) at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65) at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

    May 13, 2022 2:40:28 PM io.selendroid.standalone.io.ShellCommand exec INFO: Executing shell command: C:\Program Files\Java\jdk-16.0.1\bin\jarsigner.exe -sigalg MD5withRSA -digestalg SHA1 -signedjar C:\Users\proon\AppData\Local\Temp\resigned-android-driver12739547967136922455.apk -storepass android -keystore C:\Users\proon.android\debug.keystore C:\Users\proon\AppData\Local\Temp\android-driver12739547967136922455.apk androiddebugkey May 13, 2022 2:40:29 PM io.selendroid.standalone.io.ShellCommand exec INFO: Shell command output --> jar signed.

    Warning: The signer's certificate is self-signed. The MD5withRSA algorithm specified for the -sigalg option is considered a security risk and is disabled. The SHA1 algorithm specified for the -digestalg option is considered a security risk. This algorithm will be disabled in a future update. <-- May 13, 2022 2:40:29 PM io.selendroid.standalone.builder.SelendroidServerBuilder signTestServer INFO: App signing output: jar signed.

    Warning: The signer's certificate is self-signed. The MD5withRSA algorithm specified for the -sigalg option is considered a security risk and is disabled. The SHA1 algorithm specified for the -digestalg option is considered a security risk. This algorithm will be disabled in a future update. May 13, 2022 2:40:29 PM io.selendroid.standalone.builder.SelendroidServerBuilder signTestServer INFO: The app has been signed: C:\Users\proon\AppData\Local\Temp\resigned-android-driver12739547967136922455.apk May 13, 2022 2:40:29 PM io.selendroid.standalone.io.ShellCommand exec INFO: Executing shell command: C:\Users\proon\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ZF6524NGL9 shell ls /system/framework/map May 13, 2022 2:40:29 PM io.selendroid.standalone.io.ShellCommand exec INFO: Shell command output --> /system/framework/qmapbridge.jar <-- May 13, 2022 2:40:29 PM io.selendroid.standalone.server.model.DeviceStore addDevice INFO: Adding: HardwareDevice [serial=ZF6524NGL9, model=null, targetVersion=null, apiTargetType=google] May 13, 2022 2:40:29 PM io.selendroid.standalone.io.ShellCommand exec INFO: Executing shell command: C:\Users\proon\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ZF6524NGL9 shell ls /system/framework/map May 13, 2022 2:40:29 PM io.selendroid.standalone.io.ShellCommand exec INFO: Shell command output --> /system/framework/qmapbridge.jar <-- May 13, 2022 2:40:29 PM io.selendroid.standalone.server.model.DeviceStore addDevice INFO: Adding: HardwareDevice [serial=ZF6524NGL9, model=null, targetVersion=null, apiTargetType=google] May 13, 2022 2:40:29 PM io.selendroid.standalone.android.impl.DefaultDeviceManager initializeAdbConnection INFO: my devices: null May 13, 2022 2:40:29 PM io.selendroid.standalone.io.ShellCommand exec INFO: Executing shell command: C:\Users\proon\AppData\Local\Android\Sdk\tools\android.bat list avds May 13, 2022 2:40:30 PM io.selendroid.standalone.io.ShellCommand exec SEVERE: Error executing command: C:\Users\proon\AppData\Local\Android\Sdk\tools\android.bat list avds org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147) at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49) at io.selendroid.standalone.android.impl.DefaultAndroidEmulator.listAvailableAvds(DefaultAndroidEmulator.java:152) at io.selendroid.standalone.server.model.DeviceStore.initAndroidDevices(DeviceStore.java:124) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initAndroidDevices(SelendroidStandaloneDriver.java:185) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:95) at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63) at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52) at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65) at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

    May 13, 2022 2:40:30 PM io.selendroid.standalone.SelendroidLauncher launchServer SEVERE: Error building server: io.selendroid.standalone.exceptions.ShellCommandException: Error executing shell command: C:\Users\proon\AppData\Local\Android\Sdk\tools\android.bat list avds Exception in thread "main" java.lang.RuntimeException: io.selendroid.standalone.exceptions.AndroidDeviceException: io.selendroid.standalone.exceptions.ShellCommandException: Error executing shell command: C:\Users\proon\AppData\Local\Android\Sdk\tools\android.bat list avds at com.google.common.base.Throwables.propagate(Throwables.java:160) at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:75) at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117) Caused by: io.selendroid.standalone.exceptions.AndroidDeviceException: io.selendroid.standalone.exceptions.ShellCommandException: Error executing shell command: C:\Users\proon\AppData\Local\Android\Sdk\tools\android.bat list avds at io.selendroid.standalone.android.impl.DefaultAndroidEmulator.listAvailableAvds(DefaultAndroidEmulator.java:154) at io.selendroid.standalone.server.model.DeviceStore.initAndroidDevices(DeviceStore.java:124) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initAndroidDevices(SelendroidStandaloneDriver.java:185) at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:95) at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63) at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52) at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65) ... 1 more Caused by: io.selendroid.standalone.exceptions.ShellCommandException: Error executing shell command: C:\Users\proon\AppData\Local\Android\Sdk\tools\android.bat list avds at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:56) at io.selendroid.standalone.android.impl.DefaultAndroidEmulator.listAvailableAvds(DefaultAndroidEmulator.java:152) ... 7 more Caused by: io.selendroid.standalone.exceptions.ShellCommandException: ************************************************************************** The "android" command is deprecated. For manual SDK, AVD, and project management, please use Android Studio. For command-line tools, use tools\bin\sdkmanager.bat and tools\bin\avdmanager.bat


    Invalid or unsupported command "list avds"

    Supported commands are: android list target android list avd android list device android create avd android move avd android delete avd android list sdk android update sdk

        ... 9 more
    
    opened by abhijeetsinghsohal 0
  • Required Arm version to work on termux directly

    Required Arm version to work on termux directly

    As termux has its own adb tools that can use adb over wifi and connect to localhost. If selendroid is available to use directly from termux we can run automation scripts without requiring pc directly from termux. Also termux has native java support in proot mode

    opened by tathastu871 0
  • Bump commons-compress from 1.5 to 1.21 in /selendroid-standalone

    Bump commons-compress from 1.5 to 1.21 in /selendroid-standalone

    Bumps commons-compress from 1.5 to 1.21.

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • Bump httpclient from 4.3.4 to 4.5.13 in /selendroid-test-app

    Bump httpclient from 4.3.4 to 4.5.13 in /selendroid-test-app

    Bumps httpclient from 4.3.4 to 4.5.13.

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • Bump httpclient from 4.3.4 to 4.5.13

    Bump httpclient from 4.3.4 to 4.5.13

    Bumps httpclient from 4.3.4 to 4.5.13.

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
Releases(0.17.0)
  • 0.17.0(Oct 21, 2015)

    • wrapping webviews in a better way, to handle hybrid apps that override methods on the webview(s)
    • native element getAttribute now run on UI Thread, to access certain attributes on a WebView (like getScale)
    • marshmallow support #987
    • add factory to allow custom drivers #975
    • merge device config into node capability for grid auto re-register #963
    • kill orphaned processes after test has finished #961
    • update selenium maven dependency #946
    Source code(tar.gz)
    Source code(zip)
    selendroid-standalone-0.17.0-with-dependencies.jar(12.74 MB)
  • 0.16.0(Jul 18, 2015)

    • gets app version from pom.xml if class path doesn't start with jar #835
    • Clear data before app launch #844
    • Drop explicit 'implements TakesScreenshot, JavascriptExecutor' declarations #846
    • Trigger DOM event of type 'INPUT' after changing value of INPUT element #746
    • Grid auto re-register #756
    • Added activities to test touch gestures in the selendroid-test app #848
    • implemented driver.manage().timeouts().PageLoadTimeout() #849
    • Added cordova-android 4.0.0 support #859
    • Append error details to page source #850
    • Delete temporary created by Selendroid Server #862
    • Refactored SafeHandle (Action chain) for future multitouch implementation. #860
    • Changed the implicit wait timeout from 5s to 0 as per webdriver spec #895
    • Add WXGA720 skin for detection of screen resolution #904
    • Optimize screenshots from standalone server #904
    • Fix bug SelendroidServerBuilder when executing tests and using default keystore alias and passwords and androidKeyStore file exists #904
    • Don't add "offline" hardware devices on startup #900
    • [client] Fix SelendroidDriver#readCallLog() #916
    • [server] Fix finding a collection of elements by class name for non existing classes #918
    • [standalone] Fix ..session/log/types endpoint #927
    • [standalone] Fix HTTP response for unknown commands #928
    • [server] Fix NPE in ViewHierarchyAnalyzer #929
    • [server] Do not try to get the resource name if the view has no id #930
    • [server] Do not search in multiple top level views #931
    • Update AndroidAtoms #925
    Source code(tar.gz)
    Source code(zip)
    selendroid-standalone-0.16.0-with-dependencies.jar(23.36 MB)
  • 0.15.0(Mar 3, 2015)

    0.15.0

    • Fix native view search with multiple top level views #799
    • Reverted the 'adb.terminate()' call (back into if condition). #803
    • Log click position #801
    • fix registration of selendroid server into a selenium grid #802
    • fix NPE on native apps driver.switchTo().defaultContent() #776
    • Fixing maven issues by using latest maven-android-plugin. #804
    • Introduce Predicate and AndroidElement factories #811
    • Fixing setAirplaneMode(true) for Android API 21 #816
    • Using latest selenium release. #818
    • Add assets for inspector #820
    • Added apiTargetType as an option to SelendroidCapabilities #823
    Source code(tar.gz)
    Source code(zip)
    selendroid-standalone-0.15.0-with-dependencies.jar(23.37 MB)
  • 0.14.0(Feb 3, 2015)

  • 0.13.0(Jan 15, 2015)

    • In case of an shutting down selendroid-standalone (using an already started emulator) this fix is fixing the NPE.
    • Read adb output. #695
    • Selendroid-standalone argument -emulatorOptions to handle multiple options for emulator #697
    • Selendroid-standalone: Fix to ScreenSize detection of emulators, and a feature - configurable maxSession and maxInstances. #703
    • Corrections to JSON to register at Grid hub. #713
    • Added folder monitoring capability and fixed emulator launching problem. #712
    • Introduced package per component. E.g. client bindings are located in io.selendroid.client #725
    • Correctly wait for Selendroid standalone server to come up
    • Consider 'emulator' capability when matching
    • For each device, register as "android" for WebView tests and also selendroid if an aut is specified
    • Elements don't need to be enabled to be visible.
    • Removed the adb command implementation, now done via automation
    • Automatically selects the latest version of the app to test if it is not specified by users.
    • terminate must be called on AndroidDebugBridge on shutdown.
    • Removed Gson dependency from server and client
    • fixes #767 stop internal ExecutorService of TrafficCounter on shutdown
    • Only return stack traces for unknown errors
    • Adding "model" as a configurable parameter option.
    Source code(tar.gz)
    Source code(zip)
    selendroid-standalone-0.13.0-with-dependencies.jar(23.14 MB)
  • 0.12.0(Oct 21, 2014)

    • Support to custom keystore, password, alias. #536
    • Added freeing on selendroidPort on driver.quit() #557
    • The activity class is not any longer immediately loaded. #558
    • Fixes bug in findElementsByName() #559
    • Optimize searching for elements in selendroid #560
    • Allowed disabling of adb logcat device logging with flag #561
    • Cleaned up repetitive error handling in selendroid-server #562
    • Stop swallowing exception when waiting for instrumentation #563
    • Allow selendroid-server start timeout to be passed on command line #564
    • Added "-h" and" --help" options to selendroid-standalone-server.
    • Split up SelendroidLauncher main().
    • Added capability to load in extension handlers and a test bootstrap class
    • Assume AUT is already installed if LaunchActivity specified & no matching appsStore entry #567
    • Propagate unhandled exceptions in AUT as AppCrashedException
    • Added server-side support for low-level actions API
    • Added client side implementation of the multi touch screen
    • Added empty()/copyOf()/withMerged() to SelendroidCapabilities
    • Added ability to run GC and set system properties.
    • GetElementAttribute returns null if attribute is not set. Fixes #568
    • Removed manual looper as we can now get the device to dump crash logs to a file
    • Added SelendroidStandaloneDriverEventListener to allow hooking into events during Selendroid startup
    • Run bootstrap and launch main activity on the UI thread in ServerInstrumentation
    • Fixed cloning of existing session capabilities in GetCapabilities()
    • Added logging of selendroid traffic statistics
    • Prevent hardware devices from showing up multiple times in the DeviceStore
    • getWindowSize() now supports API levels < 13
    • Changed getScreenSize() to use Dimension instead of string, added support for emulators with string skin names
    • Fixed loading of keystores with no password
    • Send connection: close header in responses. Fixes #458
    • Removed 'SelendroidKeys.ANDROID_HOME' because emulating the home key using Instrumentation is not supported in Android. Use adb to emulate the home key in your tests.
    • Return capabilities immediately after session creation instead of redirecting
    • Lowered severity of logs in isSelendroidRunning(), made messages more informative.
    • Made E2E tests use SelendroidStandaloneServer
    • findElements() returns an empty list instead of throwing an exception.
    • Standardises URLs / makes them compliant with the WebDriver specification
    • Fixed crashlog detection on older devices
    • Improved cleanup of devices on failed server startup
    • Marked 'execute_native' scripts as deprecated. The native script TwoPointerGestureAction was removed, please use the new multi touch implementation.
    • Upgrading to latest Selenium 2.43.1
    • Upgrading to latest Android Atoms
    Source code(tar.gz)
    Source code(zip)
    selendroid-standalone-0.12.0-with-dependencies.jar(23.37 MB)
  • 0.11.0(Aug 1, 2014)

    • Upgrading to latest Selenium 2.42.2
    • Fixed http response encoding header
    • Support for 'activity-alias' manifest tag by adding a new optional capability -launchActivity
    • Adding new background / resume custom api endpoints, available in the client: SelendroidDriver.backgroundApp() and SelendroidDriver.resumeApp()
    • Avoid returning duplicate elements for findElementsBy
    • Migrated http-server from webbit to netty
    • Adding new call log feature: SelendroidDriver.addCallLog / readCallLog
    • Fixes: #487
    Source code(tar.gz)
    Source code(zip)
    selendroid-standalone-0.11.0-with-dependencies.jar(23.19 MB)
  • 0.10.0(May 13, 2014)

    • Bumping selenium dependency to version 2.41.0
    • Added support for switching contexts (NATIVE_APP/WEBVIEW)
    • Removed deprecated property 'androidTarget' in selendroid capabilities.
    • Removed default locale 'en_US' in selendroid capabilities
    • Fixes: #362, #371, #338
    • Added command line option -forceReinstall to force installation of Selendroid Server & app under test
    • Logging Selendroid Standalone configured options
    • Element.tagName() should return lower-case string
    • Fixed wrong mapping of StaleElementException (was WebDriverException)
    • Added a unified and configurable logging system for standalone and selendroid server
    • adding support for new 'network_connection' endpoint which will be in the client API for selenium in 2.42
    Source code(tar.gz)
    Source code(zip)
    selendroid-standalone-0.10.0-with-dependencies.jar(20.68 MB)
  • 0.9.0(Mar 21, 2014)

    • Rotation Support
    • Fixes: #268, #284, #309, #275
    • Adding support for disabling native events for sendKeys command to support e.g. German umlauts (#7,#110)
    • Added support for sending key events, send text, tap and execute shell command via adb connection
    • removed -installedApp command line parameter of the selendroid-standalone jar
    • Selendroid standalone supports by default already started emulators. Even if they are started manually after selendroid-standalone has been started, they are identified and can be used for test sessions.
    • Minimized create session time by skipping installation of the app under test or the selendroid-server if they are already installed.
    • Support execute async script (#254)
    • Add native execute script action TwoPointerGesture. this is temporary solution until the mobile WebDriver multi touch spec is implemented #292
    • Introducing a sessionTimeout (in seconds) that will automatically stop a session. Default value is 30 minutes.
    • Added support for using 'platformVersion', 'platformName' and 'automationName' in capabilities in order to support Selenium 3.0
    • Added support for using switch context endpoints to support Selenium 3.0. Swith to window mechanism is still available.
    • In order to support Selenium 3, Page source is now returned as an XML (or HTML in the case of HTML-based platforms) document representing the UI hierarchy.
    • Until multi touch support based on the new w3c spec is implemented, there is a native script that can be used for multi touch gestures.
    Source code(tar.gz)
    Source code(zip)
    selendroid-standalone-0.9.0-with-dependencies.jar(9.62 MB)
  • 0.7.0(Dec 25, 2013)

  • 0.6.0(Nov 29, 2013)

    0.6.0

    • #114 Optimizing logcat handling and retry handling for selendroid-server start
    • Emulators are started on display configured in capabilities
    • Device logcats are available as logging type "logcat"
    • The feature to restart adb has been removed
    • Selendroid-standalone can register himself as a node to a Selenium Grid hub by using command line parameters (-hub and -host)
    • Selenium Automation Atoms has been updated to fix #127
    • Support for Android KitKat (Api Level 19)
    • Full support for Windows (#146)
    • Support for running multiple instrumentation servers #112
    • Better support for different platform names Android Sdk #128
    • Smaller refactorings
    • Selendroid-Standalone can be configured to use specific emulator starting options
    • Selendroid-Standalone can be configured to use a specific keystore for signing apks
    Source code(tar.gz)
    Source code(zip)
    selendroid-standalone-0.6.0-with-dependencies.jar(9.36 MB)
  • 0.5.1(Sep 6, 2013)

  • 0.5.0(Aug 30, 2013)

    • Added xpath locator for native context
    • selendroid can now handle multiple web views on the same activity
    • new inspector with the ability to display html source code of a web view.
    • multiple bug fixes
    • Support for Set, Get, Delete Cookies for WebViews
    • hardware device handling is now based on the ddmlib library which means devices can be now hot plugged.
    • selendroid-standalone can is now taking screenshots by default using ddmlib library.
    • selendroid-shell has been removed from the core project
    • selendroid-server port can now be configured
    • Updated to use the lastest Selenium automation Atoms.
    • Official support for windows
    • Emulator and instrumentation start handling was massively improved
    • selendroid-standalone can handle installed apps which is can speed up especially test case development.
    • Selenium Log API is now supported
    Source code(tar.gz)
    Source code(zip)
Lbc-test-app - Test Android Senior Leboncoin

Test Android Senior Leboncoin ?? Mathieu EDET Overview Min API version : 24 This

null 0 Feb 7, 2022
Kotlin wrapper for React Test Renderer, which can be used to unit test React components in a Kotlin/JS project.

Kotlin API for React Test Renderer Kotlin wrapper for React Test Renderer, which can be used to unit test React components in a Kotlin/JS project. How

Xavier Cho 7 Jun 8, 2022
Test Automation of Energy Australia - Web application

Test Automation of Energy Australia - Web application Technology used - Kotlin, Java, Espresso, Android Run the test on local environment git clone ht

null 0 Feb 9, 2022
Selenium WebDriver and Appium based Web, Mobile (Android, iOS) and Windows desktop Automation Framework with BDD & Non-BDD implementation support

Selenium WebDriver and Appium based Web, Mobile (Android, iOS) and Windows desktop Automation Framework with BDD & Non-BDD implementation support

null 10 Dec 5, 2022
PowerMock is a Java framework that allows you to unit test code normally regarded as untestable.

Writing unit tests can be hard and sometimes good design has to be sacrificed for the sole purpose of testability. Often testability corresponds to go

PowerMock 3.9k Jan 5, 2023
PowerMock is a Java framework that allows you to unit test code normally regarded as untestable.

Writing unit tests can be hard and sometimes good design has to be sacrificed for the sole purpose of testability. Often testability corresponds to go

PowerMock 3.9k Jan 2, 2023
Powerful, elegant and flexible test framework for Kotlin with additional assertions, property testing and data driven testing

Kotest is a flexible and comprehensive testing tool for Kotlin with multiplatform support. To learn more about Kotest, visit kotest.io or see our quic

Kotest 3.8k Jan 3, 2023
TestObserver to easily test LiveData and make assertions on them.

JCenter Update LiveData Testing is currently published on JCenter - it will serve packages until February 1st, 2022. LiveData Testing packages will be

Josef Raska 395 Dec 8, 2022
Barista makes developing UI test faster, easier and more predictable. Built on top of Espresso

Barista makes developing UI test faster, easier and more predictable. Built on top of Espresso, it provides a simple and discoverable API, removing most of the boilerplate and verbosity of common Espresso tasks. You and your Android team will write tests with no effort.

Adevinta Spain 1.6k Jan 5, 2023
Linkester is an Android library that aims to help Android developers test their deep links implementation.

Linkester Linkester is an Android library that aims to help Android developers test their deep links implementation. The idea is to have a new launche

Ahmad Melegy 79 Dec 9, 2022
A powerful test framework for Android

Cafe A powerful test framework for Android named Case Automated Framework for Everyone. Home Page http://baiduqa.github.com/Cafe/ How to make Cafe dow

Baidu 367 Nov 22, 2022
A custom instrumentation test runner for Android that generates XML reports for integration with other tools.

Android JUnit Report Test Runner Introduction The Android JUnit report test runner is a custom instrumentation test runner for Android that creates XM

Jason Sankey 148 Nov 25, 2022
A powerful test framework for Android

Cafe A powerful test framework for Android named Case Automated Framework for Everyone. Home Page http://baiduqa.github.com/Cafe/ How to make Cafe dow

Baidu 367 Nov 22, 2022
Easily scale your Android Instrumentation Tests across Firebase Test Lab with Flank.

Easily scale your Android Instrumentation Tests across Firebase Test Lab with Flank.

Nelson Osacky 220 Nov 29, 2022
The coding challenge elbotola android test

Introduction The coding challenge(s) below will be used to assess your familiarity with the Android development environment, relevant Android related

Mohamed Elouamghari 1 Nov 2, 2021
Android background tint test project

Android Background Tint References https://developer.android.com/reference/android/view/View#attr_android:background https://developer.android.com/ref

Ashwin Dinesh 0 Nov 4, 2021
Strikt is an assertion library for Kotlin intended for use with a test runner such as JUnit, Minutest, Spek, or KotlinTest.

Strikt is an assertion library for Kotlin intended for use with a test runner such as JUnit, Minutest, Spek, or KotlinTest.

Rob Fletcher 447 Dec 26, 2022
Test for openbank application

openbank-test Test for openbank application Here you can find a simple test for the OpenBank application. It fetches some characters from the Marvel A

anon37894203 0 Nov 3, 2021
Proyecto de Kotlin y JPA sobre Hibernate, con algunos test usando JUnit 5 y Mockito.

Contactos Kotlin JPA Ejemplos de una aplicación de manejo de contactos con Kotlin y JPA. Usando para testear la aplicación JUnit 5 y Mockito. Almacena

José Luis González Sánchez 3 Sep 13, 2022