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

SIDErunner on Ubuntu 16.04.1 #2

Open
peter-lyons-kehl opened this issue Sep 18, 2016 · 1 comment
Open

SIDErunner on Ubuntu 16.04.1 #2

peter-lyons-kehl opened this issue Sep 18, 2016 · 1 comment

Comments

@peter-lyons-kehl
Copy link

Hi Herb. Thank you for SIDErunner.

However, it doesn't run well on Ubuntu 16.04.1. Installing (based on README.md) involved several workarounds:

sudo apt-get fails to install pyvirtualdisplay and selenium:
E: Unable to locate package pyvirtualdisplay
E: Unable to locate package selenium

To install the above, I used sudo pip instead.

Then apt-get install firefox reported that I had it installed already.

I've created a simple Python script, and run it with an XML test suite, as per README.md. That told me to sudo apt-get install xephyr, which failed, asking to run sudo pip install xephyr. That failed again... Instead, I've tried sudo apt-get install xserver-xephyr, which passed OK.

However, do you think those packages are enough? Or does SIDErunner need any more dependancies?

When running the use Python script again (see below), it opened a new black window titled 'Xephyr on:1001.0 (ctrl+shift grabs mouse and keyboard).' However, back in the terminal, Python reported:

driver = webdriver.FireFox()
AttributeError: 'module' object has no attribute 'FireFox'

My script was

#!/usr/bin/python

from selenium import webdriver
from siderunner import SeleniumTestSuite
from pyvirtualdisplay import Display

display = Display(visible=1, size=(1920,1024))
display.start()

url = 'http://localhost'
suite = 'basic_tests'

pathname = '/home/pkehl/%s' % suite
driver = webdriver.FireFox()
driver.implicitly_wait(10)
try:

    tests = SeleniumTestSuite(pathname)
    try:
        tests.run(driver, url)
    except:
        driver.save_screenshot('%s-suite_error_screen.png' % suite)
finally:
    driver.quit()
    display.stop()

Please advise.

@hlainchb
Copy link
Owner

Hi Peter,

Thank you for your feedback. My apologies for the errors in the existing
README. I'm working on this now to updated it and fix the obvious errors.

When I first wrote this we were using it to drive FireFox, but we ran into
some issues with a FireFox upgrade that a few months ago that we were
unable to resolve so we switched to Chrome which we now use constantly and
has been working fine. Siderunner has been used with FireFox, Chrome and
PhantomJS but the setup is a bit tricky so I'll see if I will try to
document that first and I'll see if the FireFox issues are resolved. Also,
we're using Ubuntu 14.04 so I will do that first and then I'll give 16.04 a
try.

Cheers,
Herb

On Sun, Sep 18, 2016 at 3:30 AM, Peter Kehl [email protected]
wrote:

Hi Herb. Thank you for SIDErunner.

However, it doesn't run well on Ubuntu 16.04.1. Installing (based on
README.md) involved several workarounds:

sudo apt-get fails to install pyvirtualdisplay and selenium:
E: Unable to locate package pyvirtualdisplay
E: Unable to locate package selenium

To install the above, I used sudo pip instead.

Then apt-get install firefox reported that I had it installed already.

I've created a simple Python script, and run it with an XML test suite, as
per README.md. That told me to sudo apt-get install xephyr, which failed,
asking to run sudo pip install xephyr. That failed again... Instead, I've
tried sudo apt-get install xserver-xephyr, which passed OK.

However, do you think those packages are enough? Or does SIDErunner need
any more dependancies?

When running the use Python script again (see below), it opened a new
black window titled 'Xephyr on:1001.0 (ctrl+shift grabs mouse and
keyboard).' However, back in the terminal, Python reported:

driver = webdriver.FireFox()
AttributeError: 'module' object has no attribute 'FireFox'

My script was

#!/usr/bin/python

from selenium import webdriver
from siderunner import SeleniumTestSuite
from pyvirtualdisplay import Display

display = Display(visible=1, size=(1920,1024))
display.start()

url = 'http://localhost'
suite = 'basic_tests'

pathname = '/home/pkehl/%s' % suite
driver = webdriver.FireFox()
driver.implicitly_wait(10)
try:

tests = SeleniumTestSuite(pathname)
try:
    tests.run(driver, url)
except:
    driver.save_screenshot('%s-suite_error_screen.png' % suite)

finally:
driver.quit()
display.stop()

Please advise.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#2, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJkP1CzfkKcKUznQTUW5fSpZQfOZBbbks5qrRLUgaJpZM4J_3cB
.

Herb Lainchbury, Dynamic Solutions
250.704.6154
http://www.dynamic-solutions.com

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