Appium Log
Starting Node Server
warn: Appium support for versions of node < 0.12 has been deprecated and will be removed in a future version. Please upgrade!
info: Welcome to Appium v1.4.0 (REV 8f63e2f91ef7907aed8bda763f4e5ca08e86970a)
info: Appium REST http interface listener started on 127.0.0.1:4723
info: [debug] Non-default server args: {“address”:“127.0.0.1”,“logNoColors”:true,“platformName”:“Android”,“platformVersion”:“18”,“automationName”:“Appium”}
info: Console LogLevel: debug
info: → POST /wd/hub/session {“desiredCapabilities”:{“app”:“E://Android/Apks/copart.apk”,“appPackage”:“com.popcorn.copartapp”,“appActivity”:“com.popcorn.copartapp.CopartSplashScreen”,“platformVersion”:“4.4.2”,“platformName”:“Android”,“deviceName”:“42031c94b43da100”}}
info: Client User-Agent string: Apache-HttpClient/4.4.1 (Java/1.8.0_45)
info: [debug] Using local app from desired caps: E:\Android\Apks\copart.apk
info: [debug] Creating new appium session 37dfaa74-4680-4d08-ab38-e9a0bb06e630
info: Starting android appium
info: [debug] Getting Java version
info: Java version is: 1.8.0_45
info: [debug] Checking whether adb is present
info: [debug] Using adb from E:\Android\android-sdk-windows\platform-tools\adb.exe
info: [debug] Set chromedriver binary as: C:\Program Files (x86)\Appium\node_modules\appium\build\chromedriver\windows\chromedriver.exe
info: [debug] Using fast reset? true
info: [debug] Preparing device for session
info: [debug] Checking whether app is actually present
info: Retrieving device
info: [debug] Trying to find a connected android device
info: [debug] Getting connected devices…
info: [debug] executing cmd: E:\Android\android-sdk-windows\platform-tools\adb.exe devices
info: [debug] 1 device(s) connected
info: Found device 42031c94b43da100
info: [debug] Setting device id to 42031c94b43da100
info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5)
info: [debug] executing cmd: E:\Android\android-sdk-windows\platform-tools\adb.exe -s 42031c94b43da100 wait-for-device
info: [debug] executing cmd: E:\Android\android-sdk-windows\platform-tools\adb.exe -s 42031c94b43da100 shell “echo ‘ready’”
info: [debug] Starting logcat capture
info: [debug] Getting device API level
info: [debug] executing cmd: E:\Android\android-sdk-windows\platform-tools\adb.exe -s 42031c94b43da100 shell “getprop ro.build.version.sdk”
info: [debug] Device is at API Level 19
info: Device API level is: 19
info: [debug] Extracting strings for language: default
info: [debug] executing cmd: E:\Android\android-sdk-windows\platform-tools\adb.exe -s 42031c94b43da100 shell “getprop persist.sys.language”
info: [debug] Current device persist.sys.language: en
info: [debug] java -jar “C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\jars\appium_apk_tools.jar” “stringsFromApk” “E:\Android\Apks\copart.apk” “C:\Users\RAVI\AppData\Local\Temp\com.popcorn.copartapp” en
info: [debug] No strings.xml for language ‘en’, getting default strings.xml
info: [debug] java -jar “C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\jars\appium_apk_tools.jar” “stringsFromApk” “E:\Android\Apks\copart.apk” “C:\Users\RAVI\AppData\Local\Temp\com.popcorn.copartapp”
info: [debug] Reading strings from converted strings.json
info: [debug] Setting language to default
info: [debug] executing cmd: E:\Android\android-sdk-windows\platform-tools\adb.exe -s 42031c94b43da100 push “C:\Users\RAVI\AppData\Local\Temp\com.popcorn.copartapp\strings.json” /data/local/tmp
info: [debug] Checking whether aapt is present
info: [debug] Using aapt from E:\Android\android-sdk-windows\build-tools\22.0.1\aapt.exe
info: [debug] Retrieving process from manifest.
info: [debug] executing cmd: E:\Android\android-sdk-windows\build-tools\22.0.1\aapt.exe dump xmltree E:\Android\Apks\copart.apk AndroidManifest.xml
info: [debug] Set app process to: com.popcorn.copartapp
info: [debug] Not uninstalling app since server not started with --full-reset
info: [debug] Checking app cert for E:\Android\Apks\copart.apk.
info: [debug] executing cmd: java -jar “C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\jars\verify.jar” E:\Android\Apks\copart.apk
info: [debug] App already signed.
info: [debug] Zip-aligning E:\Android\Apks\copart.apk
info: [debug] Checking whether zipalign is present
info: [debug] Using zipalign from E:\Android\android-sdk-windows\build-tools\22.0.1\zipalign.exe
info: [debug] Zip-aligning apk.
info: [debug] executing cmd: E:\Android\android-sdk-windows\build-tools\22.0.1\zipalign.exe -f 4 E:\Android\Apks\copart.apk C:\Users\RAVI\AppData\Local\Temp\11565-2508-1j6amgm\appium.tmp
info: [debug] MD5 for app is 040386c14a6fe0ab35788193a2a74572
info: [debug] executing cmd: E:\Android\android-sdk-windows\platform-tools\adb.exe -s 42031c94b43da100 shell “ls /data/local/tmp/040386c14a6fe0ab35788193a2a74572.apk”
info: [debug] Getting install status for com.popcorn.copartapp
info: [debug] Getting device API level
info: [debug] executing cmd: E:\Android\android-sdk-windows\platform-tools\adb.exe -s 42031c94b43da100 shell “getprop ro.build.version.sdk”
info: [debug] Device is at API Level 19
info: [debug] executing cmd: E:\Android\android-sdk-windows\platform-tools\adb.exe -s 42031c94b43da100 shell “pm list packages -3 com.popcorn.copartapp”
info: [debug] App is not installed
info: Installing App
info: [debug] executing cmd: E:\Android\android-sdk-windows\platform-tools\adb.exe -s 42031c94b43da100 shell “mkdir -p /data/local/tmp/”
info: [debug] Removing any old apks
info: [debug] executing cmd: E:\Android\android-sdk-windows\platform-tools\adb.exe -s 42031c94b43da100 shell “ls /data/local/tmp/*.apk”
info: [debug] Found an apk we want to keep at /data/local/tmp/040386c14a6fe0ab35788193a2a74572.apk
info: [debug] Couldn’t find any apks to remove
info: [debug] Uninstalling com.popcorn.copartapp
info: [debug] executing cmd: E:\Android\android-sdk-windows\platform-tools\adb.exe -s 42031c94b43da100 shell “am force-stop com.popcorn.copartapp”
info: [debug] executing cmd: E:\Android\android-sdk-windows\platform-tools\adb.exe -s 42031c94b43da100 uninstall com.popcorn.copartapp
info: [debug] App was not uninstalled, maybe it wasn’t on device?
info: [debug] executing cmd: E:\Android\android-sdk-windows\platform-tools\adb.exe -s 42031c94b43da100 shell “pm install -r /data/local/tmp/040386c14a6fe0ab35788193a2a74572.apk”
info: [debug] Forwarding system:4724 to device:4724
info: [debug] executing cmd: E:\Android\android-sdk-windows\platform-tools\adb.exe -s 42031c94b43da100 forward tcp:4724 tcp:4724
info: [debug] Pushing appium bootstrap to device…
info: [debug] executing cmd: E:\Android\android-sdk-windows\platform-tools\adb.exe -s 42031c94b43da100 push “C:\Program Files (x86)\Appium\node_modules\appium\build\android_bootstrap\AppiumBootstrap.jar” /data/local/tmp/
info: [debug] Pushing settings apk to device…
info: [debug] executing cmd: E:\Android\android-sdk-windows\platform-tools\adb.exe -s 42031c94b43da100 install “C:\Program Files (x86)\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apk”
info: [debug] Pushing unlock helper app to device…
info: [debug] executing cmd: E:\Android\android-sdk-windows\platform-tools\adb.exe -s 42031c94b43da100 install “C:\Program Files (x86)\Appium\node_modules\appium\build\unlock_apk\unlock_apk-debug.apk”
info: Starting App
info: [debug] Attempting to kill all ‘uiautomator’ processes
info: [debug] Getting all processes with ‘uiautomator’
info: [debug] executing cmd: E:\Android\android-sdk-windows\platform-tools\adb.exe -s 42031c94b43da100 shell “ps ‘uiautomator’”
info: [debug] No matching processes found
info: [debug] Running bootstrap
info: [debug] spawning: E:\Android\android-sdk-windows\platform-tools\adb.exe -s 42031c94b43da100 shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap -e pkg com.popcorn.copartapp -e disableAndroidWatchers false
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
info: [debug] [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.Bootstrap:
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 1
info: [debug] [BOOTSTRAP] [debug] Socket opened on port 4724
info: [debug] [BOOTSTRAP] [debug] Appium Socket Server Ready
info: [debug] [BOOTSTRAP] [debug] Loading json…
info: [debug] Waking up device if it’s not alive
info: [debug] Pushing command to appium work queue: [“wake”,{}]
info: [debug] [BOOTSTRAP] [debug] json loading complete.
info: [debug] [BOOTSTRAP] [debug] Registered crash watchers.
info: [debug] [BOOTSTRAP] [debug] Client connected
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“wake”,“params”:{}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: wake
info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:true,“status”:0}
info: [debug] executing cmd: E:\Android\android-sdk-windows\platform-tools\adb.exe -s 42031c94b43da100 shell “dumpsys window”
info: [debug] Screen already unlocked, continuing.
info: [debug] Pushing command to appium work queue: [“getDataDir”,{}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“getDataDir”,“params”:{}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: getDataDir
info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:“/data/local/tmp”,“status”:0}
info: [debug] dataDir set to: /data/local/tmp
info: [debug] Pushing command to appium work queue: [“compressedLayoutHierarchy”,{“compressLayout”:false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“compressedLayoutHierarchy”,“params”:{“compressLayout”:false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: compressedLayoutHierarchy
info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:false,“status”:0}
info: [debug] Getting device API level
info: [debug] executing cmd: E:\Android\android-sdk-windows\platform-tools\adb.exe -s 42031c94b43da100 shell “getprop ro.build.version.sdk”
info: [debug] Device is at API Level 19
info: [debug] executing cmd: E:\Android\android-sdk-windows\platform-tools\adb.exe -s 42031c94b43da100 shell “am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n com.popcorn.copartapp/com.popcorn.copartapp.CopartSplashScreen”
info: [debug] We tried to start an activity that doesn’t exist, retrying with . prepended to activity
info: [debug] Getting device API level
info: [debug] executing cmd: E:\Android\android-sdk-windows\platform-tools\adb.exe -s 42031c94b43da100 shell “getprop ro.build.version.sdk”
info: [debug] Device is at API Level 19
info: [debug] executing cmd: E:\Android\android-sdk-windows\platform-tools\adb.exe -s 42031c94b43da100 shell “am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n com.popcorn.copartapp/.com.popcorn.copartapp.CopartSplashScreen”
error: Activity used to start app doesn’t exist or cannot be launched! Make sure it exists and is a launchable activity
info: [debug] Stopping logcat capture
info: [debug] Logcat terminated with code null, signal SIGTERM
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“shutdown”}
info: [debug] [BOOTSTRAP] [debug] Got command of type SHUTDOWN
info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:“OK, shutting down”,“status”:0}
info: [debug] [BOOTSTRAP] [debug] Closed client connection
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=.
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 0
info: [debug] Sent shutdown command, waiting for UiAutomator to stop…
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
info: [debug] [UIAUTOMATOR STDOUT] Test results for WatcherResultPrinter=.
info: [debug] [UIAUTOMATOR STDOUT] Time: 4.366
info: [debug] [UIAUTOMATOR STDOUT] OK (1 test)
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: -1
info: [debug] UiAutomator shut down normally
error: Failed to start an Appium session, err was: Error: Activity used to start app doesn’t exist or cannot be launched! Make sure it exists and is a launchable activity
info: [debug] Cleaning up android objects
info: [debug] Cleaning up appium session
info: [debug] Error: Activity used to start app doesn’t exist or cannot be launched! Make sure it exists and is a launchable activity
at [object Object]. (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:1146:21)
at [object Object]. (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:180:9)
at ChildProcess.exithandler (child_process.js:635:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)
info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Activity used to start app doesn’t exist or cannot be launched! Make sure it exists and is a launchable activity)”,“origValue”:“Activity used to start app doesn’t exist or cannot be launched! Make sure it exists and is a launchable activity”},“sessionId”:null}
info: ← POST /wd/hub/session 500 77406.440 ms - 346