Created
July 29, 2016 11:18
-
-
Save SrinivasanTarget/1a5683fc5523bd50b74a98884cf484b3 to your computer and use it in GitHub Desktop.
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
srinivasansekar:java-client srinivasansekar$ mvn clean -Dtest=AndroidGestureTest test | |
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building java-client 5.0.0-SNAPSHOT | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] | |
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ java-client --- | |
[INFO] Deleting /Users/srinivasansekar/AppiumRepo/java-client/target | |
[INFO] | |
[INFO] --- maven-checkstyle-plugin:2.17:check (validate) @ java-client --- | |
[INFO] Starting audit... | |
[WARN] /Users/srinivasansekar/AppiumRepo/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/srinivasansekar/AppiumRepo/java-client/src/main/java/org/openqa/selenium/WebDriver.java:37: <p> tag should be preceded with an empty line. [JavadocParagraph] | |
[WARN] /Users/srinivasansekar/AppiumRepo/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/srinivasansekar/AppiumRepo/java-client/src/main/java/org/openqa/selenium/WebDriver.java:41: <p> tag should be preceded with an empty line. [JavadocParagraph] | |
[WARN] /Users/srinivasansekar/AppiumRepo/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/srinivasansekar/AppiumRepo/java-client/src/main/java/org/openqa/selenium/WebDriver.java:45: <p> tag should be preceded with an empty line. [JavadocParagraph] | |
[WARN] /Users/srinivasansekar/AppiumRepo/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/srinivasansekar/AppiumRepo/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/srinivasansekar/AppiumRepo/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/srinivasansekar/AppiumRepo/java-client/src/main/java/org/openqa/selenium/WebDriver.java:228: Forbidden summary fragment. [SummaryJavadoc] | |
[WARN] /Users/srinivasansekar/AppiumRepo/java-client/src/main/java/org/openqa/selenium/WebDriver.java:233: Forbidden summary fragment. [SummaryJavadoc] | |
[WARN] /Users/srinivasansekar/AppiumRepo/java-client/src/main/java/org/openqa/selenium/WebDriver.java:238: Forbidden summary fragment. [SummaryJavadoc] | |
[WARN] /Users/srinivasansekar/AppiumRepo/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/srinivasansekar/AppiumRepo/java-client/src/main/java/org/openqa/selenium/WebDriver.java:245: <p> tag should be preceded with an empty line. [JavadocParagraph] | |
[WARN] /Users/srinivasansekar/AppiumRepo/java-client/src/main/java/org/openqa/selenium/WebDriver.java:246: <p> tag should be preceded with an empty line. [JavadocParagraph] | |
[WARN] /Users/srinivasansekar/AppiumRepo/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/srinivasansekar/AppiumRepo/java-client/src/main/java/org/openqa/selenium/WebDriver.java:262: <p> tag should be preceded with an empty line. [JavadocParagraph] | |
[WARN] /Users/srinivasansekar/AppiumRepo/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/srinivasansekar/AppiumRepo/java-client/src/main/java/org/openqa/selenium/WebDriver.java:267: <p> tag should be preceded with an empty line. [JavadocParagraph] | |
[WARN] /Users/srinivasansekar/AppiumRepo/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/srinivasansekar/AppiumRepo/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/srinivasansekar/AppiumRepo/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/srinivasansekar/AppiumRepo/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/srinivasansekar/AppiumRepo/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/srinivasansekar/AppiumRepo/java-client/src/main/java/org/openqa/selenium/WebElement.java:25: <p> tag should be preceded with an empty line. [JavadocParagraph] | |
[WARN] /Users/srinivasansekar/AppiumRepo/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/srinivasansekar/AppiumRepo/java-client/src/main/java/org/openqa/selenium/WebElement.java:37: <p> tag should be preceded with an empty line. [JavadocParagraph] | |
[WARN] /Users/srinivasansekar/AppiumRepo/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/srinivasansekar/AppiumRepo/java-client/src/main/java/org/openqa/selenium/WebElement.java:42: <p> tag should be preceded with an empty line. [JavadocParagraph] | |
[WARN] /Users/srinivasansekar/AppiumRepo/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/srinivasansekar/AppiumRepo/java-client/src/main/java/org/openqa/selenium/WebElement.java:43: <p> tag should be preceded with an empty line. [JavadocParagraph] | |
[WARN] /Users/srinivasansekar/AppiumRepo/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/srinivasansekar/AppiumRepo/java-client/src/main/java/org/openqa/selenium/WebElement.java:72: <p> tag should be preceded with an empty line. [JavadocParagraph] | |
[WARN] /Users/srinivasansekar/AppiumRepo/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/srinivasansekar/AppiumRepo/java-client/src/main/java/org/openqa/selenium/WebElement.java:97: <p> tag should be preceded with an empty line. [JavadocParagraph] | |
[WARN] /Users/srinivasansekar/AppiumRepo/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/srinivasansekar/AppiumRepo/java-client/src/main/java/org/openqa/selenium/WebElement.java:103: <p> tag should be preceded with an empty line. [JavadocParagraph] | |
[WARN] /Users/srinivasansekar/AppiumRepo/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/srinivasansekar/AppiumRepo/java-client/src/main/java/org/openqa/selenium/WebElement.java:106: <p> tag should be preceded with an empty line. [JavadocParagraph] | |
[WARN] /Users/srinivasansekar/AppiumRepo/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/srinivasansekar/AppiumRepo/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/srinivasansekar/AppiumRepo/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/srinivasansekar/AppiumRepo/java-client/src/main/java/org/openqa/selenium/WebElement.java:207: <p> tag should be preceded with an empty line. [JavadocParagraph] | |
[WARN] /Users/srinivasansekar/AppiumRepo/java-client/src/test/java/io/appium/java_client/android/AndroidGestureTest.java:21: Wrong lexicographical order for 'org.junit.Assert.assertFalse' import. Should be before 'org.junit.Assert.assertNotEquals'. [CustomImportOrder] | |
Audit done. | |
[INFO] | |
[INFO] --- jacoco-maven-plugin:0.7.6.201602180812:prepare-agent (jacoco-initialize) @ java-client --- | |
[INFO] argLine set to -javaagent:/Users/srinivasansekar/.m2/repository/org/jacoco/org.jacoco.agent/0.7.6.201602180812/org.jacoco.agent-0.7.6.201602180812-runtime.jar=destfile=/Users/srinivasansekar/AppiumRepo/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.3: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.3: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.18.1:test (default-test) @ java-client --- | |
[INFO] Surefire report directory: /Users/srinivasansekar/AppiumRepo/java-client/target/surefire-reports | |
[INFO] Using configured provider org.apache.maven.surefire.junitcore.JUnitCoreProvider | |
[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true | |
------------------------------------------------------- | |
T E S T S | |
------------------------------------------------------- | |
objc[86813]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_91.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 fc85a6fab67df7b4412d6910ef7a1f6ff1299531) | |
[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 22 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 11 ms - 121 | |
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/srinivasansekar/ApiDemos-debug.apk","platformName":"Android","deviceName":"Android Emulator"}} | |
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/srinivasans... | |
[Appium] Creating new AndroidDriver session | |
[Appium] Capabilities: | |
[Appium] app: '/Users/srinivasansekar/ApiDemos-debug.apk' | |
[Appium] platformName: 'Android' | |
[Appium] deviceName: 'Android Emulator' | |
[BaseDriver] Session created with session id: f8bcb40c-7cd9-43fa-a187-163d20face2b | |
[debug] [AndroidDriver] Getting Java version | |
[AndroidDriver] Java version is: 1.8.0_91 | |
[ADB] Checking whether adb is present | |
[ADB] Using adb from /Users/srinivasansekar/Documents/android-sdk-macosx/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: 192.168.56.101:5555 | |
[ADB] Checking whether adb is present | |
[ADB] Using adb from /Users/srinivasansekar/Documents/android-sdk-macosx/platform-tools/adb | |
[debug] [ADB] Setting device id to 192.168.56.101:5555 | |
[BaseDriver] Using local app '/Users/srinivasansekar/ApiDemos-debug.apk' | |
[debug] [AndroidDriver] Checking whether app is actually present | |
[AndroidDriver] Starting Android session | |
[debug] [ADB] Running /Users/srinivasansekar/Documents/android-sdk-macosx/platform-tools/adb with args: ["-P",5037,"-s","192.168.56.101:5555","wait-for-device"] | |
[debug] [ADB] Getting connected devices... | |
[debug] [ADB] 1 device(s) connected | |
[debug] [ADB] Running /Users/srinivasansekar/Documents/android-sdk-macosx/platform-tools/adb with args: ["-P",5037,"-s","192.168.56.101:5555","shell","echo","ping"] | |
[debug] [Logcat] Starting logcat capture | |
[debug] [AndroidDriver] Pushing settings apk to device... | |
[debug] [ADB] Running /Users/srinivasansekar/Documents/android-sdk-macosx/platform-tools/adb with args: ["-P",5037,"-s","192.168.56.101:5555","install","/usr/local/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/srinivasansekar/Documents/android-sdk-macosx/platform-tools/adb with args: ["-P",5037,"-s","192.168.56.101:5555","install","/usr/local/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/srinivasansekar/Documents/android-sdk-macosx/platform-tools/adb with args: ["-P",5037,"-s","192.168.56.101:5555","shell","getprop","ro.build.version.release"] | |
[debug] [ADB] Getting connected devices... | |
[debug] [ADB] 1 device(s) connected | |
[debug] [ADB] Running /Users/srinivasansekar/Documents/android-sdk-macosx/platform-tools/adb with args: ["-P",5037,"-s","192.168.56.101:5555","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/srinivasansekar/Documents/android-sdk-macosx/build-tools/22.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/srinivasansekar/Documents/android-sdk-macosx/platform-tools/adb with args: ["-P",5037,"-s","192.168.56.101:5555","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/srinivasansekar/Documents/android-sdk-macosx/platform-tools/adb with args: ["-P",5037,"-s","192.168.56.101:5555","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/srinivasansekar/Documents/android-sdk-macosx/platform-tools/adb with args: ["-P",5037,"-s","192.168.56.101:5555","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/srinivasansekar/Documents/android-sdk-macosx/platform-tools/adb with args: ["-P",5037,"-s","192.168.56.101:5555","shell","am","force-stop","io.appium.android.apis"] | |
[debug] [ADB] Getting connected devices... | |
[debug] [ADB] 1 device(s) connected | |
[debug] [ADB] Running /Users/srinivasansekar/Documents/android-sdk-macosx/platform-tools/adb with args: ["-P",5037,"-s","192.168.56.101:5555","shell","pm","clear","io.appium.android.apis"] | |
[debug] [AndroidDriver] Extracting strings from apk /Users/srinivasansekar/ApiDemos-debug.apk null /var/folders/bw/v288w4zx0zbbc3ycc833k7rm0000gn/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/srinivasansekar/Documents/android-sdk-macosx/platform-tools/adb with args: ["-P",5037,"-s","192.168.56.101:5555","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/srinivasansekar/Documents/android-sdk-macosx/platform-tools/adb with args: ["-P",5037,"-s","192.168.56.101:5555","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/srinivasansekar/Documents/android-sdk-macosx/platform-tools/adb with args: ["-P",5037,"-s","192.168.56.101:5555","push","/var/folders/bw/v288w4zx0zbbc3ycc833k7rm0000gn/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/srinivasansekar/Documents/android-sdk-macosx/platform-tools/adb with args: ["-P",5037,"-s","192.168.56.101:5555","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/srinivasansekar/Documents/android-sdk-macosx/platform-tools/adb with args: ["-P",5037,"-s","192.168.56.101:5555","push","/usr/local/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/srinivasansekar/Documents/android-sdk-macosx/platform-tools/adb with args: ["-P",5037,"-s","192.168.56.101:5555","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, 192.168.56.101:5555, 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/srinivasansekar/Documents/android-sdk-macosx/platform-tools/adb with args: ["-P",5037,"-s","192.168.56.101:5555","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/srinivasansekar/Documents/android-sdk-macosx/platform-tools/adb with args: ["-P",5037,"-s","192.168.56.101:5555","shell","dumpsys","window","windows"] | |
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.ApiDemos' | |
[Appium] New AndroidDriver session created successfully, session f8bcb40c-7cd9-43fa-a187-163d20face2b added to master session list | |
[MJSONWP] Responding to client with driver.createSession() result: {"platform":"LINUX","webSto... | |
[HTTP] <-- POST /wd/hub/session 200 3915 ms - 735 | |
Running io.appium.java_client.android.AndroidGestureTest | |
[HTTP] --> POST /wd/hub/session/f8bcb40c-7cd9-43fa-a187-163d20face2b/appium/device/start_activity {"appPackage":"io.appium.android.apis","appActivity":".view.TextSwitcher1","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 '.view.TextSwitcher1' | |
[debug] [ADB] Device API level: 23 | |
[debug] [ADB] Getting connected devices... | |
[debug] [ADB] 1 device(s) connected | |
[debug] [ADB] Running /Users/srinivasansekar/Documents/android-sdk-macosx/platform-tools/adb with args: ["-P",5037,"-s","192.168.56.101:5555","shell","am","start","-n","io.appium.android.apis/.view.TextSwitcher1","-S"] | |
[debug] [ADB] Waiting for pkg: 'io.appium.android.apis' and activity: '.view.TextSwitcher1' to be focused | |
[debug] [ADB] Possible activities, to be checked: .view.TextSwitcher1 | |
[debug] [ADB] Getting focused package and activity | |
[debug] [ADB] Getting connected devices... | |
[debug] [ADB] 1 device(s) connected | |
[debug] [ADB] Running /Users/srinivasansekar/Documents/android-sdk-macosx/platform-tools/adb with args: ["-P",5037,"-s","192.168.56.101:5555","shell","dumpsys","window","windows"] | |
[debug] [ADB] Found package: 'io.appium.android.apis' and activity: '.view.TextSwitcher1' | |
[MJSONWP] Responding to client with driver.startActivity() result: null | |
[HTTP] <-- POST /wd/hub/session/f8bcb40c-7cd9-43fa-a187-163d20face2b/appium/device/start_activity 200 978 ms - 76 | |
[HTTP] --> POST /wd/hub/session/f8bcb40c-7cd9-43fa-a187-163d20face2b/element {"using":"class name","value":"android.widget.TextView"} | |
[MJSONWP] Calling AppiumDriver.findElement() with args: ["class name","android.widg... | |
[debug] [BaseDriver] Waiting up to 0 ms for condition | |
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"class name","selector":"android.widget.TextView","context":"","multiple":false}} | |
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"class name","selector":"android.widget.TextView","context":"","multiple":false}} | |
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION | |
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find | |
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android.widget.TextView' using 'CLASS_NAME' with the contextId: '' multiple: false | |
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[CLASS=android.widget.TextView, INSTANCE=0] | |
[debug] [AndroidBootstrap] Received command result from bootstrap | |
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":{"ELEMENT":"1"}} | |
[MJSONWP] Responding to client with driver.findElement() result: {"ELEMENT":"1"} | |
[HTTP] <-- POST /wd/hub/session/f8bcb40c-7cd9-43fa-a187-163d20face2b/element 200 800 ms - 87 | |
[HTTP] --> GET /wd/hub/session/f8bcb40c-7cd9-43fa-a187-163d20face2b/element/1/text {} | |
[MJSONWP] Calling AppiumDriver.getText() with args: ["1","f8bcb40c-7cd9-43fa-a1... | |
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"element:getText","params":{"elementId":"1"}} | |
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"element:getText","params":{"elementId":"1"}} | |
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION | |
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: getText | |
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":"Views\/TextSwitcher"} | |
[debug] [AndroidBootstrap] Received command result from bootstrap | |
[MJSONWP] Responding to client with driver.getText() result: "Views/TextSwitcher" | |
[HTTP] <-- GET /wd/hub/session/f8bcb40c-7cd9-43fa-a187-163d20face2b/element/1/text 200 9 ms - 92 | |
[HTTP] --> POST /wd/hub/session/f8bcb40c-7cd9-43fa-a187-163d20face2b/element {"using":"id","value":"io.appium.android.apis:id/next"} | |
[MJSONWP] Calling AppiumDriver.findElement() with args: ["id","io.appium.android.ap... | |
[debug] [BaseDriver] Waiting up to 0 ms for condition | |
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"io.appium.android.apis:id/next","context":"","multiple":false}} | |
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"io.appium.android.apis:id/next","context":"","multiple":false}} | |
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION | |
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find | |
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'io.appium.android.apis:id/next' using 'ID' with the contextId: '' multiple: false | |
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=io.appium.android.apis:id/next] | |
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":{"ELEMENT":"2"}} | |
[debug] [AndroidBootstrap] Received command result from bootstrap | |
[MJSONWP] Responding to client with driver.findElement() result: {"ELEMENT":"2"} | |
[HTTP] <-- POST /wd/hub/session/f8bcb40c-7cd9-43fa-a187-163d20face2b/element 200 16 ms - 87 | |
[HTTP] --> POST /wd/hub/session/f8bcb40c-7cd9-43fa-a187-163d20face2b/touch/perform {"actions":[{"action":"doubleTap","options":{"element":"2"}}]} | |
[MJSONWP] Calling AppiumDriver.performTouch() with args: [[{"action":"doubleTap","op... | |
[MJSONWP] Encountered internal error running command: TypeError: Cannot read property 'x' of null | |
at AndroidDriver.callee$0$0$ (lib/commands/touch.js:259:32) | |
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40) | |
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22) | |
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21) | |
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37) | |
at run (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:104:47) | |
at /usr/local/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:115:28 | |
at flush (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/$.microtask.js:19:5) | |
at nextTickCallbackWith0Args (node.js:420:9) | |
at process._tickCallback (node.js:349:13) | |
[HTTP] <-- POST /wd/hub/session/f8bcb40c-7cd9-43fa-a187-163d20face2b/touch/perform 500 36 ms - 203 | |
[HTTP] --> DELETE /wd/hub/session/f8bcb40c-7cd9-43fa-a187-163d20face2b {} | |
[MJSONWP] Calling AppiumDriver.deleteSession() with args: ["f8bcb40c-7cd9-43fa-a187-1... | |
[debug] [AndroidDriver] Shutting down Android driver | |
[debug] [ADB] Getting connected devices... | |
[debug] [ADB] 1 device(s) connected | |
[debug] [ADB] Running /Users/srinivasansekar/Documents/android-sdk-macosx/platform-tools/adb with args: ["-P",5037,"-s","192.168.56.101:5555","shell","am","force-stop","io.appium.android.apis"] | |
[debug] [ADB] Getting connected devices... | |
[debug] [ADB] 1 device(s) connected | |
[debug] [ADB] Running /Users/srinivasansekar/Documents/android-sdk-macosx/platform-tools/adb with args: ["-P",5037,"-s","192.168.56.101:5555","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/srinivasansekar/Documents/android-sdk-macosx/platform-tools/adb with args: ["-P",5037,"-s","192.168.56.101:5555","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] [UIAUTO STDOUT] INSTRUMENTATION_STATUS: stream= | |
[debug] [AndroidBootstrap] [UIAUTO STDOUT] Test results for WatcherResultPrinter=. | |
[debug] [AndroidBootstrap] [UIAUTO STDOUT] Time: 4.559 | |
[debug] [AndroidBootstrap] [UIAUTO STDOUT] OK (1 test) | |
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS_CODE: -1 | |
[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 /Users/srinivasansekar/Documents/android-sdk-macosx/platform-tools/adb with args: ["-P",5037,"-s","192.168.56.101:5555","shell","ps","uiautomator"] | |
[ADB] No uiautomator process found to kill, continuing... | |
[debug] [UiAutomator] Moving to state 'stopped' | |
[Appium] Removing session f8bcb40c-7cd9-43fa-a187-163d20face2b 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/f8bcb40c-7cd9-43fa-a187-163d20face2b 200 1446 ms - 76 | |
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.826 sec <<< FAILURE! - in io.appium.java_client.android.AndroidGestureTest | |
doubleTapTest(io.appium.java_client.android.AndroidGestureTest) Time elapsed: 2.315 sec <<< ERROR! | |
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Cannot read property 'x' of null (WARNING: The server did not provide any stacktrace information) | |
Command duration or timeout: 43 milliseconds | |
Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46' | |
System info: host: 'srinivasansekar', ip: '192.168.43.109', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.2', java.version: '1.8.0_91' | |
Driver info: io.appium.java_client.android.AndroidDriver | |
Capabilities [{app=/Users/srinivasansekar/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=192.168.56.101:5555, platform=LINUX, deviceUDID=192.168.56.101:5555, appActivity=io.appium.android.apis.ApiDemos, desired={app=/Users/srinivasansekar/ApiDemos-debug.apk, platformName=Android, deviceName=Android Emulator}, platformVersion=6.0, webStorageEnabled=false, locationContextEnabled=false, takesScreenshot=true, javascriptEnabled=true, platformName=Android}] | |
Session ID: f8bcb40c-7cd9-43fa-a187-163d20face2b | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) | |
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) | |
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) | |
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206) | |
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158) | |
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678) | |
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:40) | |
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1) | |
at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1) | |
at io.appium.java_client.AppiumDriver.performTouchAction(AppiumDriver.java:371) | |
at io.appium.java_client.TouchAction.perform(TouchAction.java:351) | |
at io.appium.java_client.AppiumDriver.doubleTap(AppiumDriver.java:399) | |
at io.appium.java_client.android.AndroidGestureTest.doubleTapTest(AndroidGestureTest.java:40) | |
Results : | |
Tests in error: | |
AndroidGestureTest.doubleTapTest:40 » WebDriver An unknown server-side error o... | |
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0 | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] BUILD FAILURE | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Total time: 22.293 s | |
[INFO] Finished at: 2016-07-29T16:47:05+05:30 | |
[INFO] Final Memory: 28M/502M | |
[INFO] ------------------------------------------------------------------------ | |
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project java-client: There are test failures. | |
[ERROR] | |
[ERROR] Please refer to /Users/srinivasansekar/AppiumRepo/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 | |
srinivasansekar:java-client srinivasansekar$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment