Skip to content

Instantly share code, notes, and snippets.

@tiagoshibata
Created July 19, 2016 19:41
Show Gist options
  • Save tiagoshibata/040e6145250d9b36616977500c0ba4d0 to your computer and use it in GitHub Desktop.
Save tiagoshibata/040e6145250d9b36616977500c0ba4d0 to your computer and use it in GitHub Desktop.
[Appium] Welcome to Appium v1.5.3 (REV e026a14141230416e945fb6b49883b9993833f31)
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"requiredCapabilities":{},"desiredCapabilities"
:{"appPackage":"br.com.tapps.mysandwichshop","appActivity":"com.ansca.corona.Cor
onaActivity","platformName":"Android","deviceName":"Android"}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"appPackage":"br.com
.tapp...
[Appium] Creating new AndroidDriver session
[Appium] Capabilities:
[Appium] appPackage: 'br.com.tapps.mysandwichshop'
[Appium] appActivity: 'com.ansca.corona.CoronaActivity'
[Appium] platformName: 'Android'
[Appium] deviceName: 'Android'
[BaseDriver] Session created with session id: 92f0920d-d1e2-43e6-8736-aaf72c537b
a2
[debug] [AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_91
[ADB] Checking whether adb is present
[ADB] Using adb.exe from C:\adb\platform-tools\adb.exe
[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: T099706ZXD
[ADB] Checking whether adb is present
[ADB] Using adb.exe from C:\adb\platform-tools\adb.exe
[debug] [ADB] Setting device id to T099706ZXD
[AndroidDriver] App file was not listed, instead we're going to run br.com.tapps
.mysandwichshop directly on the device
[debug] [AndroidDriver] Checking whether package is present on the device
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running C:\adb\platform-tools\adb.exe with args: ["-P",5037,"-s","
T099706ZXD","shell","pm","list","packages","br.com.tapps.mysandwichshop"]
[AndroidDriver] Starting Android session
[debug] [ADB] Running C:\adb\platform-tools\adb.exe with args: ["-P",5037,"-s","
T099706ZXD","wait-for-device"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running C:\adb\platform-tools\adb.exe with args: ["-P",5037,"-s","
T099706ZXD","shell","echo","ping"]
[debug] [Logcat] Starting logcat capture
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Running C:\adb\platform-tools\adb.exe with args: ["-P",5037,"-s","
T099706ZXD","install","C:\\Users\\DEWOTT\\projects\\appium\\node_modules\\io.app
ium.settings\\bin\\settings_apk-debug.apk"]
[debug] [AndroidDriver] Pushing unlock helper app to device...
[debug] [ADB] Running C:\adb\platform-tools\adb.exe with args: ["-P",5037,"-s","
T099706ZXD","install","C:\\Users\\DEWOTT\\projects\\appium\\node_modules\\appium
-unlock\\bin\\unlock_apk-debug.apk"]
[ADB] Getting device platform version
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running C:\adb\platform-tools\adb.exe with args: ["-P",5037,"-s","
T099706ZXD","shell","getprop","ro.build.version.release"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running C:\adb\platform-tools\adb.exe with args: ["-P",5037,"-s","
T099706ZXD","shell","dumpsys","window"]
[AndroidDriver] Screen already unlocked, doing nothing
[AndroidDriver] No app sent in, not parsing package/activity
[debug] [AndroidDriver] No app capability. Assuming it is already on the device
[debug] [AndroidDriver] Running fast reset (stop and clear)
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running C:\adb\platform-tools\adb.exe with args: ["-P",5037,"-s","
T099706ZXD","shell","am","force-stop","br.com.tapps.mysandwichshop"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running C:\adb\platform-tools\adb.exe with args: ["-P",5037,"-s","
T099706ZXD","shell","pm","clear","br.com.tapps.mysandwichshop"]
[debug] [AndroidBootstrap] Watching for bootstrap disconnect
[debug] [ADB] Forwarding system: 4724 to device: 4724
[debug] [ADB] Running C:\adb\platform-tools\adb.exe with args: ["-P",5037,"-s","
T099706ZXD","forward","tcp:4724","tcp:4724"]
[debug] [UiAutomator] Starting UiAutomator
[debug] [UiAutomator] Moving to state 'starting'
[debug] [UiAutomator] Parsing uiautomator jar
[debug] [UiAutomator] Found jar name: 'AppiumBootstrap.jar'
[debug] [ADB] Running C:\adb\platform-tools\adb.exe with args: ["-P",5037,"-s","
T099706ZXD","push","C:\\Users\\DEWOTT\\projects\\appium\\node_modules\\appium-an
droid-bootstrap\\bootstrap\\bin\\AppiumBootstrap.jar","/data/local/tmp/"]
[debug] [ADB] Attempting to kill all uiautomator processes
[debug] [ADB] Getting all processes with uiautomator
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running C:\adb\platform-tools\adb.exe with args: ["-P",5037,"-s","
T099706ZXD","shell","ps","uiautomator"]
[ADB] No uiautomator process found to kill, continuing...
[debug] [UiAutomator] Starting UIAutomator
[debug] [ADB] Creating ADB subprocess with args: -P, 5037, -s, T099706ZXD, shell
, uiautomator, runtest, AppiumBootstrap.jar, -c, io.appium.android.bootstrap.Boo
tstrap, -e, pkg, br.com.tapps.mysandwichshop, -e, disableAndroidWatchers, false,
-e, acceptSslCerts, false
[debug] [UiAutomator] Moving to state 'online'
[AndroidBootstrap] Android bootstrap socket is now connected
[debug] [ADB] Getting connected devices...
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] json loading complete.
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Registered crash watchers.
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Client connected
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running C:\adb\platform-tools\adb.exe with args: ["-P",5037,"-s","
T099706ZXD","shell","getprop","ro.build.version.sdk"]
[debug] [ADB] Device API level: 23
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running C:\adb\platform-tools\adb.exe with args: ["-P",5037,"-s","
T099706ZXD","shell","am","start","-W","-n","br.com.tapps.mysandwichshop/com.ansc
a.corona.CoronaActivity","-S","-a","android.intent.action.MAIN","-c","android.in
tent.category.LAUNCHER","-f","0x10200000"]
[Appium] New AndroidDriver session created successfully, session 92f0920d-d1e2-4
3e6-8736-aaf72c537ba2 added to master session list
[MJSONWP] Responding to client with driver.createSession() result: {"platform":"
LINUX","webSto...
[HTTP] <-- POST /wd/hub/session 200 14359 ms - 612
[HTTP] --> POST /wd/hub/session/92f0920d-d1e2-43e6-8736-aaf72c537ba2/timeouts/im
plicit_wait {"sessionId":"92f0920d-d1e2-43e6-8736-aaf72c537ba2","ms":15000}
[MJSONWP] Calling AppiumDriver.implicitWait() with args: [15000,"92f0920d-d1e2-4
3e6-...
[debug] [BaseDriver] Set implicit wait to 15000ms
[MJSONWP] Responding to client with driver.implicitWait() result: null
[HTTP] <-- POST /wd/hub/session/92f0920d-d1e2-43e6-8736-aaf72c537ba2/timeouts/im
plicit_wait 200 13 ms - 76
[HTTP] --> GET /wd/hub/session/92f0920d-d1e2-43e6-8736-aaf72c537ba2/appium/devic
e/current_activity {}
[MJSONWP] Calling AppiumDriver.getCurrentActivity() with args: ["92f0920d-d1e2-4
3e6-8736-a...
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running C:\adb\platform-tools\adb.exe with args: ["-P",5037,"-s","
T099706ZXD","shell","dumpsys","window","windows"]
[MJSONWP] Responding to client with driver.getCurrentActivity() result: "com.ans
ca.corona.CoronaAct...
[HTTP] <-- GET /wd/hub/session/92f0920d-d1e2-43e6-8736-aaf72c537ba2/appium/devic
e/current_activity 200 139 ms - 105
[HTTP] --> GET /wd/hub/session/92f0920d-d1e2-43e6-8736-aaf72c537ba2/screenshot {
}
[MJSONWP] Calling AppiumDriver.getScreenshot() with args: ["92f0920d-d1e2-43e6-8
736-a...
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running C:\adb\platform-tools\adb.exe with args: ["-P",5037,"-s","
T099706ZXD","shell","/system/bin/rm","C:\\data\\local\\tmp\\screenshot.png;","/s
ystem/bin/screencap","-p","C:\\data\\local\\tmp\\screenshot.png"]
[debug] [ADB] Running C:\adb\platform-tools\adb.exe with args: ["-P",5037,"-s","
T099706ZXD","pull","C:\\data\\local\\tmp\\screenshot.png","C:\\Users\\DEWOTT\\Ap
pData\\Local\\Temp\\appium116619-5360-196dkbl.lq6fbyy14i.png"]
[debug] [ADB] Running C:\adb\platform-tools\adb.exe with args: ["-P",5037,"-s","
T099706ZXD","pull","C:\\data\\local\\tmp\\screenshot.png","C:\\Users\\DEWOTT\\Ap
pData\\Local\\Temp\\appium116619-5360-196dkbl.lq6fbyy14i.png"]
[MJSONWP] Encountered internal error running command: Error: Error executing adb
Exec. Original error: Command 'C\:\\adb\\platform-tools\\adb.exe -P 5037 -s T099
706ZXD pull C\:\\data\\local\\tmp\\screenshot.png C\:\\Users\\DEWOTT\\AppData\\L
ocal\\Temp\\appium116619-5360-196dkbl.lq6fbyy14i.png' exited with code 1{"stdout
":"","stderr":"remote object 'C:\\data\\local\\tmp\\screenshot.png' does not exi
st\r\n","code":1}
at ADB.execFunc$ (lib/tools/system-calls.js:189:13)
at tryCatch (C:\Users\DEWOTT\projects\appium\node_modules\babel-runtime\rege
nerator\runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (C:\Users\DEWOTT\projects\
appium\node_modules\babel-runtime\regenerator\runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (C:\
Users\DEWOTT\projects\appium\node_modules\babel-runtime\regenerator\runtime.js:1
00:21)
at GeneratorFunctionPrototype.invoke (C:\Users\DEWOTT\projects\appium\node_m
odules\babel-runtime\regenerator\runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
[HTTP] <-- GET /wd/hub/session/92f0920d-d1e2-43e6-8736-aaf72c537ba2/screenshot 5
00 1342 ms - 576
[HTTP] --> GET /wd/hub/session/92f0920d-d1e2-43e6-8736-aaf72c537ba2/screenshot {
}
[MJSONWP] Calling AppiumDriver.getScreenshot() with args: ["92f0920d-d1e2-43e6-8
736-a...
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running C:\adb\platform-tools\adb.exe with args: ["-P",5037,"-s","
T099706ZXD","shell","/system/bin/rm","C:\\data\\local\\tmp\\screenshot.png;","/s
ystem/bin/screencap","-p","C:\\data\\local\\tmp\\screenshot.png"]
[debug] [ADB] Running C:\adb\platform-tools\adb.exe with args: ["-P",5037,"-s","
T099706ZXD","pull","C:\\data\\local\\tmp\\screenshot.png","C:\\Users\\DEWOTT\\Ap
pData\\Local\\Temp\\appium116619-5360-5w53za.abpjc680k9.png"]
[debug] [ADB] Running C:\adb\platform-tools\adb.exe with args: ["-P",5037,"-s","
T099706ZXD","pull","C:\\data\\local\\tmp\\screenshot.png","C:\\Users\\DEWOTT\\Ap
pData\\Local\\Temp\\appium116619-5360-5w53za.abpjc680k9.png"]
[MJSONWP] Encountered internal error running command: Error: Error executing adb
Exec. Original error: Command 'C\:\\adb\\platform-tools\\adb.exe -P 5037 -s T099
706ZXD pull C\:\\data\\local\\tmp\\screenshot.png C\:\\Users\\DEWOTT\\AppData\\L
ocal\\Temp\\appium116619-5360-5w53za.abpjc680k9.png' exited with code 1{"stdout"
:"","stderr":"remote object 'C:\\data\\local\\tmp\\screenshot.png' does not exis
t\r\n","code":1}
at ADB.execFunc$ (lib/tools/system-calls.js:189:13)
at tryCatch (C:\Users\DEWOTT\projects\appium\node_modules\babel-runtime\rege
nerator\runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (C:\Users\DEWOTT\projects\
appium\node_modules\babel-runtime\regenerator\runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (C:\
Users\DEWOTT\projects\appium\node_modules\babel-runtime\regenerator\runtime.js:1
00:21)
at GeneratorFunctionPrototype.invoke (C:\Users\DEWOTT\projects\appium\node_m
odules\babel-runtime\regenerator\runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
[HTTP] <-- GET /wd/hub/session/92f0920d-d1e2-43e6-8736-aaf72c537ba2/screenshot 5
00 374 ms - 575
[HTTP] --> DELETE /wd/hub/session/92f0920d-d1e2-43e6-8736-aaf72c537ba2 {}
[MJSONWP] Calling AppiumDriver.deleteSession() with args: ["92f0920d-d1e2-43e6-8
736-a...
[debug] [AndroidDriver] Shutting down Android driver
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running C:\adb\platform-tools\adb.exe with args: ["-P",5037,"-s","
T099706ZXD","shell","am","force-stop","br.com.tapps.mysandwichshop"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running C:\adb\platform-tools\adb.exe with args: ["-P",5037,"-s","
T099706ZXD","shell","am","force-stop","io.appium.unlock"]
[debug] [ADB] Pressing the HOME button
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running C:\adb\platform-tools\adb.exe with args: ["-P",5037,"-s","
T099706ZXD","shell","input","keyevent",3]
[debug] [Logcat] Stopping logcat capture
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"shutdown"}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"shutdow
n"}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type SHUTDOWN
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value"
:"OK, shutting down"}
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [UiAutomator] Shutting down UiAutomator
[debug] [UiAutomator] Moving to state 'stopping'
[debug] [UiAutomator] UiAutomator shut down normally
[debug] [UiAutomator] Moving to state 'stopped'
[debug] [ADB] Attempting to kill all uiautomator processes
[debug] [ADB] Getting all processes with uiautomator
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running C:\adb\platform-tools\adb.exe with args: ["-P",5037,"-s","
T099706ZXD","shell","ps","uiautomator"]
[ADB] No uiautomator process found to kill, continuing...
[debug] [UiAutomator] Moving to state 'stopped'
[Appium] Removing session 92f0920d-d1e2-43e6-8736-aaf72c537ba2 from our master s
ession list
[debug] [MJSONWP] Received response: null
[debug] [MJSONWP] But deleting session, so not returning
[MJSONWP] Responding to client with driver.deleteSession() result: null
[HTTP] <-- DELETE /wd/hub/session/92f0920d-d1e2-43e6-8736-aaf72c537ba2 200 4542
ms - 76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment