Skip to content

Instantly share code, notes, and snippets.

@fangmobile
Created August 16, 2016 06:58
Show Gist options
  • Save fangmobile/322f3926eecb5a48cda3e61433a04261 to your computer and use it in GitHub Desktop.
Save fangmobile/322f3926eecb5a48cda3e61433a04261 to your computer and use it in GitHub Desktop.
Appium Android runAppInBackground() fails with Appium 1.5.3 and java client 4.1.0
$ appium
[Appium] Welcome to Appium v1.5.3 (REV e1c84bae37afae282f39b91025435c3717e6d0ab)
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> GET /wd/hub/status {}
[MJSONWP] Calling AppiumDriver.getStatus() with args: []
[MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.5.3"...
[HTTP] <-- GET /wd/hub/status 200 18 ms - 121
[HTTP] --> GET /wd/hub/status {}
[MJSONWP] Calling AppiumDriver.getStatus() with args: []
[MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.5.3"...
[HTTP] <-- GET /wd/hub/status 200 8 ms - 121
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/fangmobile/Proj/java-client/src/test/java/io/appium/java_client/ApiDemos-debug.apk","platformName":"Android","deviceName":"Android Emulator"}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/fangmobile/Proj...
[Appium] Creating new AndroidDriver session
[Appium] Capabilities:
[Appium] app: '/Users/fangmobile/Proj/java-client/src/test/java/io/appium/java_client/ApiDemos-debug.apk'
[Appium] platformName: 'Android'
[Appium] deviceName: 'Android Emulator'
[BaseDriver] Session created with session id: 0a447ff4-088f-4ca4-b203-1efef99e4690
[debug] [AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_45
[ADB] Checking whether adb is present
[ADB] Using adb from /Users/fangmobile/Develop/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/fangmobile/Develop/android/sdk/platform-tools/adb
[debug] [ADB] Setting device id to emulator-5554
[BaseDriver] Using local app '/Users/fangmobile/Proj/java-client/src/test/java/io/appium/java_client/ApiDemos-debug.apk'
[debug] [AndroidDriver] Checking whether app is actually present
[AndroidDriver] Starting Android session
[debug] [ADB] Running /Users/fangmobile/Develop/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/fangmobile/Develop/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/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","install","/Users/fangmobile/.nvm/versions/node/v5.5.0/lib/node_modules/appium/node_modules/appium-android-driver/node_modules/io.appium.settings/bin/settings_apk-debug.apk"]
[debug] [AndroidDriver] Pushing unlock helper app to device...
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","install","/Users/fangmobile/.nvm/versions/node/v5.5.0/lib/node_modules/appium/node_modules/appium-android-driver/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 /Users/fangmobile/Develop/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/fangmobile/Develop/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/fangmobile/Develop/android/sdk/build-tools/24.0.1/aapt
[ADB] Extracting package and launch activity from manifest
[debug] [ADB] badging package: io.appium.android.apis
[debug] [ADB] badging act: io.appium.android.apis.ApiDemos
[debug] [AndroidDriver] Parsed package and activity are: io.appium.android.apis/io.appium.android.apis.ApiDemos
[AndroidDriver] Remote apk path is /data/local/tmp/29649242b53e9a67ba855b067422713c.apk
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","ls","/data/local/tmp/29649242b53e9a67ba855b067422713c.apk"]
[debug] [AndroidDriver] Checking if app is installed
[debug] [ADB] Getting install status for io.appium.android.apis
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","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 /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","pm","list","packages","-3","io.appium.android.apis"]
[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/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","am","force-stop","io.appium.android.apis"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","pm","clear","io.appium.android.apis"]
[debug] [AndroidDriver] Extracting strings from apk /Users/fangmobile/Proj/java-client/src/test/java/io/appium/java_client/ApiDemos-debug.apk null /var/folders/6p/3p_xs0qj3qx9lg87gntblc90trfsbq/T/io.appium.android.apis
[debug] [ADB] Extracting strings for language: default
[debug] [ADB] Device API level: 23
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/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/fangmobile/Develop/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/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","push","/var/folders/6p/3p_xs0qj3qx9lg87gntblc90trfsbq/T/io.appium.android.apis/strings.json","/data/local/tmp"]
[debug] [AndroidBootstrap] Watching for bootstrap disconnect
[debug] [ADB] Forwarding system: 4724 to device: 4724
[debug] [ADB] Running /Users/fangmobile/Develop/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/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","push","/Users/fangmobile/.nvm/versions/node/v5.5.0/lib/node_modules/appium/node_modules/appium-android-driver/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/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","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, emulator-5554, shell, uiautomator, runtest, AppiumBootstrap.jar, -c, io.appium.android.bootstrap.Bootstrap, -e, pkg, io.appium.android.apis, -e, disableAndroidWatchers, false, -e, acceptSslCerts, false
[debug] [UiAutomator] Moving to state 'online'
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] json loading complete.
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Registered crash watchers.
[AndroidBootstrap] Android bootstrap socket is now connected
[debug] [ADB] Device API level: 23
[debug] [ADB] Getting connected devices...
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Client connected
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","am","start","-n","io.appium.android.apis/io.appium.android.apis.ApiDemos","-S","-a","android.intent.action.MAIN","-c","android.intent.category.LAUNCHER","-f","0x10200000"]
[debug] [ADB] Waiting for pkg: 'io.appium.android.apis' and activity: 'io.appium.android.apis.ApiDemos' to be focused
[debug] [ADB] Possible activities, to be checked: io.appium.android.apis.ApiDemos, .ApiDemos, .io.appium.android.apis.ApiDemos
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[Appium] New AndroidDriver session created successfully, session 0a447ff4-088f-4ca4-b203-1efef99e4690 added to master session list
[MJSONWP] Responding to client with driver.createSession() result: {"platform":"LINUX","webSto...
[HTTP] <-- POST /wd/hub/session 200 4379 ms - 811
[HTTP] --> POST /wd/hub/session/0a447ff4-088f-4ca4-b203-1efef99e4690/appium/device/start_activity {"appPackage":"io.appium.android.apis","appActivity":".ApiDemos","appWaitPackage":"","appWaitActivity":"","dontStopAppOnReset":false,"intentAction":"","intentCategory":"","intentFlags":"","optionalIntentArguments":""}
[MJSONWP] Calling AppiumDriver.startActivity() with args: ["io.appium.android.apis","...
[debug] [AndroidDriver] Starting package 'io.appium.android.apis' and activity '.ApiDemos'
[debug] [ADB] Device API level: 23
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","am","start","-n","io.appium.android.apis/.ApiDemos","-S"]
[debug] [ADB] Waiting for pkg: 'io.appium.android.apis' and activity: '.ApiDemos' to be focused
[debug] [ADB] Possible activities, to be checked: .ApiDemos
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[MJSONWP] Responding to client with driver.startActivity() result: null
[HTTP] <-- POST /wd/hub/session/0a447ff4-088f-4ca4-b203-1efef99e4690/appium/device/start_activity 200 1058 ms - 76
[HTTP] --> POST /wd/hub/session/0a447ff4-088f-4ca4-b203-1efef99e4690/appium/device/start_activity {"appPackage":"io.appium.android.apis","appActivity":".accessibility.AccessibilityNodeProviderActivity","appWaitPackage":"","appWaitActivity":"","dontStopAppOnReset":false,"intentAction":"","intentCategory":"","intentFlags":"","optionalIntentArguments":""}
[MJSONWP] Calling AppiumDriver.startActivity() with args: ["io.appium.android.apis","...
[debug] [AndroidDriver] Starting package 'io.appium.android.apis' and activity '.accessibility.AccessibilityNodeProviderActivity'
[debug] [ADB] Device API level: 23
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","am","start","-n","io.appium.android.apis/.accessibility.AccessibilityNodeProviderActivity","-S"]
[debug] [ADB] Waiting for pkg: 'io.appium.android.apis' and activity: '.accessibility.AccessibilityNodeProviderActivity' to be focused
[debug] [ADB] Possible activities, to be checked: .accessibility.AccessibilityNodeProviderActivity
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.accessibility.AccessibilityNodeProviderActivity'
[MJSONWP] Responding to client with driver.startActivity() result: null
[HTTP] <-- POST /wd/hub/session/0a447ff4-088f-4ca4-b203-1efef99e4690/appium/device/start_activity 200 802 ms - 76
[HTTP] --> GET /wd/hub/session/0a447ff4-088f-4ca4-b203-1efef99e4690/appium/device/current_activity {}
[MJSONWP] Calling AppiumDriver.getCurrentActivity() with args: ["0a447ff4-088f-4ca4-b203-1...
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[MJSONWP] Responding to client with driver.getCurrentActivity() result: ".accessibility.Accessibili...
[HTTP] <-- GET /wd/hub/session/0a447ff4-088f-4ca4-b203-1efef99e4690/appium/device/current_activity 200 77 ms - 122
[HTTP] --> POST /wd/hub/session/0a447ff4-088f-4ca4-b203-1efef99e4690/appium/app/background {"seconds":3}
[MJSONWP] Calling AppiumDriver.background() with args: [3,"0a447ff4-088f-4ca4-b203...
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Pressing the HOME button
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","input","keyevent",3]
[debug] [ADB] Device API level: 23
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","am","start","-n","io.appium.android.apis/io.appium.android.apis.ApiDemos","-S","-a","android.intent.action.MAIN","-c","android.intent.category.LAUNCHER","-f","0x10200000"]
[debug] [ADB] Waiting for pkg: 'io.appium.android.apis' and activity: '.accessibility.AccessibilityNodeProviderActivity' to be focused
[debug] [ADB] Possible activities, to be checked: .accessibility.AccessibilityNodeProviderActivity
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[debug] [ADB] Incorrect package and activity. Retrying.
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[debug] [ADB] Incorrect package and activity. Retrying.
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[debug] [ADB] Incorrect package and activity. Retrying.
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[debug] [ADB] Incorrect package and activity. Retrying.
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[debug] [ADB] Incorrect package and activity. Retrying.
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[debug] [ADB] Incorrect package and activity. Retrying.
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[debug] [ADB] Incorrect package and activity. Retrying.
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[debug] [ADB] Incorrect package and activity. Retrying.
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[debug] [ADB] Incorrect package and activity. Retrying.
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[debug] [ADB] Incorrect package and activity. Retrying.
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[debug] [ADB] Incorrect package and activity. Retrying.
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[debug] [ADB] Incorrect package and activity. Retrying.
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[debug] [ADB] Incorrect package and activity. Retrying.
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[debug] [ADB] Incorrect package and activity. Retrying.
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[debug] [ADB] Incorrect package and activity. Retrying.
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[debug] [ADB] Incorrect package and activity. Retrying.
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[debug] [ADB] Incorrect package and activity. Retrying.
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[debug] [ADB] Incorrect package and activity. Retrying.
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[debug] [ADB] Incorrect package and activity. Retrying.
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[debug] [ADB] Incorrect package and activity. Retrying.
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[debug] [ADB] Incorrect package and activity. Retrying.
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[debug] [ADB] Incorrect package and activity. Retrying.
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[debug] [ADB] Incorrect package and activity. Retrying.
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[debug] [ADB] Incorrect package and activity. Retrying.
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[debug] [ADB] Incorrect package and activity. Retrying.
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos'
[debug] [ADB] Incorrect package and activity. Retrying.
[ADB] Error: io.appium.android.apis/.accessibility.AccessibilityNodeProviderActivity never started
at Object.wrappedLogger.errorAndThrow (lib/logger.js:60:13)
at ADB.callee$0$0$ (lib/tools/apk-utils.js:142:7)
at tryCatch (/Users/fangmobile/.nvm/versions/node/v5.5.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/fangmobile/.nvm/versions/node/v5.5.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Users/fangmobile/.nvm/versions/node/v5.5.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Users/fangmobile/.nvm/versions/node/v5.5.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at run (/Users/fangmobile/.nvm/versions/node/v5.5.0/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:104:47)
at /Users/fangmobile/.nvm/versions/node/v5.5.0/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:115:28
at flush (/Users/fangmobile/.nvm/versions/node/v5.5.0/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/$.microtask.js:19:5)
at nextTickCallbackWith0Args (node.js:452:9)
at process._tickCallback (node.js:381:13)
[Error: io.appium.android.apis/.accessibility.AccessibilityNodeProviderActivity never started]
[ADB] Error: Error occured while starting App. Original error: io.appium.android.apis/.accessibility.AccessibilityNodeProviderActivity never started
at Object.wrappedLogger.errorAndThrow (lib/logger.js:60:13)
at ADB.callee$0$0$ (lib/tools/apk-utils.js:80:9)
at tryCatch (/Users/fangmobile/.nvm/versions/node/v5.5.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/fangmobile/.nvm/versions/node/v5.5.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Users/fangmobile/.nvm/versions/node/v5.5.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Users/fangmobile/.nvm/versions/node/v5.5.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at run (/Users/fangmobile/.nvm/versions/node/v5.5.0/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:104:47)
at /Users/fangmobile/.nvm/versions/node/v5.5.0/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:115:28
at flush (/Users/fangmobile/.nvm/versions/node/v5.5.0/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/$.microtask.js:19:5)
at nextTickCallbackWith0Args (node.js:452:9)
at process._tickCallback (node.js:381:13)
[Error: Error occured while starting App. Original error: io.appium.android.apis/.accessibility.AccessibilityNodeProviderActivity never started]
[MJSONWP] Encountered internal error running command: Error: Error occured while starting App. Original error: io.appium.android.apis/.accessibility.AccessibilityNodeProviderActivity never started
at Object.wrappedLogger.errorAndThrow (lib/logger.js:60:13)
at ADB.callee$0$0$ (lib/tools/apk-utils.js:80:9)
at tryCatch (/Users/fangmobile/.nvm/versions/node/v5.5.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/fangmobile/.nvm/versions/node/v5.5.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Users/fangmobile/.nvm/versions/node/v5.5.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Users/fangmobile/.nvm/versions/node/v5.5.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at run (/Users/fangmobile/.nvm/versions/node/v5.5.0/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:104:47)
at /Users/fangmobile/.nvm/versions/node/v5.5.0/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:115:28
at flush (/Users/fangmobile/.nvm/versions/node/v5.5.0/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/$.microtask.js:19:5)
at nextTickCallbackWith0Args (node.js:452:9)
at process._tickCallback (node.js:381:13)
[HTTP] <-- POST /wd/hub/session/0a447ff4-088f-4ca4-b203-1efef99e4690/appium/app/background 500 25588 ms - 306
[HTTP] --> DELETE /wd/hub/session/0a447ff4-088f-4ca4-b203-1efef99e4690 {}
[MJSONWP] Calling AppiumDriver.deleteSession() with args: ["0a447ff4-088f-4ca4-b203-1...
[debug] [AndroidDriver] Shutting down Android driver
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","am","force-stop","io.appium.android.apis"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","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 /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","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":"shutdown"}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type SHUTDOWN
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":"OK, shutting down"}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Closed client connection
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS: numtests=1
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS: stream=.
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS: current=1
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS_CODE: 0
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [UiAutomator] Shutting down UiAutomator
[debug] [UiAutomator] Moving to state 'stopping'
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS: stream=
[debug] [AndroidBootstrap] [UIAUTO STDOUT] Test results for WatcherResultPrinter=.
[debug] [AndroidBootstrap] [UIAUTO STDOUT] Time: 30.145
[debug] [AndroidBootstrap] [UIAUTO STDOUT] OK (1 test)
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS_CODE: -1
[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 /Users/fangmobile/Develop/android/sdk/platform-tools/adb with args: ["-P",5037,"-s","emulator-5554","shell","ps","uiautomator"]
[ADB] No uiautomator process found to kill, continuing...
[debug] [UiAutomator] Moving to state 'stopped'
[Appium] Removing session 0a447ff4-088f-4ca4-b203-1efef99e4690 from our master session 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/0a447ff4-088f-4ca4-b203-1efef99e4690 200 1739 ms - 76
==================================================================================================
Test Log:
$ mvn clean test -Dtest=AndroidActivityTest#startActivityInThisAppTestCase
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.074s
[INFO] Finished at: Mon Aug 15 23:50:58 PDT 2016
[INFO] Final Memory: 6M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/Users/fangmobile). Please verify you invoked Maven from the correct directory. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
✘-1 ~
$ cd Proj/java-client/
✔ ~/Proj/java-client [4.1.0|✚ 1]
$ mvn clean test -Dtest=AndroidActivityTest#startActivityInThisAppTestCase
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building java-client 4.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ java-client ---
[INFO] Deleting /Users/fangmobile/Proj/java-client/target
[INFO]
[INFO] --- maven-checkstyle-plugin:2.17:check (validate) @ java-client ---
[INFO] Starting audit...
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebDriver.java:21: Wrong lexicographical order for 'org.openqa.selenium.logging.LoggingPreferences' import. Should be before 'org.openqa.selenium.logging.Logs'. [CustomImportOrder]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebDriver.java:37: <p> tag should be placed immediately before the first word, with no space after. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebDriver.java:37: <p> tag should be preceded with an empty line. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebDriver.java:41: <p> tag should be placed immediately before the first word, with no space after. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebDriver.java:41: <p> tag should be preceded with an empty line. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebDriver.java:45: <p> tag should be placed immediately before the first word, with no space after. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebDriver.java:45: <p> tag should be preceded with an empty line. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebDriver.java:78: Line continuation have incorrect indentation level, expected level should be 4. [JavadocTagContinuationIndentation]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebDriver.java:167: Line continuation have incorrect indentation level, expected level should be 4. [JavadocTagContinuationIndentation]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebDriver.java:179: First sentence of Javadoc is incomplete (period is missing) or not present. [SummaryJavadoc]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebDriver.java:228: Forbidden summary fragment. [SummaryJavadoc]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebDriver.java:233: Forbidden summary fragment. [SummaryJavadoc]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebDriver.java:238: Forbidden summary fragment. [SummaryJavadoc]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebDriver.java:245: <p> tag should be placed immediately before the first word, with no space after. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebDriver.java:245: <p> tag should be preceded with an empty line. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebDriver.java:246: <p> tag should be preceded with an empty line. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebDriver.java:262: <p> tag should be placed immediately before the first word, with no space after. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebDriver.java:262: <p> tag should be preceded with an empty line. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebDriver.java:267: <p> tag should be placed immediately before the first word, with no space after. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebDriver.java:267: <p> tag should be preceded with an empty line. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebDriver.java:370: Line continuation have incorrect indentation level, expected level should be 4. [JavadocTagContinuationIndentation]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebDriver.java:415: First sentence of Javadoc is incomplete (period is missing) or not present. [SummaryJavadoc]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebDriver.java:505: First sentence of Javadoc is incomplete (period is missing) or not present. [SummaryJavadoc]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebDriver.java:510: First sentence of Javadoc is incomplete (period is missing) or not present. [SummaryJavadoc]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebElement.java:25: <p> tag should be placed immediately before the first word, with no space after. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebElement.java:25: <p> tag should be preceded with an empty line. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebElement.java:37: <p> tag should be placed immediately before the first word, with no space after. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebElement.java:37: <p> tag should be preceded with an empty line. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebElement.java:42: <p> tag should be placed immediately before the first word, with no space after. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebElement.java:42: <p> tag should be preceded with an empty line. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebElement.java:43: <p> tag should be placed immediately before the first word, with no space after. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebElement.java:43: <p> tag should be preceded with an empty line. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebElement.java:72: <p> tag should be placed immediately before the first word, with no space after. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebElement.java:72: <p> tag should be preceded with an empty line. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebElement.java:97: <p> tag should be placed immediately before the first word, with no space after. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebElement.java:97: <p> tag should be preceded with an empty line. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebElement.java:103: <p> tag should be placed immediately before the first word, with no space after. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebElement.java:103: <p> tag should be preceded with an empty line. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebElement.java:106: <p> tag should be placed immediately before the first word, with no space after. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebElement.java:106: <p> tag should be preceded with an empty line. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebElement.java:183: First sentence of Javadoc is incomplete (period is missing) or not present. [SummaryJavadoc]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebElement.java:197: First sentence of Javadoc is incomplete (period is missing) or not present. [SummaryJavadoc]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebElement.java:207: <p> tag should be placed immediately before the first word, with no space after. [JavadocParagraph]
[WARN] /Users/fangmobile/Proj/java-client/src/main/java/org/openqa/selenium/WebElement.java:207: <p> tag should be preceded with an empty line. [JavadocParagraph]
Audit done.
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.7.201606060606:prepare-agent (jacoco-initialize) @ java-client ---
[INFO] argLine set to -javaagent:/Users/fangmobile/.m2/repository/org/jacoco/org.jacoco.agent/0.7.7.201606060606/org.jacoco.agent-0.7.7.201606060606-runtime.jar=destfile=/Users/fangmobile/Proj/java-client/target/coverage-reports/jacoco-unit.exec
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ java-client ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ java-client ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ java-client ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ java-client ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ java-client ---
-------------------------------------------------------
T E S T S
-------------------------------------------------------
objc[48854]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
[Appium] Welcome to Appium v1.5.3 (REV e1c84bae37afae282f39b91025435c3717e6d0ab)
[HTTP] Could not start REST http interface listener. The requested port may already be in use. Please make sure there is no other instance of this server running already.
Error: listen EADDRINUSE 0.0.0.0:4723
at Object.exports._errnoException (util.js:856:11)
at exports._exceptionWithHostPort (util.js:879:20)
at Server._listen2 (net.js:1236:14)
at listen (net.js:1272:10)
at net.js:1381:9
at nextTickCallbackWith3Args (node.js:485:9)
at process._tickCallback (node.js:391:17)
Running io.appium.java_client.android.AndroidActivityTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 29.303 sec <<< FAILURE! - in io.appium.java_client.android.AndroidActivityTest
startActivityInThisAppTestCase(io.appium.java_client.android.AndroidActivityTest) Time elapsed: 27.557 sec <<< ERROR!
org.openqa.selenium.WebDriverException:
An unknown server-side error occurred while processing the command. Original error: Error occured while starting App. Original error: io.appium.android.apis/.accessibility.AccessibilityNodeProviderActivity never started (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 25.59 seconds
Build info: version: '2.53.1', revision: 'a36b8b1cd5757287168e54b817830adce9b0158d', time: '2016-06-30 19:26:09'
System info: host: 'MTVL130e6095f.local', ip: '10.0.0.2', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_45'
Driver info: io.appium.java_client.android.AndroidDriver
Capabilities [{app=/Users/fangmobile/Proj/java-client/src/test/java/io/appium/java_client/ApiDemos-debug.apk, appPackage=io.appium.android.apis, networkConnectionEnabled=true, warnings={}, appWaitPackage=io.appium.android.apis, appWaitActivity=io.appium.android.apis.ApiDemos, databaseEnabled=false, deviceName=emulator-5554, platform=LINUX, deviceUDID=emulator-5554, appActivity=io.appium.android.apis.ApiDemos, desired={app=/Users/fangmobile/Proj/java-client/src/test/java/io/appium/java_client/ApiDemos-debug.apk, platformName=Android, deviceName=Android Emulator}, platformVersion=6.0, webStorageEnabled=false, locationContextEnabled=false, takesScreenshot=true, javascriptEnabled=true, platformName=Android}]
Session ID: 0a447ff4-088f-4ca4-b203-1efef99e4690
at io.appium.java_client.android.AndroidActivityTest.startActivityInThisAppTestCase(AndroidActivityTest.java:35)
Results :
Tests in error:
AndroidActivityTest.startActivityInThisAppTestCase:35 » WebDriver An unknown s...
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 42.732s
[INFO] Finished at: Mon Aug 15 23:52:09 PDT 2016
[INFO] Final Memory: 33M/413M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project java-client: There are test failures.
[ERROR]
[ERROR] Please refer to /Users/fangmobile/Proj/java-client/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
✘-1 ~/Proj/java-client [4.1.0|✚ 1]
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment