Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
osamakhalaf opened this issue Jan 12, 2012 · 1 comment
Open

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

osamakhalaf opened this issue Jan 12, 2012 · 1 comment

Comments

@osamakhalaf
Copy link

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)

@yurodivuie
Copy link
Contributor

Hmm... you may want to undo the change you made.

Right now, "/webtest-quickstart" is set as the "WEBDRIVER_CONTEXT" in the pom, so it will work if it is run from the command line. If you run it in the IDE, then you'll need to specify that as a VM property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants