This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 221140 - Cannot connect to selenium server
Summary: Cannot connect to selenium server
Status: CLOSED WONTFIX
Alias: None
Product: utilities
Classification: Unclassified
Component: Selenium (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-31 03:15 UTC by ddreggors
Modified: 2014-12-09 09:34 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The output from a failed selenium test (1.40 KB, text/plain)
2012-10-31 14:57 UTC, ddreggors
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ddreggors 2012-10-31 03:15:45 UTC
I have followed the steps in the tutorial (link below) to the letter, and every time I try to run selenium tests for php code it fails. The html output in the output window shows the error "cannot connect to selenium server". It shows a URL of "http://localhost:4444/selenium-server/driver" which appears valid.

The link to the tutorial I followed:
http://netbeans.org/kb/docs/php/phpunit.html

I had this issue before in Linux but it works perfect in Linux (Fedora 17) currently. I have documented my tests and PASS/FAIL results here:

http://forums.netbeans.org/topic32842.html&highlight=


This is currently only an issue in Windows as far as I can tell. 


Also, before asked here, I have documented all the general questions I can think of in the forum post listed above... and will answer here as well...

Have I installed Selenium Server plugin: YES
Is Selenium running: YES
Is it running on port 4444: YES
Can you run phpunit on command line: YES
Does it pass on command line: YES
Does it fail in Netbeans: YES
Is bootstrap and configuration xml set in Netbeans: YES
Is Selenium test directory set in Netbeans: YES

When I run phpunit on command line, it works flawlessly whether I run the latest jar file down by hand or start the plugin in Netbeans.
When I select "Run selenium tests" in Netbeans (whether using jar or plugin) it fails with "cannot connect to selenium server".

Every developer that I ask at my office has run into this issue and has given up on using Netbeans for Selenium testing in PHP projects unless they run Linux on the Desktop. Also, there seems to be a large number of developers on various forms that run into the same issue.
Comment 1 ddreggors 2012-10-31 14:57:03 UTC
Created attachment 126869 [details]
The output from a failed selenium test

I have tested the selenium server by opening a web browser and going to the following link:

http://localhost:4444/wd/hub/

This gives me the expected sessions page where I can create and refresh sessions.
This shows that selenium is in fact running. Also, the previous tests using phpunit on command line works as well.


Just more information to help diagnose. ;-)
Comment 2 Marian Mirilovic 2014-12-09 09:31:21 UTC
We do have a new version of Selenium plugin in distribution, so closing all old issues to start with the clean table.