Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save luisromanbcn/d3fe2246f97aa0a213e0ee5d3ee3fa65 to your computer and use it in GitHub Desktop.
Save luisromanbcn/d3fe2246f97aa0a213e0ee5d3ee3fa65 to your computer and use it in GitHub Desktop.
[Appium] Creating new AndroidDriver session
[Appium] Capabilities:
[Appium] app: '/Users/lroman13/Downloads/app-prod-debug-3.apk'
[Appium] appPackage: 'com.wallapop.debug'
[Appium] appium-version: '1.0'
[Appium] platformName: 'Android'
[Appium] deviceName: 'Nexus_6_API_24'
[debug] [AndroidDriver] AndroidDriver version: 1.10.38
[BaseDriver] The following capabilities were provided, but are not recognized by appium: appium-version.
[BaseDriver] Session created with session id: 52b70e27-ca89-4c20-8fbf-e5ec013a6fbe
[debug] [AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_112
[ADB] Checking whether adb is present
[ADB] Using adb from /Users/lroman13/Library/Android/sdk/platform-tools/adb
[AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[AndroidDriver] Using device: emulator-5554
[ADB] Checking whether adb is present
[ADB] Using adb from /Users/lroman13/Library/Android/sdk/platform-tools/adb
[debug] [ADB] Setting device id to emulator-5554
[BaseDriver] Using local app '/Users/lroman13/Downloads/app-prod-debug-3.apk'
[debug] [AndroidDriver] Checking whether app is actually present
[AndroidDriver] Starting Android session
[debug] [ADB] Running '/Users/lroman13/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","wait-for-device"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/lroman13/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","shell","echo","ping"]
[debug] [Logcat] Starting logcat capture
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Running '/Users/lroman13/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","install","/usr/local/lib/node_modules/appium/node_modules/io.appium.settings/bin/settings_apk-debug.apk"]
[debug] [ADB] Running '/Users/lroman13/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","install","/usr/local/lib/node_modules/appium/node_modules/io.appium.settings/bin/settings_apk-debug.apk"]
[debug] [ADB] Application '/usr/local/lib/node_modules/appium/node_modules/io.appium.settings/bin/settings_apk-debug.apk' already installed. Continuing.
[debug] [AndroidDriver] Pushing unlock helper app to device...
[debug] [ADB] Running '/Users/lroman13/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","install","/usr/local/lib/node_modules/appium/node_modules/appium-unlock/bin/unlock_apk-debug.apk"]
[debug] [ADB] Running '/Users/lroman13/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","install","/usr/local/lib/node_modules/appium/node_modules/appium-unlock/bin/unlock_apk-debug.apk"]
[debug] [ADB] Application '/usr/local/lib/node_modules/appium/node_modules/appium-unlock/bin/unlock_apk-debug.apk' already installed. Continuing.
[ADB] Getting device platform version
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/lroman13/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","shell","getprop","ro.build.version.release"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/lroman13/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window"]
[AndroidDriver] Screen already unlocked, doing nothing
[debug] [AndroidDriver] Parsing package and activity from app manifest
[ADB] Checking whether aapt is present
[ADB] Using aapt from /Users/lroman13/Library/Android/sdk/build-tools/25.0.2/aapt
[ADB] Extracting package and launch activity from manifest
[debug] [ADB] badging package: com.wallapop.debug
[debug] [ADB] badging act: com.rewallapop.ui.main.MainActivity
[debug] [AndroidDriver] Parsed package and activity are: com.wallapop.debug/com.rewallapop.ui.main.MainActivity
[AndroidDriver] Remote apk path is /data/local/tmp/79d818051ad8d2f77113dd20dbc38aa3.apk
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/lroman13/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","shell","ls","/data/local/tmp/79d818051ad8d2f77113dd20dbc38aa3.apk"]
[debug] [AndroidDriver] Checking if app is installed
[debug] [ADB] Getting install status for com.wallapop.debug
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/lroman13/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","shell","getprop","ro.build.version.sdk"]
[debug] [ADB] Device API level: 25
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/lroman13/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","shell","pm","list","packages","-3","com.wallapop.debug"]
[debug] [ADB] App is installed
[AndroidDriver] Apk is already on remote and installed, resetting
[debug] [AndroidDriver] Running fast reset (stop and clear)
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/lroman13/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","shell","am","force-stop","com.wallapop.debug"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/lroman13/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","shell","pm","clear","com.wallapop.debug"]
[debug] [AndroidDriver] Extracting strings from apk /Users/lroman13/Downloads/app-prod-debug-3.apk null /var/folders/l_/8zl87nfs26qg7991wg19rskw0000gn/T/com.wallapop.debug
[debug] [ADB] Extracting strings for language: default
[debug] [ADB] Device API level: 25
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/lroman13/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","shell","getprop","persist.sys.locale"]
[debug] [ADB] Current device property 'persist.sys.locale':
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/lroman13/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","shell","getprop","ro.product.locale"]
[debug] [ADB] Current device property 'ro.product.locale': en-US
[debug] [ADB] No strings.xml for language 'en', getting default strings.xml
[debug] [ADB] Reading strings from converted strings.json
[debug] [ADB] Running '/Users/lroman13/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","push","/var/folders/l_/8zl87nfs26qg7991wg19rskw0000gn/T/com.wallapop.debug/strings.json","/data/local/tmp"]
[debug] [AndroidBootstrap] Watching for bootstrap disconnect
[debug] [ADB] Forwarding system: 4724 to device: 4724
[debug] [ADB] Running '/Users/lroman13/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","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 '/Users/lroman13/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","push","/usr/local/lib/node_modules/appium/node_modules/appium-android-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 '/Users/lroman13/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","shell","ps"]
[ADB] No uiautomator process found to kill, continuing...
[debug] [UiAutomator] Starting UIAutomator
[debug] [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","emulator-5554","shell","uiautomator","runtest","AppiumBootstrap.jar","-c","io.appium.android.bootstrap.Bootstrap","-e","pkg","com.wallapop.debug","-e","disableAndroidWatchers",false,"-e","acceptSslCerts",false]
[debug] [UiAutomator] Moving to state 'online'
[AndroidBootstrap] Android bootstrap socket is now connected
[debug] [ADB] Device API level: 25
[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 '/Users/lroman13/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","shell","am","start","-W","-n","com.wallapop.debug/com.rewallapop.ui.main.MainActivity","-S","-a","android.intent.action.MAIN","-c","android.intent.category.LAUNCHER","-f","0x10200000"]
[debug] [ADB] Waiting for pkg: 'com.wallapop.debug' and activity: 'com.rewallapop.ui.main.MainActivity' to be focused
[debug] [ADB] Possible activities, to be checked: com.rewallapop.ui.main.MainActivity, .com.rewallapop.ui.main.MainActivity
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/lroman13/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'com.wallapop.debug' and activity: 'com.rewallapop.ui.main.MainActivity'
[Appium] New AndroidDriver session created successfully, session 52b70e27-ca89-4c20-8fbf-e5ec013a6fbe added to master session list
[debug] [MJSONWP] Responding to client with driver.createSession() result: {"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"app":"/Users/lroman13/Downloads/app-prod-debug-3.apk","appPackage":"com.wallapop.debug","appium-version":"1.0","platformName":"Android","deviceName":"Nexus_6_API_24"},"app":"/Users/lroman13/Downloads/app-prod-debug-3.apk","appPackage":"com.wallapop.debug","appium-version":"1.0","platformName":"Android","deviceName":"emulator-5554","deviceUDID":"emulator-5554","platformVersion":"7.1","appWaitPackage":"com.wallapop.debug","appActivity":"com.rewallapop.ui.main.MainActivity","appWaitActivity":"com.rewallapop.ui.main.MainActivity"}
[HTTP] <-- POST /wd/hub/session 200 5910 ms - 811
[HTTP] --> POST /wd/hub/session/52b70e27-ca89-4c20-8fbf-e5ec013a6fbe/timeouts/implicit_wait {"ms":10000}
[debug] [MJSONWP] Calling AppiumDriver.implicitWait() with args: [10000,"52b70e27-ca89-4c20-8fbf-e5ec013a6fbe"]
[debug] [BaseDriver] Set implicit wait to 10000ms
[debug] [MJSONWP] Responding to client with driver.implicitWait() result: null
[HTTP] <-- POST /wd/hub/session/52b70e27-ca89-4c20-8fbf-e5ec013a6fbe/timeouts/implicit_wait 200 4 ms - 76
[HTTP] --> POST /wd/hub/session/52b70e27-ca89-4c20-8fbf-e5ec013a6fbe/location {"location":{"altitude":14,"latitude":41.4059193,"hCode":1989335500,"class":"org.openqa.selenium.html5.Location","longitude":2.1864894}}
[debug] [MJSONWP] Calling AppiumDriver.setGeoLocation() with args: [{"altitude":14,"latitude":41.4059193,"hCode":1989335500,"class":"org.openqa.selenium.html5.Location","longitude":2.1864894},"52b70e27-ca89-4c20-8fbf-e5ec013a6fbe"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/lroman13/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","shell","am","startservice","-e","longitude",2.1864894,"-e","latitude",41.4059193,"io.appium.settings/.LocationService"]
[debug] [MJSONWP] Responding to client with driver.setGeoLocation() result: "Starting service: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=io.appium.settings/.LocationService (has extras) }"
[HTTP] <-- POST /wd/hub/session/52b70e27-ca89-4c20-8fbf-e5ec013a6fbe/location 200 369 ms - 225
[HTTP] --> POST /wd/hub/session/52b70e27-ca89-4c20-8fbf-e5ec013a6fbe/element {"using":"id","value":"permission_icon"}
[debug] [MJSONWP] Calling AppiumDriver.findElement() with args: ["id","permission_icon","52b70e27-ca89-4c20-8fbf-e5ec013a6fbe"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment