Anton Karpenko
2018-04-15T16:53:08Z

java fail

| mvn clean package -e
| [INFO] Error stacktraces are turned on.
| [INFO] Scanning for projects...
| [WARNING]
| [WARNING] Some problems were encountered while building the effective model for OtusExamples:otusExamples:jar:1.0-SNAPSHOT
| [WARNING] 'dependencies.dependency.version' for org.testng:testng:jar is either LATEST or RELEASE (both of them are being deprecated) @ line 20, column 22
| [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 39, column 21
| [WARNING]
| [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
| [WARNING]
| [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
| [WARNING]
| [INFO]
| [INFO] ------------------------------------------------------------------------
| [INFO] Building otusExamples 1.0-SNAPSHOT
| [INFO] ------------------------------------------------------------------------
| [INFO]
| [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ otusExamples ---
| [INFO] Deleting /Users/anton/IdeaProjects/otus/automation/otusExamples/target
| [INFO]
| [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ otusExamples ---
| [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
| [INFO] Copying 0 resource
| [INFO]
| [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ otusExamples ---
| [INFO] Nothing to compile - all classes are up to date
| [INFO]
| [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ otusExamples ---
| [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.1:testCompile (default-testCompile) @ otusExamples ---
| [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] Compiling 5 source files to /Users/anton/IdeaProjects/otus/automation/otusExamples/target/test-classes
| [INFO]
| [INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ otusExamples ---
| [INFO] Surefire report directory: /Users/anton/IdeaProjects/otus/automation/otusExamples/target/surefire-reports
| Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-testng/2.19.1/surefire-testng-2.19.1.pom
| Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-testng/2.19.1/surefire-testng-2.19.1.pom (2.3 kB at 2.9 kB/s)
| Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-providers/2.19.1/surefire-providers-2.19.1.pom
| Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-providers/2.19.1/surefire-providers-2.19.1.pom (2.6 kB at 28 kB/s)
| Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/common-java5/2.19.1/common-java5-2.19.1.pom
| Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/common-java5/2.19.1/common-java5-2.19.1.pom (2.7 kB at 33 kB/s)
| Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-testng-utils/2.19.1/surefire-testng-utils-2.19.1.pom
| Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-testng-utils/2.19.1/surefire-testng-utils-2.19.1.pom (3.1 kB at 31 kB/s)
| Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-grouper/2.19.1/surefire-grouper-2.19.1.pom
| Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-grouper/2.19.1/surefire-grouper-2.19.1.pom (2.6 kB at 28 kB/s)
| Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-grouper/2.19.1/surefire-grouper-2.19.1.jar
| Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-testng/2.19.1/surefire-testng-2.19.1.jar
| Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/common-java5/2.19.1/common-java5-2.19.1.jar
| Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-testng-utils/2.19.1/surefire-testng-utils-2.19.1.jar
| Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/common-java5/2.19.1/common-java5-2.19.1.jar (44 kB at 229 kB/s)
| Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-testng-utils/2.19.1/surefire-testng-utils-2.19.1.jar (27 kB at 98 kB/s)
| Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-grouper/2.19.1/surefire-grouper-2.19.1.jar (38 kB at 139 kB/s)
| Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-testng/2.19.1/surefire-testng-2.19.1.jar (42 kB at 120 kB/s)
|
| -------------------------------------------------------
| T E S T S
| -------------------------------------------------------
| Running TestSuite
| Configuring TestNG with: TestNG60Configurator
| Test started
| Starting ChromeDriver 2.36.540469 (1881fd7f8641508feb5166b7cae561d87723cfa8) on port 43643
| Only local connections are allowed.
| апр. 15, 2018 7:49:27 ПП org.openqa.selenium.remote.ProtocolHandshake createSession
| INFO: Detected dialect: OSS
| Test success
| Test success
| Test success
| Test success
| Starting ChromeDriver 2.36.540469 (1881fd7f8641508feb5166b7cae561d87723cfa8) on port 17656
| Only local connections are allowed.
| апр. 15, 2018 7:49:30 ПП org.openqa.selenium.remote.ProtocolHandshake createSession
| INFO: Detected dialect: OSS
| Test success
| Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 18.053 sec <<< FAILURE! - in TestSuite
| useWaitTest(tests.lesson04.Lesson04Test) Time elapsed: 10.951 sec <<< FAILURE!
| org.openqa.selenium.TimeoutException:
| Expected condition failed: waiting for text ('The following text has been loaded from another page on this site. It has been loaded in an asynchronous fashion so that we can work through the AJAX section of this chapter') to be the value of element [[ChromeDriver: chrome on MAC (ec0554276bba4c10a61051af8b6a83dc)] -> css selector: div[id='ajaxdiv'] > p] (tried for 10 second(s) with 500 milliseconds interval)
| Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:26:55.152Z'
| System info: host: 'Air-Alexander-3.Dlink', ip: 'fe80:0:0:0:183e:5aa3:95b7:e995%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12', java.version: '9.0.4'
| Driver info: org.openqa.selenium.chrome.ChromeDriver
| Capabilities {acceptInsecureCerts: false, acceptSslCerts: false, applicationCacheEnabled: false, browserConnectionEnabled: false, browserName: chrome, chrome: {chromedriverVersion: 2.36.540469 (1881fd7f864150..., userDataDir: /var/folders/k_/dpt4km5d7n1...}, cssSelectorsEnabled: true, databaseEnabled: false, handlesAlerts: true, hasTouchScreen: false, javascriptEnabled: true, locationContextEnabled: true, mobileEmulationEnabled: false, nativeEvents: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: MAC, platformName: MAC, rotatable: false, setWindowRect: true, takesHeapSnapshot: true, takesScreenshot: true, unexpectedAlertBehaviour: , unhandledPromptBehavior: , version: 65.0.3325.181, webStorageEnabled: true}
| Session ID: ec0554276bba4c10a61051af8b6a83dc
| at tests.lesson04.Lesson04Test.useWaitTest(Lesson04Test.java:36)
|
|
| Results :
|
| Failed tests:
| Lesson04Test.useWaitTest:36 » Timeout Expected condition failed: waiting for t...
|
| Tests run: 6, Failures: 1, Errors: 0, Skipped: 0
|
| [INFO] ------------------------------------------------------------------------
| [INFO] BUILD FAILURE
| [INFO] ------------------------------------------------------------------------
| [INFO] Total time: 27.298 s
| [INFO] Finished at: 2018-04-15T19:49:43+03:00
| [INFO] Final Memory: 18M/61M
| [INFO] ------------------------------------------------------------------------
| [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project otusExamples: There are test failures.
| [ERROR]
| [ERROR] Please refer to /Users/anton/IdeaProjects/otus/automation/otusExamples/target/surefire-reports for the individual test results.
| [ERROR] -> [Help 1]
| org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project otusExamples: There are test failures.
|
| Please refer to /Users/anton/IdeaProjects/otus/automation/otusExamples/target/surefire-reports for the individual test results.
| at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
| at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
| at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
| at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
| at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
| at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
| at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
| at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
| at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
| at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
| at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
| at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
| at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
| at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
| at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
| at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
| at java.lang.reflect.Method.invoke (Method.java:564)
| at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
| at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
| at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
| at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
| Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.
|
| Please refer to /Users/anton/IdeaProjects/otus/automation/otusExamples/target/surefire-reports for the individual test results.
| at org.apache.maven.plugin.surefire.SurefireHelper.reportExecution (SurefireHelper.java:91)
| at org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary (SurefirePlugin.java:320)
| at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked (AbstractSurefireMojo.java:892)
| at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute (AbstractSurefireMojo.java:755)
| at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
| at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
| at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
| at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
| at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
| at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
| at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
| at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
| at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
| at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
| at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
| at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
| at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
| at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
| at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
| at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
| at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
| at java.lang.reflect.Method.invoke (Method.java:564)
| at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
| at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
| at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
| at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
| [ERROR]
| [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