Skip to content

Local test SeleniumIT fails to get the webpage to load. #2

Description

@osamakhalaf

Issue:

Local test SeleniumIT fails to get the webpage to load.

To repro:

  1. Launch the application on your local environment (mvn package cargo:run)
  2. Run the test SeleniumIT
  3. View the results of the test

Note: I made some changes to the test and changed the index from “driver.get(p.("/"));
to “driver.get(p.
("/webtest-quickstart"));
and that solved the problem as the http://webtest_hostname:8080/ does not load the hello world page; however http://webtest_hostname:8080/webtest-quickstart does.

Error:

Testcase: requiresSauceConnect2: FAILED
null
junit.framework.AssertionFailedError
at com.dynacrongroup.sample.local.SeleniumIT.requiresSauceConnect(SeleniumIT.java:55)
at com.dynacrongroup.sample.local.SeleniumIT.requiresSauceConnect(SeleniumIT.java:55)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

Testcase: requiresSauceConnect1: FAILED
null
junit.framework.AssertionFailedError
at com.dynacrongroup.sample.local.SeleniumIT.requiresSauceConnect(SeleniumIT.java:55)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions