Hi Steve,

On 21/02/2012 21:00, Steve Barnette wrote:
Build  Virtual Builder
        Python version - System
        Nature - Shell
        Command - /usr/bin/python2.7 selePy2.py

Don't specify the python path like this.
Use $PYTHON_EXE selePy2.py instead.

That said, what do the contents of selePy2.py look like?

How did you install the selenium python package?


   File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/
firefox/firefox_binary.py", line 81, in _wait_until_connectable
     self._get_firefox_output())
selenium.common.exceptions.WebDriverException: Message: 'The browser
appears to have exited before we could connect. The output was: Error:
no display specified\n'

This seems pretty clear. I don't know how you specify a display to Selenium, but you need to.

Switched to Python and removed path to python, just the source
filename.

Still wrong, see above...
Reading the docs wouldn't be such a terrible idea you know ;-)

Started by user anonymous
Building in workspace /home/steveb/QA-project/Python
[Python] $ /var/lib/jenkins/shiningpanda/jobs/86790f80/virtualenvs/
d41d8cd9/bin/python /tmp/shiningpanda3316563476659644939.py
Traceback (most recent call last):
   File "/tmp/shiningpanda3316563476659644939.py", line 1, in<module>
     selePy2.py
NameError: name 'selePy2' is not defined

Yeah, when you select "python" it doesn't run a script, the contents you type in are executed as python.

========================================================================
Switched the build step  to Python Builder

I put in full path to python and source file.

Still wrong, as indicated by the docs.

Only other error that sometimes pops up in trying all the various
Python
build variation is: "invalid interpter" and that appear to be a path
issue.

I doubt that ;-)

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
            - http://www.simplistix.co.uk

Reply via email to