rake aborted!
Command failed with status (1): [javac -cp ;;;;;;;;;;;build/webdriver-
chrom...]
and adding --trace doesn't help.
Haw-Bin
Regards,
Simon
> You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
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:
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?