Moving trunk

7 views
Skip to first unread message

Simon Stewart

unread,
Dec 9, 2009, 12:21:40 PM12/9/09
to selenium-developers, webdriver
Hi everyone,

As of r7806, we now have the Big 4 languages[1] integrated into a
single tree and a shiny new "trunk" to play with

http://code.google.com/p/selenium/source/detail?r=7806

Thanks to Jason Huggins and Miki Tebeka (both from Sauce Labs) for
getting the Python bindings in. :)

Now, it's a case of applying some polish before releasing the alphas.

If you've not checked out the source for webdriver or selenium, you
can stop reading. If you have the code:

* All future checkins should be against:

https://selenium.googlecode.com/svn/trunk

* I'm no longer looking at changes to webdriver/trunk,
selenium-rc/trunk, or selenium-core/trunk. Or the branches. If you
check in there, you're responsible for merging the changes in.

* Fix anything that stops a "rake test" from passing.

Cheers,

Simon

[1] Java, C#, Python, Ruby

Adam Goucher

unread,
Dec 9, 2009, 12:37:39 PM12/9/09
to selenium-...@googlegroups.com

> [1] Java, C#, Python, Ruby
>
>
Does anyone know enough PHP to add that in? PHPUnit has an entire
chapter on selenium.

-adam

Simon Stewart

unread,
Dec 9, 2009, 12:55:43 PM12/9/09
to selenium-...@googlegroups.com
If someone wants to "own" the PHP bindings, please sing out!

Simon
> --
>
> You received this message because you are subscribed to the Google Groups "selenium-developers" group.
> To post to this group, send email to selenium-...@googlegroups.com.
> To unsubscribe from this group, send email to selenium-develo...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/selenium-developers?hl=en.
>
>
>

Jason Huggins

unread,
Dec 9, 2009, 2:38:15 PM12/9/09
to selenium-...@googlegroups.com, Sebastian Bergmann
+1 Sebastian Bergmann, author of PHPUnit

He's the world-wide expert in all things "Selenium+PHP". :-)

-jason

Sebastian Bergmann

unread,
Dec 9, 2009, 3:14:21 PM12/9/09
to selenium-developers
On 9 Dez., 13:38, Jason Huggins <ja...@jrandolph.com> wrote:
> +1 Sebastian Bergmann, author of PHPUnit
> He's the world-wide expert in all things "Selenium+PHP". :-)

PHPUnit uses its own implementation of the Selenium RC protocol for
the
support of code coverage.

While I can certainly help with reviewing/testing the standalone
PHP bindings, I will probably not have the time to develop/maintain
them.

Let me know if/how I can help,
Sebastian

Patrick Lightbody

unread,
Dec 9, 2009, 3:30:00 PM12/9/09
to selenium-...@googlegroups.com
Any reason the PHPUnit stuff can't become the official bindngs?

Simon Stewart

unread,
Dec 9, 2009, 3:33:22 PM12/9/09
to selenium-...@googlegroups.com
None as far as I am concerned.

Simon

Sebastian Bergmann

unread,
Dec 9, 2009, 6:26:24 PM12/9/09
to selenium-developers
On 9 Dez., 14:30, Patrick Lightbody <patr...@lightbody.net> wrote:
> Any reason the PHPUnit stuff can't become the official bindngs?

Some of it might be too spezialized for PHPUnit's needs (code
coverage),
some of it might not be generic enough for other uses.

Ideally, PHPUnit's SeleniumTestCase class would just extend/wrap
the official bindings and not have its own. If anyone want to tackle
this: great. And I would be glad to help any way I can. I am afraid
that I can not commit substantial time to this at the moment.

Patrick Lightbody

unread,
Dec 9, 2009, 6:28:52 PM12/9/09
to selenium-...@googlegroups.com
Well, I was thinking more like: is *anyone* using the current bindings
and not using PHPUnit? If not, seems to me we should just decommission
our stuff and recommend they use PHPUnit. So no work on your part
required, other than continue to do what you do :)

Patrick

Sebastian Bergmann

unread,
Dec 9, 2009, 6:41:50 PM12/9/09
to selenium-developers
On 9 Dez., 17:28, Patrick Lightbody <patr...@lightbody.net> wrote:
> Well, I was thinking more like: is *anyone* using the current bindings
> and not using PHPUnit? If not, seems to me we should just decommission
> our stuff and recommend they use PHPUnit. So no work on your part
> required, other than continue to do what you do :)

Oh, okay. I have not seen any real-world use of the official PHP
bindings yet.

Simon Stewart

unread,
Dec 9, 2009, 6:45:24 PM12/9/09
to selenium-...@googlegroups.com
None as far as I am concerned.

Simon

On Wednesday, December 9, 2009, Patrick Lightbody <pat...@lightbody.net> wrote:

Ryan Ausanka-Crues

unread,
Dec 11, 2009, 2:27:06 AM12/11/09
to selenium-developers
At Genius.com we use the PHPUnit bindings and second Sebastian's
observations about the lack of real-world use of the non-PHPUnit
bindings.

Sebastian, I'm not sure if you need any help with the maintenance of
the PHPUnit bindings but we'd love to help if you need it.

Ryan Ausanka-Crues
Development Manager
Genius.com

On Dec 9, 6:41 pm, Sebastian Bergmann <sebastian.bergm...@gmail.com>
wrote:

gyrm

unread,
Dec 12, 2009, 1:16:51 AM12/12/09
to selenium-developers
Just trying to figure things out here. How are the Selenium Core tests
to be run in the new repository structure? I couldn't see an obvious
way of running the tests as before, i.e. simply by opening the
TestRunner.html page in a browser and loading the test suite.

What test scripts exactly are being by Bamboo for the "Core Firefox"
and "IE Tests" jobs? They don't seem to be running properly. "mvn
test" under selenium fails fast for me.

Wondering if this is expected, or if I'm doing something wrong. :)


Haw-Bin

Simon Stewart

unread,
Dec 15, 2009, 4:27:25 PM12/15/09
to selenium-...@googlegroups.com
Hi Haw-Bin,

The selenium core tests are run via:

rake test_core_firefox test_core_ie

You're right that they don't pass. They fail in the same way as Core
did on my machine, though. As for re-enabling the "load
TestRunner.html in a browser and run the test", try:

rake selenium-server-standalone

And then (all on one line ;)
java -jar build/selenium-server-standalone.jar

Then just point your browser at:

http://localhost:4444/selenium-server/core/TestRunner.html

Simon

gyrm

unread,
Dec 28, 2009, 12:23:33 AM12/28/09
to Selenium Developers
Thanks Simon. I'm running into an issue with "rake selenium-server-
standalone" - it appears that the generated javac command line is too
long for Windows XP - it's longer than 8191, and the command errors
out with a cryptic:

rake aborted!
Command failed with status (1): [javac -cp ;;;;;;;;;;;build/webdriver-
chrom...]

and adding --trace doesn't help.


Haw-Bin

gyrm

unread,
Dec 28, 2009, 9:16:08 PM12/28/09
to Selenium Developers
Created issue297 (http://code.google.com/p/selenium/issues/detail?
id=297)


Haw-Bin

Simon Stewart

unread,
Dec 29, 2009, 8:21:10 AM12/29/09
to selenium-...@googlegroups.com
Thanks. Hmmm... I've not got any Windows machines at home, so it looks
like I can only start fixing it when I get back to work in the New
Year. I wonder why this works on my machine but not yours: maybe
something changed between XP and Vista.

Regards,

Simon

> You received this message because you are subscribed to the Google Groups "Selenium Developers" group.

gyrm

unread,
Jan 8, 2010, 10:52:16 PM1/8/10
to Selenium Developers
A patch was contributed against issue297, which allowed me to build on
XP. The core tests aren't bundled with the standalone server though,
so they must be updated into the jar.

I found a simpler way to achieve what I was looking for - copy
selenium/test/js as common/src/js/tests , and then open common/src/js/
core/TestRunner.html in a browser. (The source tree should be served
up by some kind of webserver, thus through http:// , or else XHR
errors result when the tests run.) This setup pretty much imitates the
original Selenium core repo setup, and makes testing core changes
easier.


Haw-Bin


On Dec 29 2009, 8:21 am, Simon Stewart <simon.m.stew...@gmail.com>
wrote:

Aditya Ivaturi

unread,
Jan 14, 2010, 3:47:24 PM1/14/10
to Selenium Developers
Haw-Bin - may be you & I are doing some thing different because I got
even horrible numbers with the new code. So let me list out what I am
doing to verify that I am doing it right:

1) Downloaded the latest source from http://selenium.googlecode.com/svn/trunk/.
I am at r8081.
2) In trunk run this command - rake selenium-server-standalone.
3) Copy common\src\js\core\scripts\rpc-optimizing-user-extension.js to
the build directory & rename it to user-extensions.js
4) java -jar selenium-server-standalone.jar -userExtensions user-
extensions.js.
5) I am using the same test page that I submitted to issue #307.
6) Here is my Perl test script:

<code>

use strict;
use warnings;
use Time::HiRes qw(sleep gettimeofday tv_interval);
use Test::WWW::Selenium;
use Test::More "no_plan";
use Test::Exception;
#use Data::Dumper;

my $sel = Test::WWW::Selenium->new( host => "localhost",
port => 4444,
browser => "*iexplore",
browser_url => "http://
localhost/" );

my ($start, $end, $time_spent) = 0;

$sel->use_xpath_library("javascript-xpath");
$start = [gettimeofday()];

for (my $i=0; $i < 100; $i++)
{
$sel->get_xpath_count("//table[\@class='tblList'][1]/tbody/tr");
}

$time_spent = tv_interval($start)*1000;
print "Xpath: $time_spent [ms]\n";
$sel->close();

</code>

and here is my output:

ok 1 - open, /test.html
Xpath: 503481.153 [ms]
1..1

So it took almost 503 seconds to query "//table[\@class='tblList'][1]/
tbody/tr" 100 times. Am I doing some thing wrong?

Aditya Ivaturi

unread,
Jan 14, 2010, 4:02:55 PM1/14/10
to Selenium Developers
D'oh sorry, this previous post does not belong to this thread.
Reply all
Reply to author
Forward
0 new messages