Error when trying to run sst-remote

Asked by Adam Wardecki on 2014-03-09

When I'm trying to run a test through selenium RC, I'm gettting this error:

(env)root@hydra-VirtualBox:/home/hydra/web/hydra_www2/tests/selenium# /home/hydra/env/bin/sst-remote -d sst -b Firefox -u http://127.0.0.1:4444/wd/hub
Traceback (most recent call last):
  File "/home/hydra/env/bin/sst-remote", line 9, in <module>
    load_entry_point('sst==0.2.4', 'console_scripts', 'sst-remote')()
  File "/home/hydra/env/local/lib/python2.7/site-packages/sst/scripts/remote.py", line 53, in main
    count_only=cmd_opts.count_only,
AttributeError: Values instance has no attribute 'count_only'

I also commented out the count_only line in remote.py. I got this error instead:

(env)root@hydra-VirtualBox:/home/hydra/web/hydra_www2/tests/selenium# /home/hydra/env/bin/sst-remote -d sst -b Firefox -u http://127.0.0.1:4444/wd/hub
Tests running...
    DEBUG:SST:Starting browser (attempt: 1)
    DEBUG:SST:Starting browser (attempt: 2)
    DEBUG:SST:Starting browser (attempt: 3)
    DEBUG:SST:Starting browser (attempt: 4)
sst.ssttest ... ERROR (0.002 secs)
======================================================================
ERROR: sst.ssttest
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/hydra/env/local/lib/python2.7/site-packages/sst/cases.py", line 188, in setUp
    super(SSTScriptTestCase, self).setUp()
  File "/home/hydra/env/local/lib/python2.7/site-packages/sst/cases.py", line 75, in setUp
    self.start_browser()
  File "/home/hydra/env/local/lib/python2.7/site-packages/sst/cases.py", line 107, in start_browser
    logger.debug('Browser started: %s' % (self.browser.name))
AttributeError: 'NoneType' object has no attribute 'name'

Ran 1 test in 0.002s
FAILED (failures=1)

I have the selenium server running and the test runs with sst-run. What might be the problem?

Question information

Language:
English Edit question
Status:
Open
For:
selenium-simple-test Edit question
Assignee:
No assignee Edit question
Last query:
2014-03-09
Last reply:
mr17 (marsel) said : #1

Hi Adam,
I had same problem , but looks like its already resolved just not in sst-2.4 yet . Worked fine for me after I made the changes from this link.
https://code.launchpad.net/~fs-8/selenium-simple-test/sst-remote-fixes/+merge/168557

thanks,
marsel

Can you help with this problem?

Provide an answer of your own, or ask Adam Wardecki for more information if necessary.

To post a message you must log in.