can you run it from the command line on the slave?  I usually do that
to troubleshoot config issues like this.

On Feb 21, 3:00 pm, Steve Barnette <stevebarne...@kossresource.com>
wrote:
> Here's the config's and error messages I get when testing.
>
> FYI: The python source is the selenium's example from thier doc.
>
> In first two cases appears source code is found, but the selenium
> isn't.
> Selenium is installed and from command line any account can run the
> program,
> only except is under the Jenkins account. I can't re-install selenium
> under
> Jenkins because it is passworded.
>
> Errors below were from build setup
> Advanced Project Options
>         Use custom workspace - /home/steveb/QA-project/Python
>  This was done so Jenkins could find the source since not using any at
>  this time.
>
> Build  Virtual Builder
>         Python version - System
>         Nature - Shell
>         Command - /usr/bin/python2.7 selePy2.py
>         Advanced - System site packages checked
>
> Error
>
> Started by user anonymous
> Building in workspace /home/steveb/QA-project/Python
> [Python] $ /bin/bash -xe /tmp/shiningpanda602526163731452384.sh
> + /usr/bin/python2.7 selePy2.py
> Traceback (most recent call last):
>   File "selePy2.py", line 6, in <module>
>     browser = webdriver.Firefox() # Get local session of firefox
>   File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/
> firefox/webdriver.py", line 45, in __init__
>     self.binary, timeout),
>   File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/
> firefox/extension_connection.py", line 46, in __init__
>     self.binary.launch_browser(self.profile)
>   File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/
> firefox/firefox_binary.py", line 44, in launch_browser
>     self._wait_until_connectable()
>   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'
> Build step 'Virtualenv Builder' marked build as failure
> Finished: FAILURE
>
> Switched to XShell and same errors as above.
>
> Switched to Python and removed path to python, just the source
> filename.
>
> In  this case it can't seem to find the source file.
>
> 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
> Build step 'Virtualenv Builder' marked build as failure
> Finished: FAILURE
>
> ========================================================================
> Switched the build step  to Python Builder
>
> I put in full path to python and source file.
>
> Same error of can't find selenium libs.
>
> 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.
>
> On Feb 20, 8:23 am, SteveB <doc...@gmail.com> wrote:
>
>
>
>
>
>
>
> > It's a  holiday here and all the files are at work.   I can post info
> > tomorrow.
>
> > As to the selenium lib I used the pip install -U selenium like 
> > thepython/selenium doc page says.
>
> > Steve B.
>
> > On Feb 19, 5:06 am, Chris Withers <ch...@simplistix.co.uk> wrote:
>
> > > On 17/02/2012 19:02, SteveB wrote:
>
> > > > Trying to useJenkinsto runpython-selenium-testng scripts to do
> > > > website functional testing and haveJenkinscollect the testng
> > > > result.   (FYI this is on a ubuntu system)
>
> > > Can you please include full examples of the tracebacks you're seeing?
>
> > > (It'd also be good to know how you've configurepython, how you've
> > > installed the seleniumpythonlibrary you refer to, etc)
>
> > > cheers,
>
> > > Chris
>
> > > --
> > > Simplistix - Content Management, Batch Processing &PythonConsulting
> > >             -http://www.simplistix.co.uk

Reply via email to