When i run a specific .apk file it throws an error, But some times it runs fine.
If i change app apk file and run the same code with a different app .apk file it runs fine. Do you guys know what could be the issue?
Exception in thread “main” org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: com.dominospizza/.activities.InitialLaunchActivity never started. Current: com.dominospizza/com.dominos.activities.LandingActivity_) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 34.60 seconds
Build info: version: ‘2.44.0’, revision: ‘76d78cf’, time: ‘2014-10-23 20:03:00’
System info: host: ‘AWANW-8460W’, ip: ‘10.1.158.54’, os.name: ‘Windows 7’, os.arch: ‘amd64’, os.version: ‘6.1’, java.version: ‘1.8.0_25’
Driver info: io.appium.java_client.AppiumDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:204)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:156)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:599)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:95)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:240)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:126)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:153)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:49)
at DominosApp.main(DominosApp.java:33)
ddress":“127.0.0.1”,“noReset”:true,“logNoColors”:true,“platformName”:“Android”,“platformVersion”:“18”,“automationName”:“Appium”}
info: Appium REST http interface listener started on 127.0.0.1:4723
info: LogLevel: debug
info: → POST /wd/hub/session {“desiredCapabilities”:{“app”:“C:\Users\awanw\Downloads\com.whatsapp-2.apk”,“platformVersion”:“4.4.2”,“browserName”:“”,“platformName”:“Android”,“deviceName”:“SM-N900V”}}
debug: Appium request initiated at /wd/hub/session
debug: Request received with params: {“desiredCapabilities”:{“app”:“C:\Users\awanw\Downloads\com.whatsapp-2.apk”,“platformVersion”:“4.4.2”,“browserName”:“”,“platformName”:“Android”,“deviceName”:“SM-N900V”}}
info: Starting android appium
debug: No appActivity desired capability or server param. Parsing from apk.
debug: No appPackage desired capability or server param. Parsing from apk.
debug: Using local app from desired caps: C:\Users\awanw\Downloads\com.whatsapp-2.apk
info: Retrieving device
debug: Creating new appium session 252ca727-d549-4248-a1bf-298a32377674
debug: Using fast reset? false
debug: Preparing device for session
debug: Checking whether app is actually present
debug: Checking whether adb is present
debug: Using adb from C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe
debug: Trying to find a connected android device
debug: Getting connected devices…
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” devices
debug: 1 device(s) connected
info: Found device 0e40b630
debug: Setting device id to 0e40b630
debug: Waiting for device to be ready and to respond to shell commands (timeout = 5)
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 wait-for-device
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “echo ‘ready’”
debug: Starting logcat capture
debug: Parsing package and activity from app manifest
debug: Checking whether aapt is present
debug: Using aapt from C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\build-tools\19.1.0\aapt.exe
debug: packageAndLaunchActivityFromManifest: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\build-tools\19.1.0\aapt.exe” dump badging C:\Users\awanw\Downloads\com.whatsapp-2.apk
debug: badging package: com.whatsapp
debug: badging act: com.whatsapp.Main
debug: Parsed package and activity are: com.whatsapp/com.whatsapp.Main
debug: Getting device API level
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “getprop ro.build.version.sdk”
debug: Device is at API Level 19
info: Device API level is: 19
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “getprop persist.sys.language”
debug: Current device language: en
debug: java -jar “C:\Users\awanw\Desktop\Mobile Automation\Appium\node_modules\appium\node_modules\appium-adb\jars\strings_from_apk.jar” “C:\Users\awanw\Downloads\com.whatsapp-2.apk” “C:\Windows\Temp\com.whatsapp” en
debug: No strings.xml for language ‘en’, getting default strings.xml
debug: java -jar “C:\Users\awanw\Desktop\Mobile Automation\Appium\node_modules\appium\node_modules\appium-adb\jars\strings_from_apk.jar” “C:\Users\awanw\Downloads\com.whatsapp-2.apk” “C:\Windows\Temp\com.whatsapp”
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 push “C:\Windows\Temp\com.whatsapp\strings.json” /data/local/tmp
debug: Checking whether aapt is present
debug: Using aapt from C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\build-tools\19.1.0\aapt.exe
debug: processFromManifest: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\build-tools\19.1.0\aapt.exe” dump xmltree “C:\Users\awanw\Downloads\com.whatsapp-2.apk” AndroidManifest.xml
debug: Set app process to: com.whatsapp
debug: Not uninstalling app since server not started with --full-reset
debug: Checking app cert for C:\Users\awanw\Downloads\com.whatsapp-2.apk: java -jar “C:\Users\awanw\Desktop\Mobile Automation\Appium\node_modules\appium\node_modules\appium-adb\jars\verify.jar” “C:\Users\awanw\Downloads\com.whatsapp-2.apk”
debug: App already signed.
debug: Zip-aligning C:\Users\awanw\Downloads\com.whatsapp-2.apk
debug: Checking whether zipalign is present
debug: Using zipalign from C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\build-tools\19.1.0\zipalign.exe
debug: zipAlignApk: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\build-tools\19.1.0\zipalign.exe” -f 4 “C:\Users\awanw\Downloads\com.whatsapp-2.apk” “C:\Users\awanw\AppData\Local\Temp\appium1141015-6920-1vofzki.tmp”
debug: MD5 for app is ef5cbd229db7dcc8d5f84dfdfeb5505c
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “ls /data/local/tmp/ef5cbd229db7dcc8d5f84dfdfeb5505c.apk”
debug: Getting install status for com.whatsapp
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “pm list packages -3 com.whatsapp”
debug: App is installed
debug: Forwarding system:4724 to device:4724
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 forward tcp:4724 tcp:4724
debug: Pushing appium bootstrap to device…
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 push “C:\Users\awanw\Desktop\Mobile Automation\Appium\node_modules\appium\build\android_bootstrap\AppiumBootstrap.jar” /data/local/tmp/
debug: Pushing settings apk to device…
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 install “C:\Users\awanw\Desktop\Mobile Automation\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apk”
debug: Pushing unlock helper app to device…
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 install “C:\Users\awanw\Desktop\Mobile Automation\Appium\node_modules\appium\build\unlock_apk\unlock_apk-debug.apk”
info: Starting App
debug: Attempting to kill all ‘uiautomator’ processes
debug: Getting all processes with ‘uiautomator’
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “ps ‘uiautomator’”
debug: No matching processes found
debug: Running bootstrap
debug: spawning: C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe -s 0e40b630 shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
debug: [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.Bootstrap:
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 1
debug: [BOOTSTRAP] [debug] Socket opened on port 4724
debug: [BOOTSTRAP] [debug] Appium Socket Server Ready
debug: [BOOTSTRAP] [debug] Loading json…
debug: Waking up device if it’s not alive
debug: Pushing command to appium work queue: [“wake”,{}]
debug: [BOOTSTRAP] [debug] json loading complete.
debug: [BOOTSTRAP] [debug] Registered crash watchers.
debug: [BOOTSTRAP] [debug] Client connected
debug: [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“wake”,“params”:{}}
debug: [BOOTSTRAP] [debug] Got command of type ACTION
debug: [BOOTSTRAP] [debug] Got command action: wake
debug: [BOOTSTRAP] [debug] Returning result: {“value”:true,“status”:0}
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “dumpsys window”
debug: Writing dumpsys output to C:\Users\awanw\Desktop\Mobile Automation\Appium\node_modules\appium.dumpsys.log
debug: Screen already unlocked, continuing.
debug: Pushing command to appium work queue: [“getDataDir”,{}]
debug: [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“getDataDir”,“params”:{}}
debug: [BOOTSTRAP] [debug] Got command of type ACTION
debug: [BOOTSTRAP] [debug] Got command action: getDataDir
debug: [BOOTSTRAP] [debug] Returning result: {“value”:“/data/local/tmp”,“status”:0}
debug: dataDir set to: /data/local/tmp
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n com.whatsapp/com.whatsapp.Main”
debug: Waiting for pkg “com.whatsapp” and activity “com.whatsapp.Main” to be focused
debug: Getting focused package and activity
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “dumpsys window windows”
debug: Device launched! Ready for commands
info: ← POST /wd/hub/session 303 58800.695 ms - 9
debug: Setting command timeout to the default of 60 secs
debug: Appium session started with sessionId 252ca727-d549-4248-a1bf-298a32377674
info: → GET /wd/hub/session/252ca727-d549-4248-a1bf-298a32377674 {}
debug: Appium request initiated at /wd/hub/session/252ca727-d549-4248-a1bf-298a32377674
info: ← GET /wd/hub/session/252ca727-d549-4248-a1bf-298a32377674 200 3.230 ms - 512 {“status”:0,“value”:{“platform”:“LINUX”,“browserName”:“”,“platformVersion”:“4.4.2”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“warnings”:{},“desired”:{“app”:“C:\Users\awanw\Downloads\com.whatsapp-2.apk”,“platformVersion”:“4.4.2”,“browserName”:“”,“platformName”:“Android”,“deviceName”:“SM-N900V”},“app”:“C:\Users\awanw\Downloads\com.whatsapp-2.apk”,“platformName”:“Android”,“deviceName”:“SM-N900V”},“sessionId”:“252ca727-d549-4248-a1bf-298a32377674”}
debug: Request received with params: {}
debug: Responding to client with success: {“status”:0,“value”:{“platform”:“LINUX”,“browserName”:“”,“platformVersion”:“4.4.2”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“warnings”:{},“desired”:{“app”:“C:\Users\awanw\Downloads\com.whatsapp-2.apk”,“platformVersion”:“4.4.2”,“browserName”:“”,“platformName”:“Android”,“deviceName”:“SM-N900V”},“app”:“C:\Users\awanw\Downloads\com.whatsapp-2.apk”,“platformName”:“Android”,“deviceName”:“SM-N900V”},“sessionId”:“252ca727-d549-4248-a1bf-298a32377674”}
info: → POST /wd/hub/session/252ca727-d549-4248-a1bf-298a32377674/timeouts/implicit_wait {“ms”:10000}
debug: Appium request initiated at /wd/hub/session/252ca727-d549-4248-a1bf-298a32377674/timeouts/implicit_wait
debug: Request received with params: {“ms”:10000}
info: ← POST /wd/hub/session/252ca727-d549-4248-a1bf-298a32377674/timeouts/implicit_wait 200 1.897 ms - 76 {“status”:0,“value”:null,“sessionId”:“252ca727-d549-4248-a1bf-298a32377674”}
debug: Set Android implicit wait to 10000ms
debug: Responding to client with success: {“status”:0,“value”:null,“sessionId”:“252ca727-d549-4248-a1bf-298a32377674”}
Killed Node Server.
Node Server Process Ended
Starting Node Server
info: Welcome to Appium v1.2.0 (REV e53f49c706a25242e66d36685c268b599cc18da5)
debug: Non-default server args: {“address”:“127.0.0.1”,“noReset”:true,“logNoColors”:true,“platformName”:“Android”,“platformVersion”:“18”,“automationName”:“Appium”}
info: Appium REST http interface listener started on 127.0.0.1:4723
info: LogLevel: debug
info: → POST /wd/hub/session {“desiredCapabilities”:{“app”:“C:\Users\awanw\Downloads\com.whatsapp-2.apk”,“platformVersion”:“4.4.2”,“browserName”:“”,“platformName”:“Android”,“deviceName”:“SM-N900V”}}
debug: Appium request initiated at /wd/hub/session
debug: Request received with params: {“desiredCapabilities”:{“app”:“C:\Users\awanw\Downloads\com.whatsapp-2.apk”,“platformVersion”:“4.4.2”,“browserName”:“”,“platformName”:“Android”,“deviceName”:“SM-N900V”}}
info: Starting android appium
debug: No appActivity desired capability or server param. Parsing from apk.
info: Retrieving device
debug: No appPackage desired capability or server param. Parsing from apk.
debug: Using local app from desired caps: C:\Users\awanw\Downloads\com.whatsapp-2.apk
debug: Creating new appium session 5f297b70-d90d-421a-8f98-b3a0a865d03b
debug: Using fast reset? false
debug: Preparing device for session
debug: Checking whether app is actually present
debug: Checking whether adb is present
debug: Using adb from C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe
debug: Trying to find a connected android device
debug: Getting connected devices…
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” devices
debug: 1 device(s) connected
info: Found device 0e40b630
debug: Setting device id to 0e40b630
debug: Waiting for device to be ready and to respond to shell commands (timeout = 5)
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 wait-for-device
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “echo ‘ready’”
debug: Starting logcat capture
debug: Parsing package and activity from app manifest
debug: Checking whether aapt is present
debug: Using aapt from C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\build-tools\19.1.0\aapt.exe
debug: packageAndLaunchActivityFromManifest: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\build-tools\19.1.0\aapt.exe” dump badging C:\Users\awanw\Downloads\com.whatsapp-2.apk
debug: badging package: com.whatsapp
debug: badging act: com.whatsapp.Main
debug: Parsed package and activity are: com.whatsapp/com.whatsapp.Main
debug: Getting device API level
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “getprop ro.build.version.sdk”
debug: Device is at API Level 19
info: Device API level is: 19
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “getprop persist.sys.language”
debug: Current device language: en
debug: java -jar “C:\Users\awanw\Desktop\Mobile Automation\Appium\node_modules\appium\node_modules\appium-adb\jars\strings_from_apk.jar” “C:\Users\awanw\Downloads\com.whatsapp-2.apk” “C:\Windows\Temp\com.whatsapp” en
debug: No strings.xml for language ‘en’, getting default strings.xml
debug: java -jar “C:\Users\awanw\Desktop\Mobile Automation\Appium\node_modules\appium\node_modules\appium-adb\jars\strings_from_apk.jar” “C:\Users\awanw\Downloads\com.whatsapp-2.apk” “C:\Windows\Temp\com.whatsapp”
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 push “C:\Windows\Temp\com.whatsapp\strings.json” /data/local/tmp
debug: Checking whether aapt is present
debug: Using aapt from C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\build-tools\19.1.0\aapt.exe
debug: processFromManifest: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\build-tools\19.1.0\aapt.exe” dump xmltree “C:\Users\awanw\Downloads\com.whatsapp-2.apk” AndroidManifest.xml
debug: Set app process to: com.whatsapp
debug: Not uninstalling app since server not started with --full-reset
debug: Checking app cert for C:\Users\awanw\Downloads\com.whatsapp-2.apk: java -jar “C:\Users\awanw\Desktop\Mobile Automation\Appium\node_modules\appium\node_modules\appium-adb\jars\verify.jar” “C:\Users\awanw\Downloads\com.whatsapp-2.apk”
debug: App already signed.
debug: Zip-aligning C:\Users\awanw\Downloads\com.whatsapp-2.apk
debug: Checking whether zipalign is present
debug: Using zipalign from C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\build-tools\19.1.0\zipalign.exe
debug: zipAlignApk: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\build-tools\19.1.0\zipalign.exe” -f 4 “C:\Users\awanw\Downloads\com.whatsapp-2.apk” “C:\Users\awanw\AppData\Local\Temp\appium1141015-5136-18bygrj.tmp”
debug: MD5 for app is ef5cbd229db7dcc8d5f84dfdfeb5505c
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “ls /data/local/tmp/ef5cbd229db7dcc8d5f84dfdfeb5505c.apk”
debug: Getting install status for com.whatsapp
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “pm list packages -3 com.whatsapp”
debug: App is installed
debug: Forwarding system:4724 to device:4724
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 forward tcp:4724 tcp:4724
debug: Pushing appium bootstrap to device…
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 push “C:\Users\awanw\Desktop\Mobile Automation\Appium\node_modules\appium\build\android_bootstrap\AppiumBootstrap.jar” /data/local/tmp/
debug: Pushing settings apk to device…
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 install “C:\Users\awanw\Desktop\Mobile Automation\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apk”
debug: Pushing unlock helper app to device…
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 install “C:\Users\awanw\Desktop\Mobile Automation\Appium\node_modules\appium\build\unlock_apk\unlock_apk-debug.apk”
info: Starting App
debug: Attempting to kill all ‘uiautomator’ processes
debug: Getting all processes with ‘uiautomator’
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “ps ‘uiautomator’”
debug: No matching processes found
debug: Running bootstrap
debug: spawning: C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe -s 0e40b630 shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
debug: [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.Bootstrap:
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 1
debug: [BOOTSTRAP] [debug] Socket opened on port 4724
debug: [BOOTSTRAP] [debug] Appium Socket Server Ready
debug: [BOOTSTRAP] [debug] Loading json…
debug: Waking up device if it’s not alive
debug: Pushing command to appium work queue: [“wake”,{}]
debug: [BOOTSTRAP] [debug] json loading complete.
debug: [BOOTSTRAP] [debug] Registered crash watchers.
debug: [BOOTSTRAP] [debug] Client connected
debug: [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“wake”,“params”:{}}
debug: [BOOTSTRAP] [debug] Got command of type ACTION
debug: [BOOTSTRAP] [debug] Got command action: wake
debug: [BOOTSTRAP] [debug] Returning result: {“value”:true,“status”:0}
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “dumpsys window”
debug: Writing dumpsys output to C:\Users\awanw\Desktop\Mobile Automation\Appium\node_modules\appium.dumpsys.log
debug: Screen already unlocked, continuing.
debug: Pushing command to appium work queue: [“getDataDir”,{}]
debug: [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“getDataDir”,“params”:{}}
debug: [BOOTSTRAP] [debug] Got command of type ACTION
debug: [BOOTSTRAP] [debug] Got command action: getDataDir
debug: [BOOTSTRAP] [debug] Returning result: {“value”:“/data/local/tmp”,“status”:0}
debug: dataDir set to: /data/local/tmp
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n com.whatsapp/com.whatsapp.Main”
debug: Waiting for pkg “com.whatsapp” and activity “com.whatsapp.Main” to be focused
debug: Getting focused package and activity
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “dumpsys window windows”
debug: Device launched! Ready for commands
info: ← POST /wd/hub/session 303 66591.044 ms - 9
debug: Setting command timeout to the default of 60 secs
debug: Appium session started with sessionId 5f297b70-d90d-421a-8f98-b3a0a865d03b
info: → GET /wd/hub/session/5f297b70-d90d-421a-8f98-b3a0a865d03b {}
debug: Appium request initiated at /wd/hub/session/5f297b70-d90d-421a-8f98-b3a0a865d03b
debug: Request received with params: {}
debug: Responding to client with success: {“status”:0,“value”:{“platform”:“LINUX”,“browserName”:“”,“platformVersion”:“4.4.2”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“warnings”:{},“desired”:{“app”:“C:\Users\awanw\Downloads\com.whatsapp-2.apk”,“platformVersion”:“4.4.2”,“browserName”:“”,“platformName”:“Android”,“deviceName”:“SM-N900V”},“app”:“C:\Users\awanw\Downloads\com.whatsapp-2.apk”,“platformName”:“Android”,“deviceName”:“SM-N900V”},“sessionId”:“5f297b70-d90d-421a-8f98-b3a0a865d03b”}
info: ← GET /wd/hub/session/5f297b70-d90d-421a-8f98-b3a0a865d03b 200 2.191 ms - 512 {“status”:0,“value”:{“platform”:“LINUX”,“browserName”:“”,“platformVersion”:“4.4.2”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“warnings”:{},“desired”:{“app”:“C:\Users\awanw\Downloads\com.whatsapp-2.apk”,“platformVersion”:“4.4.2”,“browserName”:“”,“platformName”:“Android”,“deviceName”:“SM-N900V”},“app”:“C:\Users\awanw\Downloads\com.whatsapp-2.apk”,“platformName”:“Android”,“deviceName”:“SM-N900V”},“sessionId”:“5f297b70-d90d-421a-8f98-b3a0a865d03b”}
info: → POST /wd/hub/session/5f297b70-d90d-421a-8f98-b3a0a865d03b/timeouts/implicit_wait {“ms”:10000}
debug: Appium request initiated at /wd/hub/session/5f297b70-d90d-421a-8f98-b3a0a865d03b/timeouts/implicit_wait
info: ← POST /wd/hub/session/5f297b70-d90d-421a-8f98-b3a0a865d03b/timeouts/implicit_wait 200 1.984 ms - 76 {“status”:0,“value”:null,“sessionId”:“5f297b70-d90d-421a-8f98-b3a0a865d03b”}
debug: Request received with params: {“ms”:10000}
debug: Set Android implicit wait to 10000ms
debug: Responding to client with success: {“status”:0,“value”:null,“sessionId”:“5f297b70-d90d-421a-8f98-b3a0a865d03b”}
debug: Didn’t get a new command in 60 secs, shutting down…
info: Shutting down appium session
debug: Pressing the HOME button
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “input keyevent 3”
debug: Stopping logcat capture
debug: Logcat terminated with code null, signal SIGTERM
debug: [BOOTSTRAP] [debug] Got data from client: {“cmd”:“shutdown”}
debug: [BOOTSTRAP] [debug] Got command of type SHUTDOWN
debug: [BOOTSTRAP] [debug] Returning result: {“value”:“OK, shutting down”,“status”:0}
debug: [BOOTSTRAP] [debug] Closed client connection
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=.
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 0
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
debug: [UIAUTOMATOR STDOUT] Test results for WatcherResultPrinter=.
debug: [UIAUTOMATOR STDOUT] Time: 62.776
debug: [UIAUTOMATOR STDOUT] OK (1 test)
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: -1
debug: Sent shutdown command, waiting for UiAutomator to stop…
debug: UiAutomator shut down normally
debug: Cleaning up android objects
debug: Cleaning up appium session
debug: We shut down because no new commands came in
Killed Node Server.
Node Server Process Ended
Starting Node Server
info: Welcome to Appium v1.2.0 (REV e53f49c706a25242e66d36685c268b599cc18da5)
debug: Non-default server args: {“address”:“127.0.0.1”,“noReset”:true,“logNoColors”:true,“platformName”:“Android”,“platformVersion”:“18”,“automationName”:“Appium”}
info: Appium REST http interface listener started on 127.0.0.1:4723
info: LogLevel: debug
info: → POST /wd/hub/session {“desiredCapabilities”:{“app”:“C:\Users\awanw\Downloads\com.dominospizza.apk”,“platformVersion”:“4.4.2”,“browserName”:“”,“platformName”:“Android”,“deviceName”:“SM-N900V”}}
debug: Appium request initiated at /wd/hub/session
debug: Request received with params: {“desiredCapabilities”:{“app”:“C:\Users\awanw\Downloads\com.dominospizza.apk”,“platformVersion”:“4.4.2”,“browserName”:“”,“platformName”:“Android”,“deviceName”:“SM-N900V”}}
info: Starting android appium
debug: No appActivity desired capability or server param. Parsing from apk.
info: Retrieving device
debug: No appPackage desired capability or server param. Parsing from apk.
debug: Using local app from desired caps: C:\Users\awanw\Downloads\com.dominospizza.apk
debug: Creating new appium session cb237329-7129-402a-95f5-e998dbf05c2f
debug: Using fast reset? false
debug: Preparing device for session
debug: Checking whether app is actually present
debug: Checking whether adb is present
debug: Using adb from C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe
debug: Trying to find a connected android device
debug: Getting connected devices…
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” devices
debug: 1 device(s) connected
info: Found device 0e40b630
debug: Setting device id to 0e40b630
debug: Waiting for device to be ready and to respond to shell commands (timeout = 5)
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 wait-for-device
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “echo ‘ready’”
debug: Starting logcat capture
debug: Parsing package and activity from app manifest
debug: Checking whether aapt is present
debug: Using aapt from C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\build-tools\19.1.0\aapt.exe
debug: packageAndLaunchActivityFromManifest: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\build-tools\19.1.0\aapt.exe” dump badging C:\Users\awanw\Downloads\com.dominospizza.apk
debug: badging package: com.dominospizza
debug: badging act: com.dominospizza.activities.InitialLaunchActivity
debug: Parsed package and activity are: com.dominospizza/com.dominospizza.activities.InitialLaunchActivity
debug: Getting device API level
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “getprop ro.build.version.sdk”
debug: Device is at API Level 19
info: Device API level is: 19
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “getprop persist.sys.language”
debug: Current device language: en
debug: java -jar “C:\Users\awanw\Desktop\Mobile Automation\Appium\node_modules\appium\node_modules\appium-adb\jars\strings_from_apk.jar” “C:\Users\awanw\Downloads\com.dominospizza.apk” “C:\Windows\Temp\com.dominospizza” en
debug: No strings.xml for language ‘en’, getting default strings.xml
debug: java -jar “C:\Users\awanw\Desktop\Mobile Automation\Appium\node_modules\appium\node_modules\appium-adb\jars\strings_from_apk.jar” “C:\Users\awanw\Downloads\com.dominospizza.apk” “C:\Windows\Temp\com.dominospizza”
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 push “C:\Windows\Temp\com.dominospizza\strings.json” /data/local/tmp
debug: Checking whether aapt is present
debug: Using aapt from C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\build-tools\19.1.0\aapt.exe
debug: processFromManifest: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\build-tools\19.1.0\aapt.exe” dump xmltree “C:\Users\awanw\Downloads\com.dominospizza.apk” AndroidManifest.xml
debug: Set app process to: com.dominospizza
debug: Not uninstalling app since server not started with --full-reset
debug: Checking app cert for C:\Users\awanw\Downloads\com.dominospizza.apk: java -jar “C:\Users\awanw\Desktop\Mobile Automation\Appium\node_modules\appium\node_modules\appium-adb\jars\verify.jar” “C:\Users\awanw\Downloads\com.dominospizza.apk”
debug: App already signed.
debug: Zip-aligning C:\Users\awanw\Downloads\com.dominospizza.apk
debug: Checking whether zipalign is present
debug: Using zipalign from C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\build-tools\19.1.0\zipalign.exe
debug: zipAlignApk: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\build-tools\19.1.0\zipalign.exe” -f 4 “C:\Users\awanw\Downloads\com.dominospizza.apk” “C:\Users\awanw\AppData\Local\Temp\appium1141015-6708-j9wn11.tmp”
debug: MD5 for app is a4e530a3d2957385874cacc5ccce7801
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “ls /data/local/tmp/a4e530a3d2957385874cacc5ccce7801.apk”
debug: Getting install status for com.dominospizza
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “pm list packages -3 com.dominospizza”
debug: App is installed
debug: Forwarding system:4724 to device:4724
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 forward tcp:4724 tcp:4724
debug: Pushing appium bootstrap to device…
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 push “C:\Users\awanw\Desktop\Mobile Automation\Appium\node_modules\appium\build\android_bootstrap\AppiumBootstrap.jar” /data/local/tmp/
debug: Pushing settings apk to device…
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 install “C:\Users\awanw\Desktop\Mobile Automation\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apk”
debug: Pushing unlock helper app to device…
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 install “C:\Users\awanw\Desktop\Mobile Automation\Appium\node_modules\appium\build\unlock_apk\unlock_apk-debug.apk”
info: Starting App
debug: Attempting to kill all ‘uiautomator’ processes
debug: Getting all processes with ‘uiautomator’
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “ps ‘uiautomator’”
debug: No matching processes found
debug: Running bootstrap
debug: spawning: C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe -s 0e40b630 shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
debug: [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.Bootstrap:
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 1
debug: [BOOTSTRAP] [debug] Socket opened on port 4724
debug: [BOOTSTRAP] [debug] Appium Socket Server Ready
debug: [BOOTSTRAP] [debug] Loading json…
debug: Waking up device if it’s not alive
debug: Pushing command to appium work queue: [“wake”,{}]
debug: [BOOTSTRAP] [debug] json loading complete.
debug: [BOOTSTRAP] [debug] Registered crash watchers.
debug: [BOOTSTRAP] [debug] Client connected
debug: [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“wake”,“params”:{}}
debug: [BOOTSTRAP] [debug] Got command of type ACTION
debug: [BOOTSTRAP] [debug] Got command action: wake
debug: [BOOTSTRAP] [debug] Returning result: {“value”:true,“status”:0}
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “dumpsys window”
debug: Writing dumpsys output to C:\Users\awanw\Desktop\Mobile Automation\Appium\node_modules\appium.dumpsys.log
debug: Screen already unlocked, continuing.
debug: Pushing command to appium work queue: [“getDataDir”,{}]
debug: [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“getDataDir”,“params”:{}}
debug: [BOOTSTRAP] [debug] Got command of type ACTION
debug: [BOOTSTRAP] [debug] Got command action: getDataDir
debug: [BOOTSTRAP] [debug] Returning result: {“value”:“/data/local/tmp”,“status”:0}
debug: dataDir set to: /data/local/tmp
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n com.dominospizza/com.dominospizza.activities.InitialLaunchActivity”
debug: Waiting for pkg “com.dominospizza” and activity “com.dominospizza.activities.InitialLaunchActivity” to be focused
debug: Getting focused package and activity
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “dumpsys window windows”
debug: Getting focused package and activity
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “dumpsys window windows”
debug: Getting focused package and activity
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “dumpsys window windows”
debug: Getting focused package and activity
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “dumpsys window windows”
debug: Getting focused package and activity
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “dumpsys window windows”
debug: Getting focused package and activity
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “dumpsys window windows”
debug: Getting focused package and activity
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “dumpsys window windows”
debug: Getting focused package and activity
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “dumpsys window windows”
debug: Getting focused package and activity
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “dumpsys window windows”
debug: Getting focused package and activity
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “dumpsys window windows”
debug: Getting focused package and activity
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “dumpsys window windows”
debug: Getting focused package and activity
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “dumpsys window windows”
debug: Getting focused package and activity
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “dumpsys window windows”
debug: Getting focused package and activity
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “dumpsys window windows”
debug: Getting focused package and activity
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “dumpsys window windows”
debug: Getting focused package and activity
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “dumpsys window windows”
debug: Getting focused package and activity
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “dumpsys window windows”
debug: Getting focused package and activity
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “dumpsys window windows”
debug: Getting focused package and activity
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “dumpsys window windows”
debug: Getting focused package and activity
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “dumpsys window windows”
debug: Getting focused package and activity
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “dumpsys window windows”
debug: Getting focused package and activity
debug: executing: “C:\Users\awanw\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe” -s 0e40b630 shell “dumpsys window windows”
error: com.dominospizza/.activities.InitialLaunchActivity never started. Current: com.dominospizza/com.dominos.activities.LandingActivity_
debug: Stopping logcat capture
debug: Logcat terminated with code null, signal SIGTERM
debug: [BOOTSTRAP] [debug] Got data from client: {“cmd”:“shutdown”}
debug: [BOOTSTRAP] [debug] Got command of type SHUTDOWN
debug: [BOOTSTRAP] [debug] Returning result: {“value”:“OK, shutting down”,“status”:0}
debug: [BOOTSTRAP] [debug] Closed client connection
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=.
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 0
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
debug: [UIAUTOMATOR STDOUT] Test results for WatcherResultPrinter=.
debug: [UIAUTOMATOR STDOUT] Time: 21.814
debug: [UIAUTOMATOR STDOUT] OK (1 test)
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: -1
debug: Sent shutdown command, waiting for UiAutomator to stop…
debug: UiAutomator shut down normally
debug: Cleaning up android objects
debug: Cleaning up appium session
error: Failed to start an Appium session, err was: Error: com.dominospizza/.activities.InitialLaunchActivity never started. Current: com.dominospizza/com.dominos.activities.LandingActivity_
debug: Error: com.dominospizza/.activities.InitialLaunchActivity never started. Current: com.dominospizza/com.dominos.activities.LandingActivity_
at null. (C:\Users\awanw\Desktop\Mobile Automation\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:1273:12)
at null. (C:\Users\awanw\Desktop\Mobile Automation\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:1218:7)
at C:\Users\awanw\Desktop\Mobile Automation\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:162:5
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)
debug: Responding to client with error: {“status”:33,“value”:{“message”:"A new session could not be created. (Original error: com.dominospizza/.activities.InitialLaunchActivity never started. Current: com.dominospizza/com.dominos.activities.LandingActivity)",“origValue”:“com.dominospizza/.activities.InitialLaunchActivity never started. Current: com.dominospizza/com.dominos.activities.LandingActivity_”},“sessionId”:null}
Using below code
import io.appium.java_client.AppiumDriver;
//import io.appium.java_client.android.AndroidDriver;
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.CapabilityType;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.testng.annotations.AfterTest;
import org.testng.annotations.Test;
public class DominosApp {
static WebDriver dr;
@Test
public static void main(String arg) throws MalformedURLException, InterruptedException{
String contact=“1jyot”;
File app = new File (“C:\Users\awanw\Downloads\com.dominospizza.apk”);
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.BROWSER_NAME, “”);
capabilities.setCapability(“deviceName”,“SM-N900V”);
capabilities.setCapability(“platformVersion”,“4.4.2”);
capabilities.setCapability(“platformName”,“Android”);
capabilities.setCapability(“app”, app.getAbsolutePath());
//capabilities.setCapability("appPackage","com.dominospizza");
//capabilities.setCapability("appActivity","com.dominospizza.activities.InitialLaunchActivity");
dr=new AppiumDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
dr.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);
Thread.sleep(5000);
dr.findElement(By.id("com.dominospizza:id/deliveryButton")).click();
}
@AfterTest
public void quit(){
dr.quit();
}
}