Endpoint setup failed error (will not compile)


#1

Hello:
We are currently on 1.8.0. We are randomly getting this “Endpoint setup failed” on all endpoints defined within a solution. It doesn’t matter-- it could be a local edge endpoint or an endpoint defined on a selenium grid. If we reboot and keep trying it will eventually work. I have figured out a pattern however. So I currently have 2 tests in the solution. If I choose to “run all tests” on either local or remote endpoint, it works. If I choose “run test” within the test itself, it will run. If I choose an individual test and hit “run current test file”-- when it is currently in this state, it will fail.

Installing Dependencies…
[INFO] Scanning for projects…

[INFO]
[INFO] ------------------------------------------------------------------------

[INFO] Building xfracas 1-0
[INFO] ------------------------------------------------------------------------

[INFO]

[INFO] — maven-resources-plugin:3.0.2:resources (default-resources) @ xfracas —

[INFO] Using ‘UTF-8’ encoding to copy filtered resources.

[INFO] skip non existing resourceDirectory C:\Users\fcarpio\Documents\Ranorex\Webtestit\xfracas\src\main\resources

[INFO]
[INFO] — maven-compiler-plugin:3.7.0:compile (default-compile) @ xfracas —

[INFO] No sources to compile
[INFO]
[INFO] — maven-resources-plugin:3.0.2:testResources (default-testResources) @ xfracas —

[INFO] Using ‘UTF-8’ encoding to copy filtered resources.

[INFO] Copying 11 resources

[INFO]
[INFO] — maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ xfracas —

[INFO] Changes detected - recompiling the module!

[INFO] Compiling 15 source files to C:\Users\fcarpio\Documents\Ranorex\Webtestit\xfracas\target\test-classes

[INFO]
[INFO] — maven-surefire-plugin:2.21.0:test (default-test) @ xfracas —

[INFO] Tests are skipped.
[INFO]
[INFO] >>> maven-dependency-plugin:2.8:go-offline (default-cli) > :resolve-plugins @ xfracas >>>
[INFO]
[INFO] — maven-dependency-plugin:2.8:resolve-plugins (resolve-plugins) @ xfracas —

[INFO] Plugin Resolved: maven-install-plugin-2.4.jar

[INFO] Plugin Dependency Resolved: maven-plugin-api-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-project-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-model-2.0.6.jar

[INFO] Plugin Dependency Resolved: maven-artifact-manager-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-artifact-2.0.6.jar
[INFO] Plugin Dependency Resolved: plexus-utils-3.0.5.jar
[INFO] Plugin Dependency Resolved: plexus-digest-1.0.jar
[INFO] Plugin Resolved: maven-deploy-plugin-2.7.jar

[INFO] Plugin Dependency Resolved: maven-plugin-api-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-project-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-model-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-artifact-2.0.6.jar
[INFO] Plugin Dependency Resolved: plexus-utils-1.5.6.jar
[INFO] Plugin Resolved: maven-jar-plugin-2.4.jar

[INFO] Plugin Dependency Resolved: maven-plugin-api-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-project-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-model-2.0.6.jar
[INFO] Plugin Dependency Resolved: maven-artifact-2.0.6.jar

[INFO] Plugin Dependency Resolved: maven-archiver-2.5.jar
[INFO] Plugin Dependency Resolved: plexus-archiver-2.1.jar
[INFO] Plugin Dependency Resolved: commons-lang-2.1.jar
[INFO] Plugin Dependency Resolved: plexus-utils-3.0.jar
[INFO] Plugin Resolved: maven-compiler-plugin-3.7.0.jar

[INFO] Plugin Dependency Resolved: maven-plugin-api-3.0.jar
[INFO] Plugin Dependency Resolved: maven-artifact-3.0.jar
[INFO] Plugin Dependency Resolved: maven-core-3.0.jar

[INFO] Plugin Dependency Resolved: maven-shared-utils-3.1.0.jar
[INFO] Plugin Dependency Resolved: maven-shared-incremental-1.1.jar
[INFO] Plugin Dependency Resolved: plexus-java-0.9.2.jar
[INFO] Plugin Dependency Resolved: plexus-compiler-api-2.8.2.jar
[INFO] Plugin Dependency Resolved: plexus-compiler-manager-2.8.2.jar
[INFO] Plugin Dependency Resolved: plexus-compiler-javac-2.8.2.jar
[INFO] Plugin Resolved: maven-site-plugin-3.3.jar

[INFO] Plugin Dependency Resolved: maven-reporting-exec-1.1.jar
[INFO] Plugin Dependency Resolved: maven-core-3.0.jar
[INFO] Plugin Dependency Resolved: maven-model-3.0.jar
[INFO] Plugin Dependency Resolved: maven-plugin-api-3.0.jar
[INFO] Plugin Dependency Resolved: maven-settings-3.0.jar
[INFO] Plugin Dependency Resolved: maven-settings-builder-3.0.jar
[INFO] Plugin Dependency Resolved: maven-archiver-2.4.2.jar
[INFO] Plugin Dependency Resolved: doxia-sink-api-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-logging-api-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-core-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-module-xhtml-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-module-apt-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-module-xdoc-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-module-fml-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-module-markdown-1.4.jar
[INFO] Plugin Dependency Resolved: servlet-api-2.5.jar
[INFO] Plugin Dependency Resolved: doxia-decoration-model-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-site-renderer-1.4.jar
[INFO] Plugin Dependency Resolved: doxia-integration-tools-1.5.jar
[INFO] Plugin Dependency Resolved: wagon-provider-api-1.0.jar
[INFO] Plugin Dependency Resolved: plexus-archiver-1.0.jar
[INFO] Plugin Dependency Resolved: plexus-i18n-1.0-beta-7.jar
[INFO] Plugin Dependency Resolved: velocity-1.5.jar
[INFO] Plugin Dependency Resolved: plexus-velocity-1.1.8.jar
[INFO] Plugin Dependency Resolved: plexus-utils-1.5.10.jar
[INFO] Plugin Dependency Resolved: jetty-6.1.25.jar
[INFO] Plugin Dependency Resolved: jetty-util-6.1.25.jar
[INFO] Plugin Dependency Resolved: commons-lang-2.5.jar
[INFO] Plugin Dependency Resolved: commons-io-1.4.jar
[INFO] Plugin Resolved: maven-clean-plugin-2.5.jar

[INFO] Plugin Dependency Resolved: maven-plugin-api-2.0.6.jar
[INFO] Plugin Dependency Resolved: plexus-utils-3.0.jar
[INFO] Plugin Resolved: maven-resources-plugin-3.0.2.jar

[INFO] Plugin Dependency Resolved: maven-plugin-api-3.0.jar
[INFO] Plugin Dependency Resolved: maven-core-3.0.jar

[INFO] Plugin Dependency Resolved: maven-model-3.0.jar
[INFO] Plugin Dependency Resolved: plexus-utils-3.0.24.jar
[INFO] Plugin Dependency Resolved: maven-filtering-3.1.1.jar
[INFO] Plugin Dependency Resolved: commons-io-2.5.jar
[INFO] Plugin Dependency Resolved: plexus-interpolation-1.24.jar
[INFO] Plugin Resolved: maven-surefire-plugin-2.21.0.jar

[INFO] Plugin Dependency Resolved: maven-surefire-common-2.21.0.jar

[INFO]

[INFO] <<< maven-dependency-plugin:2.8:go-offline (default-cli) < :resolve-plugins @ xfracas <<<
[INFO]
[INFO]
[INFO] — maven-dependency-plugin:2.8:go-offline (default-cli) @ xfracas —

[INFO] Resolved: testng-6.14.2.jar
[INFO] Resolved: jcommander-1.72.jar
[INFO] Resolved: bsh-2.0b6.jar
[INFO] Resolved: webdriver-factory-4.3.jar
[INFO] Resolved: java-hamcrest-2.0.0.0.jar

[INFO] Resolved: selenium-java-3.11.0.jar
[INFO] Resolved: selenium-api-3.11.0.jar
[INFO] Resolved: selenium-chrome-driver-3.11.0.jar
[INFO] Resolved: selenium-edge-driver-3.11.0.jar
[INFO] Resolved: selenium-firefox-driver-3.11.0.jar
[INFO] Resolved: selenium-ie-driver-3.11.0.jar
[INFO] Resolved: selenium-opera-driver-3.11.0.jar
[INFO] Resolved: selenium-remote-driver-3.11.0.jar
[INFO] Resolved: selenium-safari-driver-3.11.0.jar
[INFO] Resolved: selenium-support-3.11.0.jar
[INFO] Resolved: byte-buddy-1.7.9.jar
[INFO] Resolved: commons-exec-1.3.jar
[INFO] Resolved: commons-codec-1.10.jar
[INFO] Resolved: commons-logging-1.2.jar
[INFO] Resolved: gson-2.8.2.jar

[INFO] Resolved: guava-23.6-jre.jar
[INFO] Resolved: jsr305-1.3.9.jar
[INFO] Resolved: checker-compat-qual-2.0.0.jar
[INFO] Resolved: error_prone_annotations-2.1.3.jar
[INFO] Resolved: j2objc-annotations-1.1.jar
[INFO] Resolved: animal-sniffer-annotations-1.14.jar
[INFO] Resolved: httpclient-4.5.3.jar
[INFO] Resolved: httpcore-4.4.6.jar
[INFO] Resolved: okhttp-3.9.1.jar

[INFO] Resolved: okio-1.13.0.jar
[INFO] Resolved: commons-io-2.5.jar

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 10.822 s

[INFO] Finished at: 2019-11-07T14:13:10-07:00

[INFO] Final Memory: 22M/287M
[INFO] ------------------------------------------------------------------------

Installed Dependencies.
Cleaning Project…
Cleaned Project.
Setting up local WebDrivers …
Starting test run…
[INFO] Scanning for projects…

[INFO]

[INFO] ------------------------------------------------------------------------
[INFO] Building xfracas 1-0
[INFO] ------------------------------------------------------------------------

[INFO]

[INFO] — maven-resources-plugin:3.0.2:resources (default-resources) @ xfracas —

[INFO] Using ‘UTF-8’ encoding to copy filtered resources.

[INFO] skip non existing resourceDirectory C:\Users\fcarpio\Documents\Ranorex\Webtestit\xfracas\src\main\resources

[INFO]
[INFO] — maven-compiler-plugin:3.7.0:compile (default-compile) @ xfracas —

[INFO] No sources to compile

[INFO]
[INFO] — maven-resources-plugin:3.0.2:testResources (default-testResources) @ xfracas —

[INFO] Using ‘UTF-8’ encoding to copy filtered resources.

[INFO] Copying 11 resources

[INFO]
[INFO] — maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ xfracas —

[INFO] Changes detected - recompiling the module!

[INFO] Compiling 15 source files to C:\Users\fcarpio\Documents\Ranorex\Webtestit\xfracas\target\test-classes

[INFO]
[INFO] — maven-surefire-plugin:2.21.0:test (default-test) @ xfracas —

[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------

[INFO]
[INFO] Results:
[INFO]

[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.250 s

[INFO] Finished at: 2019-11-07T14:13:37-07:00

[INFO] Final Memory: 19M/362M
[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test (default-test) on project xfracas: No tests were executed! (Set -DfailIfNoTests=false to ignore this 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


#2

hello @micheleaz!
Yeah, this one is interesting. There might be some issue with the actual project setup that causes some maven related issue. But it would be super useful if you could provide us with a sample project so that we can replicate this and have a closer look. So if you could zip us a project that fails in the same way and send it to [email protected] it would be easier to debug this and see what is the reason of test run failing :slight_smile:
In the meantime I will try to replicate this, and let you know if I have something.
Kind regards,
Sasa


#3

Hi. You should have it. Let me know if you have questions.
Thanks!


#4

Hi @micheleaz!
Yes, I got the sample. The problem is that your file name (The test file name ) and the class name inside the file are not the same. In Java, file name should always reflect the public class defined within that file. Otherwise, you will get a compiler error. So renaming the file and the class to a same name will fix your issue.
Now, if you rename the test file in Ranorex Webtestit, the class name inside it is automatically renamed as-well. In some edge case, the renaming process might gone wrong, or you renamed the classname from within the test file first… Anyhow, we already prepared some improvements regarding this for the next release.
Kind regards!


closed #5