You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Mark <ma...@xeric.net> on 2011/08/09 00:48:53 UTC

Re: testng.xml and selenium

I ran some tests on Ubuntu Linux using Firefox 3.6.  To run Selenium
2, I changed the dependency in tapestry-test and added a method that
was required by the new interface.  If there are two test times
listed, I ran the test twice.

Here are the results:

5.2.6 Selenium 1 & Maven
6 min 14 sec

5.3 with Selenium 1 & Gradle
7 min 5 sec
7 min 14 sec

5.3 Selenium 2.3 & Gradle
7 min 26 sec
8 min 1 sec

So in my tested configuration, a switch to Selenium 2.3 doesn't add
any significant amount of time to the build as long as you stay on the
browser that today we are forced to use. It might be slower on newer
browsers, but that isn't a fair comparison because we can't use them
right now anyway.


Mark

On Mon, Jul 18, 2011 at 4:53 PM, Howard Lewis Ship <hl...@gmail.com> wrote:
> My experience is that using the old Selenium APIs with WebDriver 2.0
> is about 100% slower (i.e., execution takes twice as long).
>
> On Mon, Jul 18, 2011 at 1:40 PM, Mark <ma...@xeric.net> wrote:
>> It looks like Selenium 2.0 can run using WebDriver where it directly
>> works with the browser or emulating the older Selenium RC approach.
>> Is WebDriver slow or is it when you try to run 2.0 using the older
>> style tests? I thought part of the point of WebDriver was to be
>> faster.
>>
>> Mark
>>
>> On Mon, Jul 18, 2011 at 1:47 PM, Howard Lewis Ship <hl...@gmail.com> wrote:
>>> I've been using Geb (a Groovy wrapper around Selenium 2.0) and I've
>>> been having a lot of trouble since Selenium 2.0 changes things; just
>>> swapping out the new code takes a huge hit on performance.  I might
>>> take a go at this, but I'd rather start thinking in terms of
>>> deprecating the selenium support inside tapestry-test and seeing about
>>> adopting Geb as a better solution that embraces Selenium 2.0.
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: dev-help@tapestry.apache.org
>>
>>
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: testng.xml and selenium

Posted by Mark <ma...@xeric.net>.
>
> Well, I evaluated your patch and running time seems to be on the same
> ball park on Windows (7). Tests finished in 6:24 on my laptop, I'm
> getting 4 failures though (the treetest and a few other ajax tests).
> Makes sense to me to upgrade to Selenium 2.
>
> I had a few failures, but they also failed when running with Selenium 1 on
Firefox 3.6, so I didn't look into them.

Mark

Re: testng.xml and selenium

Posted by Kalle Korhonen <ka...@gmail.com>.
On Tue, Aug 9, 2011 at 11:58 AM, Mark <ma...@xeric.net> wrote:
> I attached the patch to:
> https://issues.apache.org/jira/browse/TAP5-1599
> Just in case anyone wants to try it out.
> Howard said that he saw a significant slowdown, but that didn't happen in my
> tests on LInux.  Perhaps it is slower on OS X or Windows.

Well, I evaluated your patch and running time seems to be on the same
ball park on Windows (7). Tests finished in 6:24 on my laptop, I'm
getting 4 failures though (the treetest and a few other ajax tests).
Makes sense to me to upgrade to Selenium 2.

Kalle

>
>
>> HtmlUnit-based functional tests simplify the testing environment and
>> running them within the IDE, and also because they run much faster
>> than the Selenium (1) tests. Using the WebDriver could improve
>> execution speed and Selenium 2 also allows using HtmlUnit as the
>> WebDriver (although it's somewhat questionable what the extra
>> abstraction layers buy you in that case). It would be an interesting
>> exercise to rewrite some tests to use the WebDriver and compare
>> execution times of different drivers, namely against HtmlUnit.
>>
>>
> I think there should be a way to specify what WebDriver you want to use from
> testng.xml or something.  If that is the case, it might be possible to test
> the bulk of the tests in HtmlUnit while running the tests that are looking
> for finer points of the GUI or JS implementations in several other browsers.
>
> I'm hoping there will be enough interest to either get this update included
> or at least see if we can recreate and identify what slow down issues Howard
> was running into.
>
> Mark
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: testng.xml and selenium

Posted by Mark <ma...@xeric.net>.
I attached the patch to:
https://issues.apache.org/jira/browse/TAP5-1599

Just in case anyone wants to try it out.

Howard said that he saw a significant slowdown, but that didn't happen in my
tests on LInux.  Perhaps it is slower on OS X or Windows.


> HtmlUnit-based functional tests simplify the testing environment and
> running them within the IDE, and also because they run much faster
> than the Selenium (1) tests. Using the WebDriver could improve
> execution speed and Selenium 2 also allows using HtmlUnit as the
> WebDriver (although it's somewhat questionable what the extra
> abstraction layers buy you in that case). It would be an interesting
> exercise to rewrite some tests to use the WebDriver and compare
> execution times of different drivers, namely against HtmlUnit.
>
>
I think there should be a way to specify what WebDriver you want to use from
testng.xml or something.  If that is the case, it might be possible to test
the bulk of the tests in HtmlUnit while running the tests that are looking
for finer points of the GUI or JS implementations in several other browsers.

I'm hoping there will be enough interest to either get this update included
or at least see if we can recreate and identify what slow down issues Howard
was running into.

Mark

Re: testng.xml and selenium

Posted by Kalle Korhonen <ka...@gmail.com>.
On Thu, Aug 11, 2011 at 7:25 PM, Mark <ma...@xeric.net> wrote:
> On Thu, Aug 11, 2011 at 7:57 PM, Howard Lewis Ship <hl...@gmail.com> wrote:
>> And I wonder if it wouldn't make sense to scrap SeleniumTestCase and
>> all that, and just have people do something sensible, like use Geb.
>
> Geb looks interesting. Do you have any public code that is using it?
> I'm curious how you'd handle the setup for Jetty, etc.

We (at Tynamo.org) have been successfully using HtmlUnit-based
integration tests running in an embedded Jetty. Setting up Jetty is
fairly simple and we keep it in a static property for the duration of
the tests, see http://svn.codehaus.org/tynamo/trunk/tapestry-model/tapestry-model-test/src/main/java/org/tynamo/test/AbstractContainerTest.java.
Obviously something similar could be paired up with
Geb/WebDriver-based tests as well.

> I'd think SeleniumTestCase would need to stick around particularly for
> people who have a very large number of tests already that depend on
> it.

Well, they could just use an older version. But for Tapestry, it'd be
very valuable if we could retrofit the SeleniumTestCase to use
WebDriver api so we wouldn't need to scrap or rewrite all the existing
tests.

Kalle

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: testng.xml and selenium

Posted by Mark <ma...@xeric.net>.
On Thu, Aug 11, 2011 at 7:57 PM, Howard Lewis Ship <hl...@gmail.com> wrote:
> And I wonder if it wouldn't make sense to scrap SeleniumTestCase and
> all that, and just have people do something sensible, like use Geb.

Geb looks interesting. Do you have any public code that is using it?

I'm curious how you'd handle the setup for Jetty, etc.

I'd think SeleniumTestCase would need to stick around particularly for
people who have a very large number of tests already that depend on
it.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: testng.xml and selenium

Posted by Howard Lewis Ship <hl...@gmail.com>.
On Thu, Aug 11, 2011 at 5:53 PM, Mark <ma...@xeric.net> wrote:
> By the way, the current patch will only switch to the newer version of
> selenium. It does not use WebDriver which is what would be necessary
> to use HtmlUnit.
> For that to work, we need to replace the old setup in SeleniumTestCase:
>
> final Selenium selenium = new DefaultSelenium(commandProcessor);
>
> With something like:
>
>         final WebDriver driver = new FirefoxDriver();
>         final Selenium selenium = new WebDriverBackedSelenium(driver, baseURL);
>
> It would probably make sense to set things up so testng.xml can
> specify FirefoxDriver, HtmlUnitDriver, etc.
>
> This should let us run all the tests without an issue in theory, but
> in practice there may be a few that will need to be tweaked as
> WebDriverBackedSelenium emulates DefaultSelenium, but not perfectly.
>
> Once you have an instance of WebDriverBackedSelenium, you can get the
> WebDriver to use that API using:
>        WebDriver driver = ((WrapsDriver) selenium).getWrappedDriver();
>
> I've been working on a patch for SeleniumTestCase that will do that
> but I'm running into problems getting selenium to start without
> conflicting with the existing code.  I wonder if it wouldn't make more
> sense to do something like WebDriverTestCase.

And I wonder if it wouldn't make sense to scrap SeleniumTestCase and
all that, and just have people do something sensible, like use Geb.

>
> Mark
>
> On Tue, Aug 9, 2011 at 12:43 PM, Kalle Korhonen
> <ka...@gmail.com> wrote:
>>
>> Mark, this is very useful. I continue to be a firm believer of
>> htmlunit (see e.g.
>> http://docs.codehaus.org/display/TYNAMO/2010/07/30/) because
>> HtmlUnit-based functional tests simplify the testing environment and
>> running them within the IDE, and also because they run much faster
>> than the Selenium (1) tests. Using the WebDriver could improve
>> execution speed and Selenium 2 also allows using HtmlUnit as the
>> WebDriver (although it's somewhat questionable what the extra
>> abstraction layers buy you in that case). It would be an interesting
>> exercise to rewrite some tests to use the WebDriver and compare
>> execution times of different drivers, namely against HtmlUnit.
>>
>> > I've attached a patch in case anyone wants to test it out. I filed a JIRA
>> > issue TAP5-1599, but for some reason I can't seem to upload an attachment to
>> > JIRA.
>>
>> Is the patch really big? There may be a file size limit.
>>
>> Kalle
>>
>>
>> > On Mon, Aug 8, 2011 at 5:48 PM, Mark <ma...@xeric.net> wrote:
>> >> I ran some tests on Ubuntu Linux using Firefox 3.6.  To run Selenium
>> >> 2, I changed the dependency in tapestry-test and added a method that
>> >> was required by the new interface.  If there are two test times
>> >> listed, I ran the test twice.
>> >>
>> >> Here are the results:
>> >>
>> >> 5.2.6 Selenium 1 & Maven
>> >> 6 min 14 sec
>> >>
>> >> 5.3 with Selenium 1 & Gradle
>> >> 7 min 5 sec
>> >> 7 min 14 sec
>> >>
>> >> 5.3 Selenium 2.3 & Gradle
>> >> 7 min 26 sec
>> >> 8 min 1 sec
>> >>
>> >> So in my tested configuration, a switch to Selenium 2.3 doesn't add
>> >> any significant amount of time to the build as long as you stay on the
>> >> browser that today we are forced to use. It might be slower on newer
>> >> browsers, but that isn't a fair comparison because we can't use them
>> >> right now anyway.
>> >>
>> >>
>> >> Mark
>> >>
>> >> On Mon, Jul 18, 2011 at 4:53 PM, Howard Lewis Ship <hl...@gmail.com>
>> >> wrote:
>> >>> My experience is that using the old Selenium APIs with WebDriver 2.0
>> >>> is about 100% slower (i.e., execution takes twice as long).
>> >>>
>> >>> On Mon, Jul 18, 2011 at 1:40 PM, Mark <ma...@xeric.net> wrote:
>> >>>> It looks like Selenium 2.0 can run using WebDriver where it directly
>> >>>> works with the browser or emulating the older Selenium RC approach.
>> >>>> Is WebDriver slow or is it when you try to run 2.0 using the older
>> >>>> style tests? I thought part of the point of WebDriver was to be
>> >>>> faster.
>> >>>>
>> >>>> Mark
>> >>>>
>> >>>> On Mon, Jul 18, 2011 at 1:47 PM, Howard Lewis Ship <hl...@gmail.com>
>> >>>> wrote:
>> >>>>> I've been using Geb (a Groovy wrapper around Selenium 2.0) and I've
>> >>>>> been having a lot of trouble since Selenium 2.0 changes things; just
>> >>>>> swapping out the new code takes a huge hit on performance.  I might
>> >>>>> take a go at this, but I'd rather start thinking in terms of
>> >>>>> deprecating the selenium support inside tapestry-test and seeing about
>> >>>>> adopting Geb as a better solution that embraces Selenium 2.0.
>> >>>>>
>> >>>>
>> >>>> ---------------------------------------------------------------------
>> >>>> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>> >>>> For additional commands, e-mail: dev-help@tapestry.apache.org
>> >>>>
>> >>>>
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> Howard M. Lewis Ship
>> >>>
>> >>> Creator of Apache Tapestry
>> >>>
>> >>> The source for Tapestry training, mentoring and support. Contact me to
>> >>> learn how I can get you up and productive in Tapestry fast!
>> >>>
>> >>> (971) 678-5210
>> >>> http://howardlewisship.com
>> >>>
>> >>> ---------------------------------------------------------------------
>> >>> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>> >>> For additional commands, e-mail: dev-help@tapestry.apache.org
>> >>>
>> >>>
>> >>
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>> > For additional commands, e-mail: dev-help@tapestry.apache.org
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: dev-help@tapestry.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: testng.xml and selenium

Posted by Mark <ma...@xeric.net>.
By the way, the current patch will only switch to the newer version of
selenium. It does not use WebDriver which is what would be necessary
to use HtmlUnit.
For that to work, we need to replace the old setup in SeleniumTestCase:

final Selenium selenium = new DefaultSelenium(commandProcessor);

With something like:

        final WebDriver driver = new FirefoxDriver();
        final Selenium selenium = new WebDriverBackedSelenium(driver, baseURL);

It would probably make sense to set things up so testng.xml can
specify FirefoxDriver, HtmlUnitDriver, etc.

This should let us run all the tests without an issue in theory, but
in practice there may be a few that will need to be tweaked as
WebDriverBackedSelenium emulates DefaultSelenium, but not perfectly.

Once you have an instance of WebDriverBackedSelenium, you can get the
WebDriver to use that API using:
        WebDriver driver = ((WrapsDriver) selenium).getWrappedDriver();

I've been working on a patch for SeleniumTestCase that will do that
but I'm running into problems getting selenium to start without
conflicting with the existing code.  I wonder if it wouldn't make more
sense to do something like WebDriverTestCase.

Mark

On Tue, Aug 9, 2011 at 12:43 PM, Kalle Korhonen
<ka...@gmail.com> wrote:
>
> Mark, this is very useful. I continue to be a firm believer of
> htmlunit (see e.g.
> http://docs.codehaus.org/display/TYNAMO/2010/07/30/) because
> HtmlUnit-based functional tests simplify the testing environment and
> running them within the IDE, and also because they run much faster
> than the Selenium (1) tests. Using the WebDriver could improve
> execution speed and Selenium 2 also allows using HtmlUnit as the
> WebDriver (although it's somewhat questionable what the extra
> abstraction layers buy you in that case). It would be an interesting
> exercise to rewrite some tests to use the WebDriver and compare
> execution times of different drivers, namely against HtmlUnit.
>
> > I've attached a patch in case anyone wants to test it out. I filed a JIRA
> > issue TAP5-1599, but for some reason I can't seem to upload an attachment to
> > JIRA.
>
> Is the patch really big? There may be a file size limit.
>
> Kalle
>
>
> > On Mon, Aug 8, 2011 at 5:48 PM, Mark <ma...@xeric.net> wrote:
> >> I ran some tests on Ubuntu Linux using Firefox 3.6.  To run Selenium
> >> 2, I changed the dependency in tapestry-test and added a method that
> >> was required by the new interface.  If there are two test times
> >> listed, I ran the test twice.
> >>
> >> Here are the results:
> >>
> >> 5.2.6 Selenium 1 & Maven
> >> 6 min 14 sec
> >>
> >> 5.3 with Selenium 1 & Gradle
> >> 7 min 5 sec
> >> 7 min 14 sec
> >>
> >> 5.3 Selenium 2.3 & Gradle
> >> 7 min 26 sec
> >> 8 min 1 sec
> >>
> >> So in my tested configuration, a switch to Selenium 2.3 doesn't add
> >> any significant amount of time to the build as long as you stay on the
> >> browser that today we are forced to use. It might be slower on newer
> >> browsers, but that isn't a fair comparison because we can't use them
> >> right now anyway.
> >>
> >>
> >> Mark
> >>
> >> On Mon, Jul 18, 2011 at 4:53 PM, Howard Lewis Ship <hl...@gmail.com>
> >> wrote:
> >>> My experience is that using the old Selenium APIs with WebDriver 2.0
> >>> is about 100% slower (i.e., execution takes twice as long).
> >>>
> >>> On Mon, Jul 18, 2011 at 1:40 PM, Mark <ma...@xeric.net> wrote:
> >>>> It looks like Selenium 2.0 can run using WebDriver where it directly
> >>>> works with the browser or emulating the older Selenium RC approach.
> >>>> Is WebDriver slow or is it when you try to run 2.0 using the older
> >>>> style tests? I thought part of the point of WebDriver was to be
> >>>> faster.
> >>>>
> >>>> Mark
> >>>>
> >>>> On Mon, Jul 18, 2011 at 1:47 PM, Howard Lewis Ship <hl...@gmail.com>
> >>>> wrote:
> >>>>> I've been using Geb (a Groovy wrapper around Selenium 2.0) and I've
> >>>>> been having a lot of trouble since Selenium 2.0 changes things; just
> >>>>> swapping out the new code takes a huge hit on performance.  I might
> >>>>> take a go at this, but I'd rather start thinking in terms of
> >>>>> deprecating the selenium support inside tapestry-test and seeing about
> >>>>> adopting Geb as a better solution that embraces Selenium 2.0.
> >>>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> >>>> For additional commands, e-mail: dev-help@tapestry.apache.org
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>> --
> >>> Howard M. Lewis Ship
> >>>
> >>> Creator of Apache Tapestry
> >>>
> >>> The source for Tapestry training, mentoring and support. Contact me to
> >>> learn how I can get you up and productive in Tapestry fast!
> >>>
> >>> (971) 678-5210
> >>> http://howardlewisship.com
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> >>> For additional commands, e-mail: dev-help@tapestry.apache.org
> >>>
> >>>
> >>
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: dev-help@tapestry.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: testng.xml and selenium

Posted by Kalle Korhonen <ka...@gmail.com>.
On Tue, Aug 9, 2011 at 6:52 AM, Mark <ma...@xeric.net> wrote:
> I went ahead and reran the tapestry-core tests using Selenium 2.3.1, but
> this time with Firefox 5.  At least on my install of ubuntu it is
> faster--not slower than Selenium 1 with FF 3.6.  This is using Selenium
> 2.3.1 as a drop in replacement for Selenium 1. If we want even faster test
> times, we might be able to get it by rewriting a few of the longer running
> tests using the WebDriver API.

Mark, this is very useful. I continue to be a firm believer of
htmlunit (see e.g.
http://docs.codehaus.org/display/TYNAMO/2010/07/30/) because
HtmlUnit-based functional tests simplify the testing environment and
running them within the IDE, and also because they run much faster
than the Selenium (1) tests. Using the WebDriver could improve
execution speed and Selenium 2 also allows using HtmlUnit as the
WebDriver (although it's somewhat questionable what the extra
abstraction layers buy you in that case). It would be an interesting
exercise to rewrite some tests to use the WebDriver and compare
execution times of different drivers, namely against HtmlUnit.

> I've attached a patch in case anyone wants to test it out. I filed a JIRA
> issue TAP5-1599, but for some reason I can't seem to upload an attachment to
> JIRA.

Is the patch really big? There may be a file size limit.

Kalle


> On Mon, Aug 8, 2011 at 5:48 PM, Mark <ma...@xeric.net> wrote:
>> I ran some tests on Ubuntu Linux using Firefox 3.6.  To run Selenium
>> 2, I changed the dependency in tapestry-test and added a method that
>> was required by the new interface.  If there are two test times
>> listed, I ran the test twice.
>>
>> Here are the results:
>>
>> 5.2.6 Selenium 1 & Maven
>> 6 min 14 sec
>>
>> 5.3 with Selenium 1 & Gradle
>> 7 min 5 sec
>> 7 min 14 sec
>>
>> 5.3 Selenium 2.3 & Gradle
>> 7 min 26 sec
>> 8 min 1 sec
>>
>> So in my tested configuration, a switch to Selenium 2.3 doesn't add
>> any significant amount of time to the build as long as you stay on the
>> browser that today we are forced to use. It might be slower on newer
>> browsers, but that isn't a fair comparison because we can't use them
>> right now anyway.
>>
>>
>> Mark
>>
>> On Mon, Jul 18, 2011 at 4:53 PM, Howard Lewis Ship <hl...@gmail.com>
>> wrote:
>>> My experience is that using the old Selenium APIs with WebDriver 2.0
>>> is about 100% slower (i.e., execution takes twice as long).
>>>
>>> On Mon, Jul 18, 2011 at 1:40 PM, Mark <ma...@xeric.net> wrote:
>>>> It looks like Selenium 2.0 can run using WebDriver where it directly
>>>> works with the browser or emulating the older Selenium RC approach.
>>>> Is WebDriver slow or is it when you try to run 2.0 using the older
>>>> style tests? I thought part of the point of WebDriver was to be
>>>> faster.
>>>>
>>>> Mark
>>>>
>>>> On Mon, Jul 18, 2011 at 1:47 PM, Howard Lewis Ship <hl...@gmail.com>
>>>> wrote:
>>>>> I've been using Geb (a Groovy wrapper around Selenium 2.0) and I've
>>>>> been having a lot of trouble since Selenium 2.0 changes things; just
>>>>> swapping out the new code takes a huge hit on performance.  I might
>>>>> take a go at this, but I'd rather start thinking in terms of
>>>>> deprecating the selenium support inside tapestry-test and seeing about
>>>>> adopting Geb as a better solution that embraces Selenium 2.0.
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: dev-help@tapestry.apache.org
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Howard M. Lewis Ship
>>>
>>> Creator of Apache Tapestry
>>>
>>> The source for Tapestry training, mentoring and support. Contact me to
>>> learn how I can get you up and productive in Tapestry fast!
>>>
>>> (971) 678-5210
>>> http://howardlewisship.com
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: dev-help@tapestry.apache.org
>>>
>>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: testng.xml and selenium

Posted by Mark <ma...@xeric.net>.
I went ahead and reran the tapestry-core tests using Selenium 2.3.1, but
this time with Firefox 5.  At least on my install of ubuntu it is
faster--not slower than Selenium 1 with FF 3.6.  This is using Selenium
2.3.1 as a drop in replacement for Selenium 1. If we want even faster test
times, we might be able to get it by rewriting a few of the longer running
tests using the WebDriver API.

I've attached a patch in case anyone wants to test it out. I filed a JIRA
issue TAP5-1599 <https://issues.apache.org/jira/browse/TAP5-1599>, but for
some reason I can't seem to upload an attachment to JIRA.

Firefox 5:

5.3 Selenium 2 & Gradle
6:47
6:42


Using Firefox 3.6:

5.2.6 Selenium 1 & Maven
6:14

5.3 with Selenium 1 & Gradle
7:05
7:14

5.3 Selenium 2 & Gradle
7:26
8:01


Mark


On Mon, Aug 8, 2011 at 5:48 PM, Mark <ma...@xeric.net> wrote:
> I ran some tests on Ubuntu Linux using Firefox 3.6.  To run Selenium
> 2, I changed the dependency in tapestry-test and added a method that
> was required by the new interface.  If there are two test times
> listed, I ran the test twice.
>
> Here are the results:
>
> 5.2.6 Selenium 1 & Maven
> 6 min 14 sec
>
> 5.3 with Selenium 1 & Gradle
> 7 min 5 sec
> 7 min 14 sec
>
> 5.3 Selenium 2.3 & Gradle
> 7 min 26 sec
> 8 min 1 sec
>
> So in my tested configuration, a switch to Selenium 2.3 doesn't add
> any significant amount of time to the build as long as you stay on the
> browser that today we are forced to use. It might be slower on newer
> browsers, but that isn't a fair comparison because we can't use them
> right now anyway.
>
>
> Mark
>
> On Mon, Jul 18, 2011 at 4:53 PM, Howard Lewis Ship <hl...@gmail.com>
wrote:
>> My experience is that using the old Selenium APIs with WebDriver 2.0
>> is about 100% slower (i.e., execution takes twice as long).
>>
>> On Mon, Jul 18, 2011 at 1:40 PM, Mark <ma...@xeric.net> wrote:
>>> It looks like Selenium 2.0 can run using WebDriver where it directly
>>> works with the browser or emulating the older Selenium RC approach.
>>> Is WebDriver slow or is it when you try to run 2.0 using the older
>>> style tests? I thought part of the point of WebDriver was to be
>>> faster.
>>>
>>> Mark
>>>
>>> On Mon, Jul 18, 2011 at 1:47 PM, Howard Lewis Ship <hl...@gmail.com>
wrote:
>>>> I've been using Geb (a Groovy wrapper around Selenium 2.0) and I've
>>>> been having a lot of trouble since Selenium 2.0 changes things; just
>>>> swapping out the new code takes a huge hit on performance.  I might
>>>> take a go at this, but I'd rather start thinking in terms of
>>>> deprecating the selenium support inside tapestry-test and seeing about
>>>> adopting Geb as a better solution that embraces Selenium 2.0.
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: dev-help@tapestry.apache.org
>>>
>>>
>>
>>
>>
>> --
>> Howard M. Lewis Ship
>>
>> Creator of Apache Tapestry
>>
>> The source for Tapestry training, mentoring and support. Contact me to
>> learn how I can get you up and productive in Tapestry fast!
>>
>> (971) 678-5210
>> http://howardlewisship.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: dev-help@tapestry.apache.org
>>
>>
>