SST tests are failing-First time user
Hi,
Followed the Readme and installed sst, but all my tests are failing
Using
Python 2.7.2+
Ubuntu 11.1
Console trace:
./sst-run --test
-------
starting SST...
-------
waiting for django to come up...
django found. continuing...
date time: 2012-02-29 18:10
test directory: 'selftests'
report format: 'console'
browser type: 'Firefox'
javascript disabled: False
browswermob proxy launcher: None
shared directory: None
screenshots on error: False
failfast: False
debug: False
headless xserver: False
Specified directory '/usr/local/
raghavendra@
raghavendra@
raghavendra@
raghavendra@
-------
starting SST...
date time: 2012-02-29 18:10
test directory: 'examples'
report format: 'console'
browser type: 'Firefox'
javascript disabled: False
browswermob proxy launcher: None
shared directory: None
screenshots on error: False
failfast: False
debug: False
headless xserver: False
3 test cases loaded
-------
test_seleniumhq (sst.runtests.
Starting Firefox
Going to... http://
Waiting for get_element
FAIL
Stopping browser
test_googlefinance (sst.runtests.
Starting Firefox
Setting base url to: 'http://
Going to... http://
Waiting for get_element
FAIL
Stopping browser
test_yahoofinance (sst.runtests.
Starting Firefox
Going to... http://
Waiting for get_element
FAIL
Stopping browser
=======
FAIL: test_seleniumhq (sst.runtests.
-------
Traceback (most recent call last):
File "/usr/local/
exec self.code in context
File "/home/
go_to('http://
File "/usr/local/
_waitforbody()
File "/usr/local/
wait_
File "/usr/local/
_raise(error)
File "/usr/local/
raise AssertionError(msg)
AssertionError: Timed out waiting for: get_element
Error during wait: Could not identify elements: 0 elements found
=======
FAIL: test_googlefinance (sst.runtests.
-------
Traceback (most recent call last):
File "/usr/local/
exec self.code in context
File "/home/
go_to('/')
File "/usr/local/
_waitforbody()
File "/usr/local/
wait_
File "/usr/local/
_raise(error)
File "/usr/local/
raise AssertionError(msg)
AssertionError: Timed out waiting for: get_element
Error during wait: Could not identify elements: 0 elements found
=======
FAIL: test_yahoofinance (sst.runtests.
-------
Traceback (most recent call last):
File "/usr/local/
exec self.code in context
File "/home/
go_to('http://
File "/usr/local/
_waitforbody()
File "/usr/local/
wait_
File "/usr/local/
_raise(error)
File "/usr/local/
raise AssertionError(msg)
AssertionError: Timed out waiting for: get_element
Error during wait: Could not identify elements: 0 elements found
-------
Ran 3 tests in 40.511s
FAILED (failures=3)
-------
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- 2012-02-29
- Last reply:
- 2012-02-29
Corey Goldberg (coreygoldberg) said : | #1 |
Hi.
the self-tests and examples need to be run from the package source, not the installed version. I think you are having a conflict where you have SST "installed" but are also trying to run selftests.
try this:
1) uninstall sst (pip uninstall sst) - this is important
2) download sst source package from: http://
3) unarchive, and run self-tests or examples from within the directory it creates
to install and use sst, you can then do:
pip install -U sst.
sorry if the docs were not clear.
regards,
-Corey
Can you help with this problem?
Provide an answer of your own, or ask Raghavendra for more information if necessary.