sst-remote doesn't handle count_only

Bug #1289990 reported by Vincent Ladeuil on 2014-03-09
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
selenium-simple-test
Undecided
Leo Arias

Bug Description

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?

Related branches

Leo Arias (elopio) on 2014-11-20
Changed in selenium-simple-test:
status: New → Triaged
Leo Arias (elopio) wrote :

The count_only error it's because the attribute name changed, but this was not updated properly.
I'm not having the other problem.

Changed in selenium-simple-test:
assignee: nobody → Leo Arias (elopio)
status: Triaged → In Progress
Leo Arias (elopio) wrote :

Vila, if you are still having the second issue, please file a separate bug for it.
Here is a solution for the count issue, so I'm going to take care of that one.
https://code.launchpad.net/~kamyanskiy/selenium-simple-test/selenium-grid-on-jenkinds/+merge/241935

summary: - sst-remote doesn't handle count_only nor self.browser
+ sst-remote doesn't handle count_only
Vincent Ladeuil (vila) wrote :

I never had these issues, I reported them from https://answers.launchpad.net/selenium-simple-test/+question/245193

I don't remember the details, I probably just turned the question into a bug.

I'll comment on the MPs.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions