Created
May 10, 2016 11:47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
D:\Automation\workspace\safe-androidphone-daapps_1_0>taskkill /f /im node.exe | |
ERROR: The process "node.exe" not found. | |
D:\Automation\workspace\safe-androidphone-daapps_1_0>timeout /t 5 | |
Waiting for 3 seconds, press a key to continue ... | |
D:\Automation\workspace\safe-androidphone-daapps_1_0>cd /d C:\\Program Files (x8 | |
6)\\Appium//node_modules//appium | |
C:\Program Files (x86)\Appium\node_modules\appium>"C:\\Program Files (x86)\\Appi | |
um//node" . -a 127.0.0.1 | |
info: Welcome to Appium v1.4.16 (REV ae6877eff263066b26328d457bd285c0cc62430d) | |
info: Appium REST http interface listener started on 127.0.0.1:4723 | |
info: [debug] Non-default server args: {"address":"127.0.0.1"} | |
info: Console LogLevel: debug | |
info: --> POST /wd/hub/session {"desiredCapabilities":{"app":"C:\\Users\\jitu.pa | |
tel\\Desktop\\FireTv_DishAnywhere-debug.apk","deviceName":"Android","version":"5 | |
.0","platform":"XP","appActivity":"com.sm.SlingGuide.Dish.DishLoginActivity","ne | |
wCommandTimeout":"1800","androidPackage":"com.sm.SlingGuide.Dish","browserName": | |
"","webviewSupport":"True","autoWebview":true,"udid":"7094050455050XR6","platfor | |
mName":"Android","device":"Android"}} | |
info: Client User-Agent string: Apache-HttpClient/4.3.1 (java 1.5) | |
warn: Converting cap webviewSupport from string to boolean. This might cause une | |
xpected behavior. | |
info: [debug] The following desired capabilities were provided, but not recogniz | |
ed by appium. They will be passed on to any other services running on this serve | |
r. : version, platform, androidPackage, webviewSupport, device | |
info: [debug] Using local app from desired caps: C:\Users\jitu.patel\Desktop\Fir | |
eTv_DishAnywhere-debug.apk | |
info: [debug] Creating new appium session 5f6d9229-7e53-4fd0-b92a-34ef65988c39 | |
info: Starting android appium | |
info: [debug] Getting Java version | |
info: Java version is: 1.8.0_77 | |
info: [debug] Checking whether adb is present | |
info: [debug] Using adb from D:\Automation\sdk\platform-tools\adb.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: D:\Automation\sdk\platform-tools\adb.exe devices | |
info: [debug] 1 device(s) connected | |
info: Found device 7094050455050XR6 | |
info: [debug] Setting device id to 7094050455050XR6 | |
info: [debug] Waiting for device to be ready and to respond to shell commands (t | |
imeout = 5) | |
info: [debug] executing cmd: D:\Automation\sdk\platform-tools\adb.exe -s 7094050 | |
455050XR6 wait-for-device | |
info: [debug] executing cmd: D:\Automation\sdk\platform-tools\adb.exe -s 7094050 | |
455050XR6 shell "echo 'ready'" | |
info: [debug] Starting logcat capture | |
info: [debug] Getting device API level | |
info: [debug] executing cmd: D:\Automation\sdk\platform-tools\adb.exe -s 7094050 | |
455050XR6 shell "getprop ro.build.version.sdk" | |
info: [debug] Device is at API Level 22 | |
info: Device API level is: 22 | |
info: [debug] Extracting strings for language: default | |
info: [debug] executing cmd: D:\Automation\sdk\platform-tools\adb.exe -s 7094050 | |
455050XR6 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" "C:\Users\jitu.pa | |
tel\Desktop\FireTv_DishAnywhere-debug.apk" "C:\Users\JITU~1.PAT\AppData\Local\Te | |
mp\com.sm.SlingGuide.Dish" 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" "C:\Users\jitu.pa | |
tel\Desktop\FireTv_DishAnywhere-debug.apk" "C:\Users\JITU~1.PAT\AppData\Local\Te | |
mp\com.sm.SlingGuide.Dish" | |
info: [debug] Reading strings from converted strings.json | |
info: [debug] Setting language to default | |
info: [debug] executing cmd: D:\Automation\sdk\platform-tools\adb.exe -s 7094050 | |
455050XR6 push "C:\\Users\\JITU~1.PAT\\AppData\\Local\\Temp\\com.sm.SlingGuide.D | |
ish\\strings.json" /data/local/tmp | |
info: [debug] Checking whether aapt is present | |
info: [debug] Using aapt from D:\Automation\sdk\build-tools\23.0.3\aapt.exe | |
info: [debug] Retrieving process from manifest. | |
info: [debug] executing cmd: D:\Automation\sdk\build-tools\23.0.3\aapt.exe dump | |
xmltree C:\Users\jitu.patel\Desktop\FireTv_DishAnywhere-debug.apk AndroidManifes | |
t.xml | |
info: [debug] Set app process to: com.sm.SlingGuide.Dish | |
info: [debug] Not uninstalling app since server not started with --full-reset | |
info: [debug] Checking app cert for C:\Users\jitu.patel\Desktop\FireTv_DishAnywh | |
ere-debug.apk. | |
info: [debug] executing cmd: java -jar "C:\Program Files (x86)\Appium\node_modul | |
es\appium\node_modules\appium-adb\jars\verify.jar" C:\Users\jitu.patel\Desktop\F | |
ireTv_DishAnywhere-debug.apk | |
info: [debug] App already signed. | |
info: [debug] Zip-aligning C:\Users\jitu.patel\Desktop\FireTv_DishAnywhere-debug | |
.apk | |
info: [debug] Checking whether zipalign is present | |
info: [debug] Using zipalign from D:\Automation\sdk\build-tools\23.0.3\zipalign. | |
exe | |
info: [debug] Zip-aligning apk. | |
info: [debug] executing cmd: D:\Automation\sdk\build-tools\23.0.3\zipalign.exe - | |
f 4 C:\Users\jitu.patel\Desktop\FireTv_DishAnywhere-debug.apk C:\Users\JITU~1.PA | |
T\AppData\Local\Temp\116410-7324-zxfmjq\appium.tmp | |
info: [debug] MD5 for app is 17a5ac33623c0e65f5709fc94089fc68 | |
info: [debug] executing cmd: D:\Automation\sdk\platform-tools\adb.exe -s 7094050 | |
455050XR6 shell "ls /data/local/tmp/17a5ac33623c0e65f5709fc94089fc68.apk" | |
info: [debug] Getting install status for com.sm.SlingGuide.Dish | |
info: [debug] Getting device API level | |
info: [debug] executing cmd: D:\Automation\sdk\platform-tools\adb.exe -s 7094050 | |
455050XR6 shell "getprop ro.build.version.sdk" | |
info: [debug] Device is at API Level 22 | |
info: [debug] executing cmd: D:\Automation\sdk\platform-tools\adb.exe -s 7094050 | |
455050XR6 shell "pm list packages -3 com.sm.SlingGuide.Dish" | |
info: [debug] App is installed | |
info: App is already installed, resetting app | |
info: [debug] Running fast reset (stop and clear) | |
info: [debug] executing cmd: D:\Automation\sdk\platform-tools\adb.exe -s 7094050 | |
455050XR6 shell "am force-stop com.sm.SlingGuide.Dish" | |
info: [debug] executing cmd: D:\Automation\sdk\platform-tools\adb.exe -s 7094050 | |
455050XR6 shell "pm clear com.sm.SlingGuide.Dish" | |
info: [debug] Forwarding system:4724 to device:4724 | |
info: [debug] executing cmd: D:\Automation\sdk\platform-tools\adb.exe -s 7094050 | |
455050XR6 forward tcp:4724 tcp:4724 | |
info: [debug] Pushing appium bootstrap to device... | |
info: [debug] executing cmd: D:\Automation\sdk\platform-tools\adb.exe -s 7094050 | |
455050XR6 push "C:\\Program Files (x86)\\Appium\\node_modules\\appium\\build\\an | |
droid_bootstrap\\AppiumBootstrap.jar" /data/local/tmp/ | |
info: [debug] Pushing settings apk to device... | |
info: [debug] executing cmd: D:\Automation\sdk\platform-tools\adb.exe -s 7094050 | |
455050XR6 install "C:\Program Files (x86)\Appium\node_modules\appium\build\setti | |
ngs_apk\settings_apk-debug.apk" | |
info: [debug] Pushing unlock helper app to device... | |
info: [debug] executing cmd: D:\Automation\sdk\platform-tools\adb.exe -s 7094050 | |
455050XR6 install "C:\Program Files (x86)\Appium\node_modules\appium\build\unloc | |
k_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: D:\Automation\sdk\platform-tools\adb.exe -s 7094050 | |
455050XR6 shell "ps 'uiautomator'" | |
info: [debug] No matching processes found | |
info: [debug] Running bootstrap | |
info: [debug] spawning: D:\Automation\sdk\platform-tools\adb.exe -s 709405045505 | |
0XR6 shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstra | |
p.Bootstrap -e pkg com.sm.SlingGuide.Dish -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=UiAutomatorTestRun | |
ner | |
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer | |
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.andro | |
id.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] [BOOTSTRAP] [debug] json loading complete. | |
info: [debug] [BOOTSTRAP] [debug] Registered crash watchers. | |
info: [debug] Waking up device if it's not alive | |
info: [debug] Pushing command to appium work queue: ["wake",{}] | |
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: {"status":0,"value":true} | |
info: [debug] executing cmd: D:\Automation\sdk\platform-tools\adb.exe -s 7094050 | |
455050XR6 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] dataDir set to: /data/local/tmp | |
info: [debug] Pushing command to appium work queue: ["compressedLayoutHierarchy" | |
,{"compressLayout":false}] | |
info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":"\/data\ | |
/local\/tmp"} | |
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: {"status":0,"value":false} | |
info: [debug] Getting device API level | |
info: [debug] executing cmd: D:\Automation\sdk\platform-tools\adb.exe -s 7094050 | |
455050XR6 shell "getprop ro.build.version.sdk" | |
info: [debug] Device is at API Level 22 | |
info: [debug] executing cmd: D:\Automation\sdk\platform-tools\adb.exe -s 7094050 | |
455050XR6 shell "am start -S -a android.intent.action.MAIN -c android.intent.cat | |
egory.LAUNCHER -f 0x10200000 -n com.sm.SlingGuide.Dish/com.sm.SlingGuide.Dish.Di | |
shLoginActivity" | |
info: [debug] Waiting for pkg "com.sm.SlingGuide.Dish" and activity "com.sm.Slin | |
gGuide.Dish.DishLoginActivity" to be focused | |
info: [debug] Getting focused package and activity | |
info: [debug] executing cmd: D:\Automation\sdk\platform-tools\adb.exe -s 7094050 | |
455050XR6 shell "dumpsys window windows" | |
info: [debug] Setting auto webview | |
info: [debug] Getting a list of available webviews | |
info: [debug] executing cmd: D:\Automation\sdk\platform-tools\adb.exe -s 7094050 | |
455050XR6 shell "cat /proc/net/unix" | |
info: [debug] Available contexts: | |
info: [debug] [] | |
info: [debug] Available contexts: NATIVE_APP | |
info: [debug] Retrying context switch with timeout '2000' | |
info: [debug] Getting a list of available webviews | |
info: [debug] executing cmd: D:\Automation\sdk\platform-tools\adb.exe -s 7094050 | |
455050XR6 shell "cat /proc/net/unix" | |
info: [debug] Available contexts: NATIVE_APP | |
info: [debug] [] | |
info: [debug] Available contexts: NATIVE_APP | |
info: [debug] executing cmd: D:\Automation\sdk\platform-tools\adb.exe -s 7094050 | |
455050XR6 shell "getprop ro.build.version.release" | |
info: [debug] Device is at release version 5.1 | |
info: [debug] Device launched! Ready for commands | |
info: [debug] Setting command timeout to 1800 secs | |
info: [debug] Appium session started with sessionId 5f6d9229-7e53-4fd0-b92a-34ef | |
65988c39 | |
info: <-- POST /wd/hub/session 303 19183.750 ms - 74 | |
info: --> GET /wd/hub/session/5f6d9229-7e53-4fd0-b92a-34ef65988c39 {} | |
info: [debug] Responding to client with success: {"status":0,"value":{"platform" | |
:"XP","browserName":"","platformVersion":"5.1","webStorageEnabled":false,"takesS | |
creenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnect | |
ionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"app":" | |
C:\\Users\\jitu.patel\\Desktop\\FireTv_DishAnywhere-debug.apk","deviceName":"And | |
roid","version":"5.0","platform":"XP","appActivity":"com.sm.SlingGuide.Dish.Dish | |
LoginActivity","newCommandTimeout":"1800","androidPackage":"com.sm.SlingGuide.Di | |
sh","browserName":"","webviewSupport":true,"autoWebview":true,"udid":"7094050455 | |
050XR6","platformName":"Android","device":"Android"},"app":"C:\\Users\\jitu.pate | |
l\\Desktop\\FireTv_DishAnywhere-debug.apk","deviceName":"7094050455050XR6","vers | |
ion":"5.0","appActivity":"com.sm.SlingGuide.Dish.DishLoginActivity","newCommandT | |
imeout":"1800","androidPackage":"com.sm.SlingGuide.Dish","webviewSupport":true," | |
autoWebview":true,"udid":"7094050455050XR6","platformName":"Android","device":"A | |
ndroid"},"sessionId":"5f6d9229-7e53-4fd0-b92a-34ef65988c39"} | |
info: <-- GET /wd/hub/session/5f6d9229-7e53-4fd0-b92a-34ef65988c39 200 13.631 ms | |
- 1051 {"status":0,"value":{"platform":"XP","browserName":"","platformVersion": | |
"5.1","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true, | |
"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled" | |
:false,"warnings":{},"desired":{"app":"C:\\Users\\jitu.patel\\Desktop\\FireTv_Di | |
shAnywhere-debug.apk","deviceName":"Android","version":"5.0","platform":"XP","ap | |
pActivity":"com.sm.SlingGuide.Dish.DishLoginActivity","newCommandTimeout":"1800" | |
,"androidPackage":"com.sm.SlingGuide.Dish","browserName":"","webviewSupport":tru | |
e,"autoWebview":true,"udid":"7094050455050XR6","platformName":"Android","device" | |
:"Android"},"app":"C:\\Users\\jitu.patel\\Desktop\\FireTv_DishAnywhere-debug.apk | |
","deviceName":"7094050455050XR6","version":"5.0","appActivity":"com.sm.SlingGui | |
de.Dish.DishLoginActivity","newCommandTimeout":"1800","androidPackage":"com.sm.S | |
lingGuide.Dish","webviewSupport":true,"autoWebview":true,"udid":"7094050455050XR | |
6","platformName":"Android","device":"Android"},"sessionId":"5f6d9229-7e53-4fd0- | |
b92a-34ef65988c39"} | |
info: --> POST /wd/hub/session/5f6d9229-7e53-4fd0-b92a-34ef65988c39/element {"us | |
ing":"name","value":"Live TV"} | |
warn: [DEPRECATED] The name locator strategy has been deprecated and will be rem | |
oved. Please use the accessibility id locator strategy instead. | |
info: [debug] Waiting up to 0ms for condition | |
info: [debug] Pushing command to appium work queue: ["find",{"strategy":"name"," | |
selector":"Live TV","context":"","multiple":false}] | |
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action" | |
:"find","params":{"strategy":"name","selector":"Live TV","context":"","multiple" | |
:false}} | |
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION | |
info: [debug] [BOOTSTRAP] [debug] Got command action: find | |
info: [debug] [BOOTSTRAP] [debug] Finding Live TV using NAME with the contextId: | |
multiple: false | |
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=Live TV, INSTANC | |
E=0] | |
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[TEXT=Live TV, INSTANCE=0] | |
info: <-- POST /wd/hub/session/5f6d9229-7e53-4fd0-b92a-34ef65988c39/element - - | |
ms - - | |
info: [debug] [BOOTSTRAP] [debug] Failed to locate element. Clearing Accessibili | |
ty cache and retrying. | |
info: [debug] [BOOTSTRAP] [debug] Finding Live TV using NAME with the contextId: | |
multiple: false | |
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=Live TV, INSTANC | |
E=0] | |
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[TEXT=Live TV, INSTANCE=0] | |
info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":7,"value":"No elem | |
ent found"} | |
info: [debug] Condition unmet after 9135ms. Timing out. | |
info: [debug] Responding to client with error: {"status":7,"value":{"message":"A | |
n element could not be located on the page using the given search parameters."," | |
origValue":"No element found"},"sessionId":"5f6d9229-7e53-4fd0-b92a-34ef65988c39 | |
"} | |
undefined | |
C:\Users\jitu.patel>adb shell getprop ro.build.version.sdk | |
22 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment