Skip to content

Instantly share code, notes, and snippets.

@shridharkalagi
Created August 28, 2018 10:10
Show Gist options
  • Save shridharkalagi/0ea18db8aad29147afcc808827093f71 to your computer and use it in GitHub Desktop.
Save shridharkalagi/0ea18db8aad29147afcc808827093f71 to your computer and use it in GitHub Desktop.
espresso driver
/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin/java -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:/Applications/IntelliJ IDEA CE.app/Contents/lib/idea_rt.jar=59248:/Applications/IntelliJ IDEA CE.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA CE.app/Contents/lib/idea_rt.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/testng/lib/testng-plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/ext/zipfs.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/jfxswt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/lib/packager.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/lib/tools.jar:/Users/shridhk/VodQaAdvancedAppium/target/test-classes:/Users/shridhk/.m2/repository/org/awaitility/awaitility/3.1.0/awaitility-3.1.0.jar:/Users/shridhk/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/Users/shridhk/.m2/repository/org/objenesis/objenesis/2.6/objenesis-2.6.jar:/Users/shridhk/.m2/repository/com/github/appium/java-client/dfb285e3b8/java-client-dfb285e3b8.jar:/Users/shridhk/.m2/repository/org/seleniumhq/selenium/selenium-java/3.14.0/selenium-java-3.14.0.jar:/Users/shridhk/.m2/repository/org/seleniumhq/selenium/selenium-chrome-driver/3.14.0/selenium-chrome-driver-3.14.0.jar:/Users/shridhk/.m2/repository/org/seleniumhq/selenium/selenium-edge-driver/3.14.0/selenium-edge-driver-3.14.0.jar:/Users/shridhk/.m2/repository/org/seleniumhq/selenium/selenium-firefox-driver/3.14.0/selenium-firefox-driver-3.14.0.jar:/Users/shridhk/.m2/repository/org/seleniumhq/selenium/selenium-ie-driver/3.14.0/selenium-ie-driver-3.14.0.jar:/Users/shridhk/.m2/repository/org/seleniumhq/selenium/selenium-opera-driver/3.14.0/selenium-opera-driver-3.14.0.jar:/Users/shridhk/.m2/repository/org/seleniumhq/selenium/selenium-remote-driver/3.14.0/selenium-remote-driver-3.14.0.jar:/Users/shridhk/.m2/repository/org/seleniumhq/selenium/selenium-safari-driver/3.14.0/selenium-safari-driver-3.14.0.jar:/Users/shridhk/.m2/repository/net/bytebuddy/byte-buddy/1.8.15/byte-buddy-1.8.15.jar:/Users/shridhk/.m2/repository/org/apache/commons/commons-exec/1.3/commons-exec-1.3.jar:/Users/shridhk/.m2/repository/commons-codec/commons-codec/1.10/commons-codec-1.10.jar:/Users/shridhk/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar:/Users/shridhk/.m2/repository/com/google/guava/guava/25.0-jre/guava-25.0-jre.jar:/Users/shridhk/.m2/repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar:/Users/shridhk/.m2/repository/org/checkerframework/checker-compat-qual/2.0.0/checker-compat-qual-2.0.0.jar:/Users/shridhk/.m2/repository/com/google/errorprone/error_prone_annotations/2.1.3/error_prone_annotations-2.1.3.jar:/Users/shridhk/.m2/repository/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar:/Users/shridhk/.m2/repository/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.jar:/Users/shridhk/.m2/repository/org/apache/httpcomponents/httpcore/4.4.9/httpcore-4.4.9.jar:/Users/shridhk/.m2/repository/com/squareup/okhttp3/okhttp/3.10.0/okhttp-3.10.0.jar:/Users/shridhk/.m2/repository/com/squareup/okio/okio/1.14.1/okio-1.14.1.jar:/Users/shridhk/.m2/repository/org/seleniumhq/selenium/selenium-support/3.14.0/selenium-support-3.14.0.jar:/Users/shridhk/.m2/repository/org/seleniumhq/selenium/selenium-api/3.14.0/selenium-api-3.14.0.jar:/Users/shridhk/.m2/repository/com/google/code/gson/gson/2.8.4/gson-2.8.4.jar:/Users/shridhk/.m2/repository/org/apache/httpcomponents/httpclient/4.5.5/httpclient-4.5.5.jar:/Users/shridhk/.m2/repository/cglib/cglib/3.2.6/cglib-3.2.6.jar:/Users/shridhk/.m2/repository/org/ow2/asm/asm/6.0/asm-6.0.jar:/Users/shridhk/.m2/repository/org/apache/ant/ant/1.9.6/ant-1.9.6.jar:/Users/shridhk/.m2/repository/org/apache/ant/ant-launcher/1.9.6/ant-launcher-1.9.6.jar:/Users/shridhk/.m2/repository/commons-validator/commons-validator/1.6/commons-validator-1.6.jar:/Users/shridhk/.m2/repository/commons-beanutils/commons-beanutils/1.9.2/commons-beanutils-1.9.2.jar:/Users/shridhk/.m2/repository/commons-digester/commons-digester/1.8.1/commons-digester-1.8.1.jar:/Users/shridhk/.m2/repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar:/Users/shridhk/.m2/repository/org/apache/commons/commons-lang3/3.7/commons-lang3-3.7.jar:/Users/shridhk/.m2/repository/commons-io/commons-io/2.6/commons-io-2.6.jar:/Users/shridhk/.m2/repository/org/springframework/spring-context/5.0.5.RELEASE/spring-context-5.0.5.RELEASE.jar:/Users/shridhk/.m2/repository/org/springframework/spring-aop/5.0.5.RELEASE/spring-aop-5.0.5.RELEASE.jar:/Users/shridhk/.m2/repository/org/springframework/spring-beans/5.0.5.RELEASE/spring-beans-5.0.5.RELEASE.jar:/Users/shridhk/.m2/repository/org/springframework/spring-core/5.0.5.RELEASE/spring-core-5.0.5.RELEASE.jar:/Users/shridhk/.m2/repository/org/springframework/spring-jcl/5.0.5.RELEASE/spring-jcl-5.0.5.RELEASE.jar:/Users/shridhk/.m2/repository/org/springframework/spring-expression/5.0.5.RELEASE/spring-expression-5.0.5.RELEASE.jar:/Users/shridhk/.m2/repository/org/aspectj/aspectjweaver/1.9.1/aspectjweaver-1.9.1.jar:/Users/shridhk/.m2/repository/org/testng/testng/6.14.3/testng-6.14.3.jar:/Users/shridhk/.m2/repository/com/beust/jcommander/1.72/jcommander-1.72.jar:/Users/shridhk/.m2/repository/org/apache-extras/beanshell/bsh/2.0b6/bsh-2.0b6.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/testng/lib/jcommander.jar" org.testng.RemoteTestNGStarter -usedefaultlisteners false -socket59247 @w@/private/var/folders/qf/cs_yjfm15tlc_0d0wjfc12p80000gp/T/idea_working_dirs_testng.tmp -temp /private/var/folders/qf/cs_yjfm15tlc_0d0wjfc12p80000gp/T/idea_testng.tmp
objc[32858]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin/java (0x1082094c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x1082d14e0). One of the two will be used. Which one is undefined.
[Appium] Welcome to Appium v1.9.0-beta.1 (REV 859343d4efb365338032dbdb49861f3d0d86a0a3)
[Appium] Non-default server args:
[Appium] address: 127.0.0.1
[Appium] port: 46929
[Appium] Appium REST http interface listener started on 127.0.0.1:46929
[HTTP] --> GET /wd/hub/status
[HTTP] {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.9.0-beta.1","revision":"859343d4efb365338032dbdb49861f3d0d86a0a3"}}
[HTTP] <-- GET /wd/hub/status 200 15 ms - 128
[HTTP]
[HTTP] --> GET /wd/hub/status
[HTTP] {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.9.0-beta.1","revision":"859343d4efb365338032dbdb49861f3d0d86a0a3"}}
[HTTP] <-- GET /wd/hub/status 200 8 ms - 128
[HTTP]
[HTTP] --> POST /wd/hub/session
[HTTP] {"desiredCapabilities":{"app":"/Users/shridhk/VodQaAdvancedAppium/VodQA.apk","automationName":"Espresso","platformName":"Android","deviceName":"Android Emulator","newCommandTimeout":700000},"capabilities":{"alwaysMatch":{"appium:app":"/Users/shridhk/VodQaAdvancedAppium/VodQA.apk","appium:automationName":"Espresso","appium:deviceName":"Android Emulator","appium:newCommandTimeout":700000,"platformName":"android"},"firstMatch":[{}]}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/shridhk/VodQaAdvancedAppium/VodQA.apk","automationName":"Espresso","platformName":"Android","deviceName":"Android Emulator","newCommandTimeout":700000},null,{"alwaysMatch":{"appium:app":"/Users/shridhk/VodQaAdvancedAppium/VodQA.apk","appium:automationName":"Espresso","appium:deviceName":"Android Emulator","appium:newCommandTimeout":700000,"platformName":"android"},"firstMatch":[{}]}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1535450217681 (15:26:57 GMT+0530 (India Standard Time))
[Appium] Creating new EspressoDriver (v1.0.0-beta.13) session
[Appium] Capabilities:
[Appium] platformName: android
[Appium] app: /Users/shridhk/VodQaAdvancedAppium/VodQA.apk
[Appium] automationName: Espresso
[Appium] deviceName: Android Emulator
[Appium] newCommandTimeout: 700000
[debug] [BaseDriver] W3C capabilities {"alwaysMatch":{"platformNa... and MJSONWP desired capabilities {"app":"/Users/shridhk/VodQ... were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {"alwaysMatch":{"platformNa...
[BaseDriver] Session created with session id: 0035f3d6-1c6a-4586-9f5d-5981dc82eb54
(node:32860) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[BaseDriver] Using local app '/Users/shridhk/VodQaAdvancedAppium/VodQA.apk'
[debug] [Espresso] Checking whether app is actually present
[Espresso] EspressoDriver version: 1.0.0-beta.13
[AndroidDriver] Java version is: 1.8.0_65
[ADB] Checking whether adb is present
[ADB] Found 8 'build-tools' folders under '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK' (newest first):
[ADB] /Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/build-tools/27.0.3
[ADB] /Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/build-tools/27.0.2
[ADB] /Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/build-tools/26.0.2
[ADB] /Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/build-tools/26.0.1
[ADB] /Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/build-tools/25.0.2
[ADB] /Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/build-tools/23.0.3
[ADB] /Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/build-tools/23.0.2
[ADB] /Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/build-tools/23.0.1
[ADB] Using adb from /Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb
[AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[AndroidDriver] Using device: 81c16a94
[debug] [ADB] Setting device id to 81c16a94
[debug] [AndroidDriver] Parsing package and activity from app manifest
[ADB] Using apkanalyzer from /Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/tools/bin/apkanalyzer
[debug] [ADB] Starting '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/tools/bin/apkanalyzer' with args ["-h","manifest","print","/Users/shridhk/VodQaAdvancedAppium/VodQA.apk"]
[ADB] Package name: 'com.vodqareactnative'
[ADB] Main activity name: 'com.vodqareactnative.MainActivity'
[debug] [AndroidDriver] Parsed package and activity are: com.vodqareactnative/com.vodqareactnative.MainActivity
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell pm list packages io.appium.settings'
[debug] [ADB] App is installed
[debug] [ADB] Getting package info for 'io.appium.settings'
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell dumpsys package io.appium.settings'
[ADB] Checking whether aapt is present
[ADB] Using aapt from /Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/build-tools/27.0.3/aapt
[debug] [ADB] The installed 'io.appium.settings' package does not require upgrade ('2.3.0' >= '2.3.0')
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell ps'
[debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell settings get global animator_duration_scale'
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell settings get global transition_animation_scale'
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell settings get global window_animation_scale'
[ADB] Getting device platform version
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell getprop ro.build.version.release'
[debug] [ADB] Current device property 'ro.build.version.release': 8.1.0
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell wm size'
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell getprop ro.product.model'
[debug] [ADB] Current device property 'ro.product.model': ONEPLUS A6000
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell getprop ro.product.manufacturer'
[debug] [ADB] Current device property 'ro.product.manufacturer': OnePlus
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 wait-for-device'
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell echo ping'
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell pm list packages io.appium.settings'
[debug] [ADB] App is installed
[debug] [ADB] Getting package info for 'io.appium.settings'
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell dumpsys package io.appium.settings'
[debug] [ADB] The installed 'io.appium.settings' package does not require upgrade ('2.3.0' >= '2.3.0')
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell ps'
[debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell getprop ro.build.version.sdk'
[debug] [ADB] Current device property 'ro.build.version.sdk': 27
[debug] [ADB] Device API level: 27
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell appops set io.appium.settings android\:mock_location allow'
[AndroidDriver] setDeviceLanguageCountry requires language or country.
[AndroidDriver] Got language: 'null' and country: 'null'
[debug] [Logcat] Starting logcat capture
[debug] [AndroidDriver] Pushing unlock helper app to device...
[debug] [ADB] Getting install status for io.appium.unlock
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell pm list packages io.appium.unlock'
[debug] [ADB] App is installed
[debug] [ADB] Getting package info for 'io.appium.unlock'
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell dumpsys package io.appium.unlock'
[debug] [ADB] The installed 'io.appium.unlock' package does not require upgrade ('2.0.0' >= '2.0.0')
[debug] [Espresso] Forwarding Espresso Server port 8080 to 8080
[debug] [ADB] Forwarding system: 8080 to device: 8080
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 forward tcp\:8080 tcp\:8080'
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell dumpsys window'
[debug] [AndroidDriver] Screen is locked, trying to unlock
[AndroidDriver] Using app unlock, this is going to be deprecated!
[AndroidDriver] Unlocking screen
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell am force-stop io.appium.unlock'
[AndroidDriver] Launching io.appium.unlock
[debug] [ADB] Device API level: 27
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell am start -W -n io.appium.unlock/.Unlock -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000'
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell am start -W -n io.appium.unlock/.Unlock -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000'
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell dumpsys window'
[debug] [ADB] Checking app cert for /Users/shridhk/VodQaAdvancedAppium/VodQA.apk
[ADB] Using apksigner from /Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/build-tools/27.0.3/apksigner
[debug] [ADB] Starting '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/build-tools/27.0.3/apksigner' with args '["verify","--print-certs","/Users/shridhk/VodQaAdvancedAppium/VodQA.apk"]'
[debug] [ADB] apksigner stdout: Signer #1 certificate DN: [email protected], CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] [ADB]
[debug] [ADB] '/Users/shridhk/VodQaAdvancedAppium/VodQA.apk' is already signed.
[debug] [ADB] Getting install status for com.vodqareactnative
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell pm list packages com.vodqareactnative'
[debug] [ADB] App is installed
[debug] [ADB] Getting install status for com.vodqareactnative
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell pm list packages com.vodqareactnative'
[debug] [ADB] App is installed
[debug] [ADB] Getting package info for 'com.vodqareactnative'
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell dumpsys package com.vodqareactnative'
[debug] [ADB] The installed 'com.vodqareactnative' package does not require upgrade ('1.0.0' >= '1.0.0')
[AndroidDriver] Performing fast reset on 'com.vodqareactnative'
[debug] [ADB] Getting install status for com.vodqareactnative
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell pm list packages com.vodqareactnative'
[debug] [ADB] App is installed
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell am force-stop com.vodqareactnative'
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell pm clear com.vodqareactnative'
[debug] [AndroidDriver] Performed fast reset on the installed 'com.vodqareactnative' application (stop and clear)
[debug] [ADB] Checking app cert for /var/folders/qf/cs_yjfm15tlc_0d0wjfc12p80000gp/T/io.appium.espressoserver.test_1.0.0-beta.13_com.vodqareactnative.apk
[debug] [ADB] Starting '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/build-tools/27.0.3/apksigner' with args '["verify","--print-certs","/var/folders/qf/cs_yjfm15tlc_0d0wjfc12p80000gp/T/io.appium.espressoserver.test_1.0.0-beta.13_com.vodqareactnative.apk"]'
[debug] [ADB] apksigner stdout: Signer #1 certificate DN: [email protected], CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] [ADB] WARNING: META-INF/nanohttpd/default-mimetypes.properties not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/.
[debug] [ADB] WARNING: META-INF/nanohttpd/mimetypes.properties not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/.
[debug] [ADB] WARNING: META-INF/services/com.google.protobuf.GeneratedExtensionRegistryLoader not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/.
[debug] [ADB] WARNING: META-INF/services/org.xmlpull.v1.XmlPullParserFactory not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/.
[debug] [ADB]
[debug] [ADB] '/var/folders/qf/cs_yjfm15tlc_0d0wjfc12p80000gp/T/io.appium.espressoserver.test_1.0.0-beta.13_com.vodqareactnative.apk' is already signed.
[debug] [ADB] Getting install status for io.appium.espressoserver.test
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell pm list packages io.appium.espressoserver.test'
[debug] [ADB] App is installed
[debug] [ADB] Getting package info for 'io.appium.espressoserver.test'
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell dumpsys package io.appium.espressoserver.test'
[debug] [ADB] The installed 'io.appium.espressoserver.test' package does not require upgrade ('1.0.0' >= '1.0.0')
[Espresso] Installed Espresso Test Server apk '/var/folders/qf/cs_yjfm15tlc_0d0wjfc12p80000gp/T/io.appium.espressoserver.test_1.0.0-beta.13_com.vodqareactnative.apk' (pkg: 'io.appium.espressoserver.test')
[Espresso] Starting Espresso Server v1.0.0-beta.13 with cmd: adb shell am instrument -w -e debug false io.appium.espressoserver.test/android.support.test.runner.AndroidJUnitRunner
[debug] [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","81c16a94","shell","am","instrument","-w","-e","debug","false","io.appium.espressoserver.test/android.support.test.runner.AndroidJUnitRunner"]
[debug] [Espresso] Deleting espresso session
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell am force-stop com.vodqareactnative'
[debug] [Logcat] Stopping logcat capture
[debug] [ADB] Removing forwarded port socket connection: 8080
[debug] [ADB] Running '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 forward --remove tcp\:8080'
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1535450294882 (15:28:14 GMT+0530 (India Standard Time))
[W3C] Encountered internal error running command: Error: The process did not start within 30000ms (cmd: '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell am instrument -w -e debug false io.appium.espressoserver.test/android.support.test.runner.AndroidJUnitRunner')
[W3C] at Timeout._onTimeout (/usr/local/lib/node_modules/appium/node_modules/teen_process/lib/subprocess.js:165:18)
[W3C] at ontimeout (timers.js:427:11)
[W3C] at tryOnTimeout (timers.js:289:5)
[W3C] at listOnTimeout (timers.js:252:5)
[W3C] at Timer.processTimers (timers.js:212:10)
[HTTP] <-- POST /wd/hub/session 500 77221 ms - 1577
[HTTP]
org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: The process did not start within 30000ms (cmd: '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell am instrument -w -e debug false io.appium.espressoserver.test/android.support.test.runner.AndroidJUnitRunner')
Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-02T20:19:58.91Z'
System info: host: 'INshridhk.local', ip: 'fe80:0:0:0:1038:cfb2:b2b7:3f77%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.6', java.version: '1.8.0_65'
Driver info: driver.version: AndroidDriver
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: The process did not start within 30000ms (cmd: '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell am instrument -w -e debug false io.appium.espressoserver.test/android.support.test.runner.AndroidJUnitRunner')
at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:824:9)
at asyncHandler$ (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:375:37)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-02T20:19:58.91Z'
System info: host: 'INshridhk.local', ip: 'fe80:0:0:0:1038:cfb2:b2b7:3f77%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.6', java.version: '1.8.0_65'
Driver info: driver.version: AndroidDriver
at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:208)
at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:548)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:212)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:130)
at io.appium.java_client.DefaultGenericMobileDriver.<init>(DefaultGenericMobileDriver.java:38)
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:84)
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:94)
at io.appium.java_client.android.AndroidDriver.<init>(AndroidDriver.java:95)
at com.appium.gesture.BaseUserTest.androidCaps(BaseUserTest.java:60)
at com.appium.gesture.BaseUserTest.launchApp(BaseUserTest.java:89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
at org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:59)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:458)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:222)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:523)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
at org.testng.TestRunner.privateRun(TestRunner.java:648)
at org.testng.TestRunner.run(TestRunner.java:505)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
at org.testng.SuiteRunner.run(SuiteRunner.java:364)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
at org.testng.TestNG.runSuites(TestNG.java:1049)
at org.testng.TestNG.run(TestNG.java:1017)
at org.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:72)
at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:127)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:186)
... 41 more
Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: The process did not start within 30000ms (cmd: '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell am instrument -w -e debug false io.appium.espressoserver.test/android.support.test.runner.AndroidJUnitRunner')
Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-02T20:19:58.91Z'
System info: host: 'INshridhk.local', ip: 'fe80:0:0:0:1038:cfb2:b2b7:3f77%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.6', java.version: '1.8.0_65'
Driver info: driver.version: AndroidDriver
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: The process did not start within 30000ms (cmd: '/Users/shridhk/GitHub/Documents/VodQAAppium/Tools/SDK/platform-tools/adb -P 5037 -s 81c16a94 shell am instrument -w -e debug false io.appium.espressoserver.test/android.support.test.runner.AndroidJUnitRunner')
at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:824:9)
at asyncHandler$ (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:375:37)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$new$0(W3CHandshakeResponse.java:57)
at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$getResponseFunction$2(W3CHandshakeResponse.java:104)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:122)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:125)
... 46 more
Test ignored.
===============================================
Default Suite
Total tests run: 1, Failures: 0, Skips: 1
Configuration Failures: 1, Skips: 2
===============================================
Process finished with exit code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment