Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Automated Client Testing
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  15 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mike  
View profile  
 More options Apr 24 2007, 5:27 am
From: Mike <ado...@opentext.com>
Date: Tue, 24 Apr 2007 02:27:16 -0700
Local: Tues, Apr 24 2007 5:27 am
Subject: Automated Client Testing
What tools are recommended for automated client testing of GWT
applications?

I've looked at WebTest so far, which is based on htmlunit, but I'm not
making much progess.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Setya  
View profile  
 More options Apr 24 2007, 5:38 am
From: Setya <jse...@gmail.com>
Date: Tue, 24 Apr 2007 09:38:04 -0000
Local: Tues, Apr 24 2007 5:38 am
Subject: Re: Automated Client Testing
Hi,

I'm evaluating Selenium now, it looks pretty good.

Regards,

Setya


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian Bambury  
View profile  
 More options Apr 24 2007, 5:38 am
From: "Ian Bambury" <ianbamb...@gmail.com>
Date: Tue, 24 Apr 2007 10:38:54 +0100
Local: Tues, Apr 24 2007 5:38 am
Subject: Re: Automated Client Testing

JUnit is part of Eclipse. Is there something you want to do which it can't?

Ian

On 24/04/07, Mike <ado...@opentext.com> wrote:

> What tools are recommended for automated client testing of GWT
> applications?

> I've looked at WebTest so far, which is based on htmlunit, but I'm not
> making much progess.

--
Ian
http://roughian.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike  
View profile  
 More options Apr 24 2007, 5:53 am
From: Mike <ado...@opentext.com>
Date: Tue, 24 Apr 2007 02:53:06 -0700
Local: Tues, Apr 24 2007 5:53 am
Subject: Re: Automated Client Testing

On Apr 24, 10:38 am, "Ian Bambury" <ianbamb...@gmail.com> wrote:

> JUnit is part of Eclipse. Is there something you want to do which it can't?

> Ian

Is it possible use JUnit to test a running client? For example to log-
in, browse to a page and then validate say that a tree expands and
collapses correctly.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike  
View profile  
 More options Apr 24 2007, 5:54 am
From: Mike <ado...@opentext.com>
Date: Tue, 24 Apr 2007 02:54:13 -0700
Local: Tues, Apr 24 2007 5:54 am
Subject: Re: Automated Client Testing
On Apr 24, 10:38 am, Setya <jse...@gmail.com> wrote:

> Hi,

> I'm evaluating Selenium now, it looks pretty good.

> Regards,

> Setya

Thanks. Is it Selenium RC? We want to have an automated set of
acceptance or regression tests run as part of the build process.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Setya  
View profile  
 More options Apr 24 2007, 6:14 am
From: Setya <jse...@gmail.com>
Date: Tue, 24 Apr 2007 10:14:41 -0000
Local: Tues, Apr 24 2007 6:14 am
Subject: Re: Automated Client Testing

> Thanks. Is it Selenium RC?

Yes, exactly. Also try Selenium IDE which is an action recorder than
you can playback. Unfortunately it only runs on Firefox (for now).

Regards,

Setya


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike  
View profile  
 More options Apr 24 2007, 10:05 am
From: Mike <ado...@opentext.com>
Date: Tue, 24 Apr 2007 07:05:55 -0700
Local: Tues, Apr 24 2007 10:05 am
Subject: Re: Automated Client Testing

On Apr 24, 11:14 am, Setya <jse...@gmail.com> wrote:

> > Thanks. Is it Selenium RC?

> Yes, exactly. Also try Selenium IDE which is an action recorder than
> you can playback. Unfortunately it only runs on Firefox (for now).

> Regards,

> Setya

I'm struggling with Selenium. How do you identify elements on a page?
When I try Selenium IDE it records nothing. (This maybe to do with how
our developers are using GWT rather than Selenium... I managed to log
in with Selenium RC but as soon as I get to a real gwt page I cannot
identify the elements on the page. I've tried using firebug in
firefox, but I'm no closer.

How are you getting on?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Volkmann  
View profile  
 More options Apr 24 2007, 10:21 am
From: Mark Volkmann <m...@ociweb.com>
Date: Tue, 24 Apr 2007 09:21:51 -0500
Local: Tues, Apr 24 2007 10:21 am
Subject: Re: Automated Client Testing
On Apr 24, 2007, at 4:53 AM, Mike wrote:

> On Apr 24, 10:38 am, "Ian Bambury" <ianbamb...@gmail.com> wrote:
>> JUnit is part of Eclipse. Is there something you want to do which  
>> it can't?

>> Ian

> Is it possible use JUnit to test a running client? For example to log-
> in, browse to a page and then validate say that a tree expands and
> collapses correctly.

Yes. You can see a similar example here.
http://www.ociweb.com/mark/programming/GWT.html#Testing

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
George Georgovassilis  
View profile  
 More options Apr 24 2007, 2:52 pm
From: George Georgovassilis <g.georgovassi...@gmail.com>
Date: Tue, 24 Apr 2007 18:52:03 -0000
Local: Tues, Apr 24 2007 2:52 pm
Subject: Re: Automated Client Testing
I use selenium extensively with all my GWT apps - and wouldn't want to
live without it. You can use it to cross-platform test your
applications in the two major browsers - the selenium team claims it
works in almost any browser! Unfortunately it quite often records the
wrong things but it follows a pattern which you can work around.
Things that can go wrong and their remedies:

* It records the wrong element. I find it sometimes recording xpaths
on computed attributes which you can't forsee with a reasonable
investment of time. In this case I assign my own IDs
(DOM.setAttribute(element,"myId")) to elements and use the respective
locators (that's selenium jargon for an expression be it xpath,
javascript etc which returns a DOM element). If you decide to go that
way, do yourself a favor and try to design your widgets in a way that
this ID assignment is done more or less automatically
(inheritance?)... you don't want to see it in your code all the time.

* It doesn't record clicks on images. You have to add a user extension
to the selenium recorder - don't worry, it's javascript, it's easy and
it is somewhere on their site.

* It can't find the elements it's supposed to click on. That's the A
in Ajax - Selenium wants to click on an element as result of a click
on a link or button that is not there yet. You will make good friends
with waitForText or waitForElement which you will have to append
manually to your scripts where you see it fit. This way you tell
selenium to pause the execution until the page has changed into the
state you want it to. You can set timeouts there after which you
assume that your test has failed.

* It hates frames. You will have to come to peace with the setFrame
function which (I don't remember now) is or is not part of the
standard distro. It works more or less like the 'cd' command on the
command prompt where you descent into child frames or navigate up to
the parent frame of the current frame.

* It doesn't do well with closed windows. When you have a listener
that closes a window, you essentially are killing the living space of
Selenium. In this case move the 'close' call to a deferred command.

I'll post more if I can remember anything :)

On Apr 24, 5:05 pm, Mike <ado...@opentext.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
charlie.collins@gmail.com  
View profile  
 More options Apr 24 2007, 4:46 pm
From: "charlie.coll...@gmail.com" <charlie.coll...@gmail.com>
Date: Tue, 24 Apr 2007 20:46:24 -0000
Local: Tues, Apr 24 2007 4:46 pm
Subject: Re: Automated Client Testing
Is that actually testing anything other than "setText(NAME)" is equal
to "getText(NAME)"?  Shouldn't that test set the name to something
else inside of testGreet()?  I did not grab the code (or look at it
for more than 5 seconds), so it may be performing the test, or I may
be flat out wrong.  Even so, I would recommend the name get something
to something different, then you demonstrate updating that something
different via RPC and checking it. (Beyond that I would not recommend
anyone have an RPC call update a UI element directly - but this is
intended to be a simple example I suppose.)

You can (marginally) test UI level events with GWT, but you really are
only testing whether or not the toolkit itself propagates it's own
internal events (not your own code).  You are testing if ClickListener
works, not whether or not your stuff works. And I say marginally
because though there are ways to do it, those ways break down in many
Composite widget situations.

For more testing at the GWT UI level though, see this thread:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa....
Also note my take there that you should not really need to do this.
For that level of "integration" testing Selenium is fantastic.
Because Selenium uses the JS engine in the browser, by driving the
browser, you can test across different platforms and so on from the
integration level (the whole app, and this is similar to, but subtly
different than GWT remote testing).

For individual components, widgets, RPC calls, etc, you can *and
should* test using GWTTestCase.  The key to that though, is to use a
client side model and controller, along with your View, MVC.  This
allows your tests to call the controller and test things. The view
(widget) does not have logic in it that you ever need to fire an event
off of to test. The view widget should just invoke controller methods,
and in some cases listen for model and react to model events
directly.  It should not however "do stuff" in terms of manipulating
the model.  (Test "controller.doStuff()" instead of inside the widget
having to fire - leave the UI to the widget, and move the logic out to
the model, via the controller).

For more on general testing there are a bunch of threads around such
as:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
and:

On Apr 24, 10:21 am, Mark Volkmann <m...@ociweb.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian Bambury  
View profile  
 More options Apr 25 2007, 10:34 am
From: "Ian Bambury" <ianbamb...@gmail.com>
Date: Wed, 25 Apr 2007 15:34:29 +0100
Local: Wed, Apr 25 2007 10:34 am
Subject: Re: Automated Client Testing

Yes, you can do that. I haven't used other test tools with GWT projects, so
I can't compare the ease with which you can do it, though

On 24/04/07, Mike <ado...@opentext.com> wrote:

--
Ian
http://roughian.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Boris Lenzinger  
View profile  
 More options Jun 6 2007, 4:25 am
From: Boris Lenzinger <boris.lenzin...@gmail.com>
Date: Wed, 06 Jun 2007 10:25:19 +0200
Local: Wed, Jun 6 2007 4:25 am
Subject: Re: Automated Client Testing
Hi,

I'm trying to use Selenium to test my application.

I've added identification to some html items, to images, links which
seems to work since I see clicks recorded with correct id.
But now I'm facing the second problem raised in this post: clicks on
image are not recorded. As suggested by George, I went to selenium site
to find out the selenium user extension but saw nothing that can perform
this.
Could you please post the name of this user extension ? or may be I have
to add some code that has been posted somewhere ? then could you post
where to find this ?

Thanks in  advance.

Boris

George Georgovassilis a écrit :

--
Boris Lenzinger
-+-+-+-+-+-+-
CSILL (Société en cours de création)
Site Web: http://www.csill.fr

c/o Telecom Paris - ENST
CICA
2229, route des Crêtes
06560 Valbonne Sophia Antipolis
-+-+-+-+-+-+-


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
George Georgovassilis  
View profile  
 More options Jun 6 2007, 4:36 am
From: "George Georgovassilis" <g.georgovassi...@gmail.com>
Date: Wed, 6 Jun 2007 11:36:22 +0300
Local: Wed, Jun 6 2007 4:36 am
Subject: Re: Automated Client Testing

Hello Boris

If I remember correctly I just followed the instructions [1] in their wiki.

[1] http://wiki.openqa.org/display/SIDE/Contributed+Extensions+and+Formats

On 6/6/07, Boris Lenzinger <boris.lenzin...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
eValid  
View profile  
 More options Jun 22 2007, 8:12 pm
From: eValid <eva...@gmail.com>
Date: Fri, 22 Jun 2007 17:12:13 -0700
Local: Fri, Jun 22 2007 8:12 pm
Subject: Re: Automated Client Testing
eValid is a product that may fill some of the gaps noted above.

* eValid has a bi-directional page map to help identify
  DOM elements.

* eValid has a special ImageClick command to record
  clicks on images.

* eValid handles frame, browser sub-windows, pop-ups
  and the like.

* eValid contains a collection of built-in commands
  to synchronization (including synchronization of DOM
  property values).

You can download your evaluation copy of eValid V7 from:

  http://www.e-Valid.com/Products/Download.7/down.evalid.7.phtml?status...

Full details about the eValid web analysis and testing suite
can be found at:

  http://www.e-Valid.com

On Apr 24, 2:27 am, Mike <ado...@opentext.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nicky  
View profile  
 More options Jun 23 2007, 11:09 am
From: Nicky <karajd...@gmail.com>
Date: Sat, 23 Jun 2007 15:09:24 -0000
Local: Sat, Jun 23 2007 11:09 am
Subject: Re: Automated Client Testing
We are using WATIR http://www.openqa.org/watir/ from the same site. It
has some level of cross browser support but is primarily for IE
control.
I would say the main advantage is that it uses ruby as a DSL and so
the tests read like a testing script. Also no complex setup required
as Selenium does to have a proxy server to bypass the javascript same
site policy

On Apr 24, 11:52 am, George Georgovassilis


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »