<?xml version="1.0"?>
<?xml-stylesheet
href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/search.php">
    <title>PEAR Bug Search Results</title>
    <link>http://pear.php.net/bugs/search.php?cmd=display&amp;package_name%5B0%5D=Testing_Selenium</link>
    <description>Search Results</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bug/16756" />
      <rdf:li rdf:resource="http://pear.php.net/bug/16472" />
      <rdf:li rdf:resource="http://pear.php.net/bug/15896" />
      <rdf:li rdf:resource="http://pear.php.net/bug/14617" />
      <rdf:li rdf:resource="http://pear.php.net/bug/9189" />
      <rdf:li rdf:resource="http://pear.php.net/bug/9120" />

     </rdf:Seq>
    </items>
  </channel>

  <image rdf:about="http://pear.php.net/gifs/pearsmall.gif">
    <title>PEAR Bugs</title>
    <url>http://pear.php.net/gifs/pearsmall.gif</url>
    <link>http://pear.php.net/bugs</link>
  </image>

    <item rdf:about="http://pear.php.net/bug/16756">
      <title>Testing_Selenium: Feature/Change Request 16756 [Open] $sessionId should be accessible</title>
      <link>http://pear.php.net/bugs/16756</link>
      <content:encoded><![CDATA[<pre>Testing_Selenium Feature/Change Request
Reported by romulusnr
2009-11-01T23:10:45+00:00
PHP: 5.3.0 OS: Any Package Version: 0.4.3

Description:
------------
We should be able to access the current sessionId. I don't know why Testing_Selenium-&gt;sessionId is marked private. Protected would allow testing subclasses to look up $this-&gt;sessionId. Alternately a get method $this-&gt;getSessionId() would suffice so that you can't mess with the sessionId. (But then again perhaps people want to do that!)</pre>]]></content:encoded>
      <description><![CDATA[<pre>Testing_Selenium Feature/Change Request
Reported by romulusnr
2009-11-01T23:10:45+00:00
PHP: 5.3.0 OS: Any Package Version: 0.4.3

Description:
------------
We should be able to access the current sessionId. I don't know why Testing_Selenium-&gt;sessionId is marked private. Protected would allow testing subclasses to look up $this-&gt;sessionId. Alternately a get method $this-&gt;getSessionId() would suffice so that you can't mess with the sessionId. (But then again perhaps people want to do that!)</pre>]]></description>
      <dc:date>2009-11-01T23:10:45+00:00</dc:date>
      <dc:creator>selenium &amp;#x61;&amp;#116; keithtyler &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Testing_Selenium Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/16472">
      <title>Testing_Selenium: Feature/Change Request 16472 [Open] Unit tests fail (directory structure)</title>
      <link>http://pear.php.net/bugs/16472</link>
      <content:encoded><![CDATA[<pre>Testing_Selenium Feature/Change Request
Reported by doconnor
2009-07-25T07:08:20+00:00
PHP: 5.2.5 OS:  Package Version: CVS

Description:
------------
If you change the directory structure (and package.xml); your package will integrate with the overnight test runs.

Now we've got SVN, it's pretty easy:
svn mkdir Testing
svn mv Selenium.php Testing/

See also:
http://www.lauken.com/doconnor/phpunit_results.txt

Test script:
---------------
cd /home/clockwerx/pear-svn/packages/Testing_Selenium/trunk/
php tests/AllTests.php

Expected result:
----------------
Tests run

Actual result:
--------------
/home/clockwerx/pear-svn/packages/Testing_Selenium/trunk/tests/AllTests.php


Warning: require_once(Testing/Selenium.php): failed to open stream: No such file or directory in /home/clockwerx/pear-svn/packages/Testing_Selenium/trunk/tests/SeleniumTest.php on line 8

Call Stack:
    0.0007      55856   1. {main}() /home/clockwerx/pear-svn/packages/Testing_Selenium/trunk/tests/AllTests.php:0
    0.1741    3764196   2. require_once('/home/clockwerx/pear-svn/packages/Testing_Selenium/trunk/tests/SeleniumTest.php') /home/clockwerx/pear-svn/packages/Testing_Selenium/trunk/tests/AllTests.php:11


Fatal error: require_once(): Failed opening required 'Testing/Selenium.php' (include_path='.:/usr/share/php:/usr/share/pear:./PEAR/') in /home/clockwerx/pear-svn/packages/Testing_Selenium/trunk/tests/SeleniumTest.php on line 8

Call Stack:
    0.0007      55856   1. {main}() /home/clockwerx/pear-svn/packages/Testing_Selenium/trunk/tests/AllTests.php:0
    0.1741    3764196   2. require_once('/home/clockwerx/pear-svn/packages/Testing_Selenium/trunk/tests/SeleniumTest.php') /home/clockwerx/pear-svn/packages/Testing_Selenium/trunk/tests/AllTests.php:11</pre>]]></content:encoded>
      <description><![CDATA[<pre>Testing_Selenium Feature/Change Request
Reported by doconnor
2009-07-25T07:08:20+00:00
PHP: 5.2.5 OS:  Package Version: CVS

Description:
------------
If you change the directory structure (and package.xml); your package will integrate with the overnight test runs.

Now we've got SVN, it's pretty easy:
svn mkdir Testing
svn mv Selenium.php Testing/

See also:
http://www.lauken.com/doconnor/phpunit_results.txt

Test script:
---------------
cd /home/clockwerx/pear-svn/packages/Testing_Selenium/trunk/
php tests/AllTests.php

Expected result:
----------------
Tests run

Actual result:
--------------
/home/clockwerx/pear-svn/packages/Testing_Selenium/trunk/tests/AllTests.php


Warning: require_once(Testing/Selenium.php): failed to open stream: No such file or directory in /home/clockwerx/pear-svn/packages/Testing_Selenium/trunk/tests/SeleniumTest.php on line 8

Call Stack:
    0.0007      55856   1. {main}() /home/clockwerx/pear-svn/packages/Testing_Selenium/trunk/tests/AllTests.php:0
    0.1741    3764196   2. require_once('/home/clockwerx/pear-svn/packages/Testing_Selenium/trunk/tests/SeleniumTest.php') /home/clockwerx/pear-svn/packages/Testing_Selenium/trunk/tests/AllTests.php:11


Fatal error: require_once(): Failed opening required 'Testing/Selenium.php' (include_path='.:/usr/share/php:/usr/share/pear:./PEAR/') in /home/clockwerx/pear-svn/packages/Testing_Selenium/trunk/tests/SeleniumTest.php on line 8

Call Stack:
    0.0007      55856   1. {main}() /home/clockwerx/pear-svn/packages/Testing_Selenium/trunk/tests/AllTests.php:0
    0.1741    3764196   2. require_once('/home/clockwerx/pear-svn/packages/Testing_Selenium/trunk/tests/SeleniumTest.php') /home/clockwerx/pear-svn/packages/Testing_Selenium/trunk/tests/AllTests.php:11</pre>]]></description>
      <dc:date>2009-07-25T07:08:20+00:00</dc:date>
      <dc:creator>daniel &amp;#x64;&amp;#111;&amp;#x74; oconnor &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Testing_Selenium Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/15896">
      <title>Testing_Selenium: Bug 15896 [Open] Testing_Selenium with Grid passes sessionId as empty</title>
      <link>http://pear.php.net/bugs/15896</link>
      <content:encoded><![CDATA[<pre>Testing_Selenium Bug
Reported by anay
2009-02-13T05:22:42+00:00
PHP: 5.2.5 OS: Ubuntu Package Version: 

Description:
------------
   I have been trying to setup a PHP test suite on selenium grid using the 
Testing_Selenium 
module(http://pear.php.net/package/Testing_Selenium). The steps 
followed to set up the environment are similar to the ones mentioned at 
http://seleniumhq.org/projects/remote-control/languages/php.html
 
When the sample test GoogleTest.php is run using &quot;phpunit 
GoogleTest.php&quot; it fails with an error on the selenium-rc console.
Note: The selenium hub and remote control have been launched 
separately in different terminal instances.
     [java] INFO: Processing '1 =&gt; &quot;/&quot;, cmd =&gt; &quot;open&quot;, sessionId =&gt; &quot;&quot;'
     [java] 2009-02-12 11:26:06.147::WARN:  /selenium-server/driver/:
     [java] java.lang.NullPointerException
     [java] at 
com.thoughtworks.selenium.grid.hub.remotecontrol.commands.Selenese
Command.execute(SeleneseCommand.java:38)
     [java] at 
com.thoughtworks.selenium.grid.hub.HubServlet.forward(HubServlet.jav
a:52)
     [java] at 
com.thoughtworks.selenium.grid.hub.HubServlet.process(HubServlet.jav
a:41)
     [java] at 
com.thoughtworks.selenium.grid.hub.HubServlet.doGet(HubServlet.java:
26)
 
The interesting thing to notice here is that the sessionId is blank.
 
Commenting out the following line in the Testing_Selenium module 
solves the problem and the test completes successfully.
Testing/Selenium.php(line 2562)
#        stream_set_blocking($handle, false);
 
It seems that the stream was set to be non-blocking and hence was not 
able to pick up the session id from the selenium-rc web response for the 
getNewBrowserSession request.
 
Now I am not too sure if that is the correct &quot;fix&quot; as running the test with 
only the selenium-server(without grid) runs at a very slow pace. If the 
line is uncommented and run with selenium-server(without grid) it runs 
fast and passes.

Problem reproducible on :
OS: Ubuntu 8.10
PHP: PHP 5.2.6-2ubuntu4 with Suhosin-Patch 0.9.6.2 (cli)
PHPUnit: PHPUnit 3.3.14
Testing_Selenium: 0.4.3 (beta) 
Selenium-grid : 1.0.3

Also posted at http://clearspace.openqa.org/message/56570

Test script:
---------------
      

Expected result:
----------------
      

Actual result:
--------------</pre>]]></content:encoded>
      <description><![CDATA[<pre>Testing_Selenium Bug
Reported by anay
2009-02-13T05:22:42+00:00
PHP: 5.2.5 OS: Ubuntu Package Version: 

Description:
------------
   I have been trying to setup a PHP test suite on selenium grid using the 
Testing_Selenium 
module(http://pear.php.net/package/Testing_Selenium). The steps 
followed to set up the environment are similar to the ones mentioned at 
http://seleniumhq.org/projects/remote-control/languages/php.html
 
When the sample test GoogleTest.php is run using &quot;phpunit 
GoogleTest.php&quot; it fails with an error on the selenium-rc console.
Note: The selenium hub and remote control have been launched 
separately in different terminal instances.
     [java] INFO: Processing '1 =&gt; &quot;/&quot;, cmd =&gt; &quot;open&quot;, sessionId =&gt; &quot;&quot;'
     [java] 2009-02-12 11:26:06.147::WARN:  /selenium-server/driver/:
     [java] java.lang.NullPointerException
     [java] at 
com.thoughtworks.selenium.grid.hub.remotecontrol.commands.Selenese
Command.execute(SeleneseCommand.java:38)
     [java] at 
com.thoughtworks.selenium.grid.hub.HubServlet.forward(HubServlet.jav
a:52)
     [java] at 
com.thoughtworks.selenium.grid.hub.HubServlet.process(HubServlet.jav
a:41)
     [java] at 
com.thoughtworks.selenium.grid.hub.HubServlet.doGet(HubServlet.java:
26)
 
The interesting thing to notice here is that the sessionId is blank.
 
Commenting out the following line in the Testing_Selenium module 
solves the problem and the test completes successfully.
Testing/Selenium.php(line 2562)
#        stream_set_blocking($handle, false);
 
It seems that the stream was set to be non-blocking and hence was not 
able to pick up the session id from the selenium-rc web response for the 
getNewBrowserSession request.
 
Now I am not too sure if that is the correct &quot;fix&quot; as running the test with 
only the selenium-server(without grid) runs at a very slow pace. If the 
line is uncommented and run with selenium-server(without grid) it runs 
fast and passes.

Problem reproducible on :
OS: Ubuntu 8.10
PHP: PHP 5.2.6-2ubuntu4 with Suhosin-Patch 0.9.6.2 (cli)
PHPUnit: PHPUnit 3.3.14
Testing_Selenium: 0.4.3 (beta) 
Selenium-grid : 1.0.3

Also posted at http://clearspace.openqa.org/message/56570

Test script:
---------------
      

Expected result:
----------------
      

Actual result:
--------------</pre>]]></description>
      <dc:date>2009-02-13T05:22:42+00:00</dc:date>
      <dc:creator>anayak007 &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Testing_Selenium Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/14617">
      <title>Testing_Selenium: Bug 14617 [Open] focus() method doesn't work</title>
      <link>http://pear.php.net/bugs/14617</link>
      <content:encoded><![CDATA[<pre>Testing_Selenium Bug
Reported by gauthierm
2008-09-08T14:11:04+00:00
PHP: 5.2.6 OS: linux Package Version: 0.4.3

Description:
------------
The focus() method returns &quot;ERROR: Unknown command: 'focus' on session #####&quot;

As a workaround, the fireEvent() method works with the 'focus' event.</pre>]]></content:encoded>
      <description><![CDATA[<pre>Testing_Selenium Bug
Reported by gauthierm
2008-09-08T14:11:04+00:00
PHP: 5.2.6 OS: linux Package Version: 0.4.3

Description:
------------
The focus() method returns &quot;ERROR: Unknown command: 'focus' on session #####&quot;

As a workaround, the fireEvent() method works with the 'focus' event.</pre>]]></description>
      <dc:date>2008-09-08T14:11:04+00:00</dc:date>
      <dc:creator>mike &amp;#x61;&amp;#116; silverorange &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Testing_Selenium Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/9189">
      <title>Testing_Selenium: Bug 9189 [Assigned] Select-Option containing enties not selectable</title>
      <link>http://pear.php.net/bugs/9189</link>
      <content:encoded><![CDATA[<pre>Testing_Selenium Bug
Reported by nohn
2006-10-28T11:09:38+00:00
PHP: Irrelevant OS: Irrelevant Package Version: 0.2.1

Description:
------------
&lt;select id=&quot;parent_cat&quot; name=&quot;serendipity[cat][parent_cat]&quot;&gt;
  &lt;option value=&quot;0&quot; selected=&quot;selected&quot;&gt;[ No Category ]&lt;/option&gt;
  &lt;option value=&quot;1&quot;&gt;Test Category 001&lt;/option&gt;
  &lt;option value=&quot;3&quot;&gt;b&lt;/option&gt;
  &lt;option value=&quot;2&quot;&gt;Test Category 002&lt;/option&gt;
&lt;/select&gt;

Selection the option labelled &quot;&amp;nbsp;Test Category 001-1&quot; is not possible:

  select('parent_cat', ' Test Category 001-1');

(of course) does not find&amp;#180;the element, but 

  select('parent_cat', '&amp;nbsp;Test Category 001-1');

doesn't work either.

Output on Selnium RC console is:

queryString = cmd=select&amp;1=parent_cat&amp;2=&amp;amp;nbsp;Test Category 001-1&amp;sessionId=1162051371798
Got result: ERROR: Option with label '' not found

So I guess it's an encoding issue.

Test script:
---------------
&lt;select id=&quot;parent_cat&quot; name=&quot;serendipity[cat][parent_cat]&quot;&gt;
  &lt;option value=&quot;0&quot; selected=&quot;selected&quot;&gt;[ No Category ]&lt;/option&gt;
  &lt;option value=&quot;1&quot;&gt;Test Category 001&lt;/option&gt;
  &lt;option value=&quot;3&quot;&gt;b&lt;/option&gt;
  &lt;option value=&quot;2&quot;&gt;Test Category 002&lt;/option&gt;
&lt;/select&gt;

select('parent_cat', ' Test Category 001-1');

Expected result:
----------------
queryString = cmd=select&amp;1=parent_cat&amp;2=&amp;nbsp;Test Category 001-1&amp;sessionId=1162051371798
Got result: OK


Actual result:
--------------
queryString = cmd=select&amp;1=parent_cat&amp;2=&amp;amp;nbsp;Test Category 001-1&amp;sessionId=1162051371798
Got result: ERROR: Option with label '' not found</pre>]]></content:encoded>
      <description><![CDATA[<pre>Testing_Selenium Bug
Reported by nohn
2006-10-28T11:09:38+00:00
PHP: Irrelevant OS: Irrelevant Package Version: 0.2.1

Description:
------------
&lt;select id=&quot;parent_cat&quot; name=&quot;serendipity[cat][parent_cat]&quot;&gt;
  &lt;option value=&quot;0&quot; selected=&quot;selected&quot;&gt;[ No Category ]&lt;/option&gt;
  &lt;option value=&quot;1&quot;&gt;Test Category 001&lt;/option&gt;
  &lt;option value=&quot;3&quot;&gt;b&lt;/option&gt;
  &lt;option value=&quot;2&quot;&gt;Test Category 002&lt;/option&gt;
&lt;/select&gt;

Selection the option labelled &quot;&amp;nbsp;Test Category 001-1&quot; is not possible:

  select('parent_cat', ' Test Category 001-1');

(of course) does not find&amp;#180;the element, but 

  select('parent_cat', '&amp;nbsp;Test Category 001-1');

doesn't work either.

Output on Selnium RC console is:

queryString = cmd=select&amp;1=parent_cat&amp;2=&amp;amp;nbsp;Test Category 001-1&amp;sessionId=1162051371798
Got result: ERROR: Option with label '' not found

So I guess it's an encoding issue.

Test script:
---------------
&lt;select id=&quot;parent_cat&quot; name=&quot;serendipity[cat][parent_cat]&quot;&gt;
  &lt;option value=&quot;0&quot; selected=&quot;selected&quot;&gt;[ No Category ]&lt;/option&gt;
  &lt;option value=&quot;1&quot;&gt;Test Category 001&lt;/option&gt;
  &lt;option value=&quot;3&quot;&gt;b&lt;/option&gt;
  &lt;option value=&quot;2&quot;&gt;Test Category 002&lt;/option&gt;
&lt;/select&gt;

select('parent_cat', ' Test Category 001-1');

Expected result:
----------------
queryString = cmd=select&amp;1=parent_cat&amp;2=&amp;nbsp;Test Category 001-1&amp;sessionId=1162051371798
Got result: OK


Actual result:
--------------
queryString = cmd=select&amp;1=parent_cat&amp;2=&amp;amp;nbsp;Test Category 001-1&amp;sessionId=1162051371798
Got result: ERROR: Option with label '' not found</pre>]]></description>
      <dc:date>2006-11-03T20:57:32+00:00</dc:date>
      <dc:creator>sebastian &amp;#x61;&amp;#116; nohn &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>Testing_Selenium Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/9120">
      <title>Testing_Selenium: Feature/Change Request 9120 [Assigned] Allow setting the browser session ID</title>
      <link>http://pear.php.net/bugs/9120</link>
      <content:encoded><![CDATA[<pre>Testing_Selenium Feature/Change Request
Reported by cellog
2006-10-21T01:09:23+00:00
PHP: 5.1.6 OS: n/a Package Version: 0.2.0

Description:
------------
-&gt;start() should accept an optional parameter setting the browser ID.  Code could look like:

    public function start($id = null)
    {
        if ($id !== null) {
            return $this-&gt;sessionId = $id;
        }

        $this-&gt;sessionId = $this-&gt;getString('getNewBrowserSession', array($this-&gt;browser, $this-&gt;browserUrl));
        return $this-&gt;sessionId;
    }

This way, we won't get a million browser windows opened if spreading tests across multiple PHP files.</pre>]]></content:encoded>
      <description><![CDATA[<pre>Testing_Selenium Feature/Change Request
Reported by cellog
2006-10-21T01:09:23+00:00
PHP: 5.1.6 OS: n/a Package Version: 0.2.0

Description:
------------
-&gt;start() should accept an optional parameter setting the browser ID.  Code could look like:

    public function start($id = null)
    {
        if ($id !== null) {
            return $this-&gt;sessionId = $id;
        }

        $this-&gt;sessionId = $this-&gt;getString('getNewBrowserSession', array($this-&gt;browser, $this-&gt;browserUrl));
        return $this-&gt;sessionId;
    }

This way, we won't get a million browser windows opened if spreading tests across multiple PHP files.</pre>]]></description>
      <dc:date>2006-11-02T07:46:44+00:00</dc:date>
      <dc:creator>cellog &amp;#x61;&amp;#116; php &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>Testing_Selenium Feature/Change Request</dc:subject>
    </item>
</rdf:RDF>
