Running functional test error
- Dominant language
- Java
- Stars
- 48
- Forks
- 36
- Avg merge
- 7h 37m
- Merged PRs (30d)
- 8
Description
@abcfy2 commented on [Fri Jul 12 2019](https://github.com/gradle-guides/building-java-web-applications/issues/28)
I run the command from here: https://guides.gradle.org/building-java-web-applications/#run_the_functional_test
```
# ./gradlew test
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/4.10.3/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing
> Task :prepareInplaceWebAppFolder UP-TO-DATE
> Task :createInplaceWebAppFolder UP-TO-DATE
> Task :compileJava UP-TO-DATE
> Task :processResources NO-SOURCE
> Task :classes UP-TO-DATE
> Task :prepareInplaceWebAppClasses UP-TO-DATE
> Task :prepareInplaceWebApp UP-TO-DATE
> Task :compileTestJava
> Task :processTestResources NO-SOURCE
> Task :testClasses
00:52:58 INFO Jetty 9.2.24.v20180105 started and listening on port 8080
00:52:58 INFO webdemo runs at:
00:52:58 INFO http://localhost:8080/webdemo
> Task :appBeforeIntegrationTest
> Task :test
org.gradle.demo.HelloServletFunctionalTest > sayHello FAILED
java.lang.NoSuchMethodError at HelloServletFunctionalTest.java:24
4 tests completed, 1 failed
> Task :test FAILED
> Task :appAfterIntegrationTest
Server stopped.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///C:/Users/fengyu/projects/webdemo/build/reports/tests/test/index.html
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 41s
7 actionable tasks: 4 executed, 3 up-to-date
```
`NoSuchMethodError`, seems something wrong with Selenium, but I don't know how to solve. Please help
---
@abcfy2 commented on [Fri Jul 12 2019](https://github.com/gradle-guides/building-java-web-applications/issues/28#issuecomment-510960985)
Also this project build with the same error.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the functional-test instructions in the linked Gradle guide and run ./gradlew test. Inspect HelloServletFunctionalTest.java at line 24, the reported NoSuchMethodError, and the generated build/reports/tests/test/index.html; done means the test task completes with all four tests passing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100