Instantly share code, notes, and snippets.

Embed
What would you like to do?
Appium: Jenkins failure: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Command 'osascript -e 'tell application "System Events" to count processes whose bundle identifier is "com.apple.iphonesimulator"'' exited with code 1
Started by user Me
[EnvInject] - Loading node environment variables.
Building in workspace /Users/Shared/Jenkins/Home/workspace/SampleAppiumProjectIOS
Parsing POMs
Established TCP socket on 53640
[SampleAppiumProjectIOS] $ /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home//bin/java -cp /Users/Shared/Jenkins/Home/plugins/maven-plugin/WEB-INF/lib/maven33-agent-1.12-alpha-1.jar:/usr/local/Cellar/maven@3.3/3.3.9/libexec/boot/plexus-classworlds-2.5.2.jar:/usr/local/Cellar/maven@3.3/3.3.9/libexec/conf/logging jenkins.maven3.agent.Maven33Main /usr/local/Cellar/maven@3.3/3.3.9/libexec /Users/Shared/Jenkins/Home/war/WEB-INF/lib/remoting-3.10.jar /Users/Shared/Jenkins/Home/plugins/maven-plugin/WEB-INF/lib/maven33-interceptor-1.12-alpha-1.jar /Users/Shared/Jenkins/Home/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.12-alpha-1.jar 53640
<===[JENKINS REMOTING CAPACITY]===>channel started
Executing Maven: -B -f /Users/Shared/Jenkins/Home/workspace/SampleAppiumProjectIOS/pom.xml install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building squirrel_app_ios 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (auto-clean) @ squirrel_app_ios ---
[INFO] Deleting /Users/Shared/Jenkins/Home/workspace/SampleAppiumProjectIOS/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ squirrel_app_ios ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/Shared/Jenkins/Home/workspace/SampleAppiumProjectIOS/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ squirrel_app_ios ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 19 source files to /Users/Shared/Jenkins/Home/workspace/SampleAppiumProjectIOS/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ squirrel_app_ios ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/Shared/Jenkins/Home/workspace/SampleAppiumProjectIOS/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ squirrel_app_ios ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 7 source files to /Users/Shared/Jenkins/Home/workspace/SampleAppiumProjectIOS/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ squirrel_app_ios ---
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running TestSuite
Start appium server
Oct 04, 2017 11:08:49 AM com.github.genium_framework.appium.support.server.AppiumServer startServer
INFO: Server is starting...
Oct 04, 2017 11:08:49 AM com.github.genium_framework.appium.support.server.AppiumServer startServer
INFO: Server has not started yet. Trying again in one second...
Oct 04, 2017 11:08:50 AM com.github.genium_framework.appium.support.server.AppiumServer startServer
INFO: Server has not started yet. Trying again in one second...
Oct 04, 2017 11:08:51 AM com.github.genium_framework.appium.support.server.AppiumServer startServer
INFO: Server has not started yet. Trying again in one second...
Oct 04, 2017 11:08:53 AM com.github.genium_framework.appium.support.server.AppiumServer startServer
INFO: Server has been started successfully.
Appium server started
running Init beforeClass
running Init setUp
/Users/Shared/Jenkins/Home/workspace/SampleAppiumProjectIOS/app/Atom.Spark.iOS_b10_sim_v1_1.app
UNSPECIFIED EXCEPTION:
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Command 'osascript -e 'tell application "System Events" to count processes whose bundle identifier is "com.apple.iphonesimulator"'' exited with code 1 (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 798 milliseconds
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'Cindys-MacBook-Pro.local', ip: 'fe80:0:0:0:1476:5b5:6555:c047%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.6', java.version: '1.8.0_121'
Driver info: driver.version: IOSDriver
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:215)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:167)
at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$new$0(JsonWireProtocolResponse.java:53)
at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$getResponseFunction$2(JsonWireProtocolResponse.java:91)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$22(ProtocolHandshake.java:365)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:368)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:159)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:69)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
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.ios.IOSDriver.execute(IOSDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:250)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:236)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:137)
at io.appium.java_client.DefaultGenericMobileDriver.<init>(DefaultGenericMobileDriver.java:36)
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:114)
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:132)
at io.appium.java_client.ios.IOSDriver.<init>(IOSDriver.java:82)
at com.InitIOSspk.setUp(InitIOSspk.java:101)
at com.InitIOSspk.callSetUp(InitIOSspk.java:142)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:108)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:523)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:224)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:146)
at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:166)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:105)
at org.testng.TestRunner.privateRun(TestRunner.java:744)
at org.testng.TestRunner.run(TestRunner.java:602)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:380)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:375)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
at org.testng.SuiteRunner.run(SuiteRunner.java:289)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1301)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1226)
at org.testng.TestNG.runSuites(TestNG.java:1144)
at org.testng.TestNG.run(TestNG.java:1115)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:281)
at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:121)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
'Allow Notifications' alert not displayed
EXCEPTION: Unspecified exception in method 'enterUserEmail()'
java.lang.NullPointerException
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:770)
at org.openqa.selenium.support.ui.FluentWait.<init>(FluentWait.java:96)
at org.openqa.selenium.support.ui.WebDriverWait.<init>(WebDriverWait.java:71)
at org.openqa.selenium.support.ui.WebDriverWait.<init>(WebDriverWait.java:45)
at utilities.WaitUtilityIOSspk.waitForElementToBeTappable(WaitUtilityIOSspk.java:16)
at pages.NativeLoginPageIOSspk.enterUserEmail(NativeLoginPageIOSspk.java:39)
at com.InitIOSspk.callSetUp(InitIOSspk.java:153)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:108)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:523)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:224)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:146)
at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:166)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:105)
at org.testng.TestRunner.privateRun(TestRunner.java:744)
at org.testng.TestRunner.run(TestRunner.java:602)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:380)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:375)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
at org.testng.SuiteRunner.run(SuiteRunner.java:289)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1301)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1226)
at org.testng.TestNG.runSuites(TestNG.java:1144)
at org.testng.TestNG.run(TestNG.java:1115)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:281)
at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:121)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
Tests run: 17, Failures: 1, Errors: 0, Skipped: 16, Time elapsed: 5.169 sec <<< FAILURE! - in TestSuite
callSetUp(tests.VideoPlayerTestsIOSspk) Time elapsed: 4.902 sec <<< FAILURE!
java.lang.AssertionError: The user's email address was entered into the Email field; expected [true] but found [false]
Results :
Failed tests:
VideoPlayerTestsIOSspk>InitIOSspk.callSetUp:153 The user's email address was entered into the Email field; expected [true] but found [false]
Tests run: 11, Failures: 1, Errors: 0, Skipped: 10
[ERROR] There are test failures.
Please refer to /Users/Shared/Jenkins/Home/workspace/SampleAppiumProjectIOS/target/surefire-reports for the individual test results.
[JENKINS] Recording test results
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ spark_app_ios ---
[INFO] Building jar: /Users/Shared/Jenkins/Home/workspace/SampleAppiumProjectIOS/target/spark_app_ios-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ spark_app_ios ---
[INFO] Installing /Users/Shared/Jenkins/Home/workspace/SampleAppiumProjectIOS/target/spark_app_ios-0.0.1-SNAPSHOT.jar to /Users/Shared/Jenkins/.m2/repository/atom/spark_app_ios/0.0.1-SNAPSHOT/spark_app_ios-0.0.1-SNAPSHOT.jar
[INFO] Installing /Users/Shared/Jenkins/Home/workspace/SampleAppiumProjectIOS/pom.xml to /Users/Shared/Jenkins/.m2/repository/atom/spark_app_ios/0.0.1-SNAPSHOT/spark_app_ios-0.0.1-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.971 s
[INFO] Finished at: 2017-10-04T11:08:56-04:00
[INFO] Final Memory: 31M/329M
[INFO] ------------------------------------------------------------------------
[JENKINS] Archiving /Users/Shared/Jenkins/Home/workspace/SampleAppiumProjectIOS/pom.xml to atom/spark_app_ios/0.0.1-SNAPSHOT/spark_app_ios-0.0.1-SNAPSHOT.pom
[JENKINS] Archiving /Users/Shared/Jenkins/Home/workspace/SampleAppiumProjectIOS/target/spark_app_ios-0.0.1-SNAPSHOT.jar to atom/spark_app_ios/0.0.1-SNAPSHOT/spark_app_ios-0.0.1-SNAPSHOT.jar
/Users/Shared/Jenkins/Home/workspace/SampleAppiumProjectIOS/pom.xml is not inside /Users/Shared/Jenkins/Home/workspace/SampleAppiumProjectIOS/Users/Shared/Jenkins/Home/workspace/SampleAppiumProjectIOS/; will archive in a separate pass
/Users/Shared/Jenkins/Home/workspace/SampleAppiumProjectIOS/target/spark_app_ios-0.0.1-SNAPSHOT.jar is not inside /Users/Shared/Jenkins/Home/workspace/SampleAppiumProjectIOS/Users/Shared/Jenkins/Home/workspace/SampleAppiumProjectIOS/; will archive in a separate pass
channel stopped
Finished: UNSTABLE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment