You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Murat Hazer <mu...@gmail.com> on 2006/08/27 15:14:00 UTC
Selenium and Tomahawk Components
Hi,
I am trying to test my application using selenium IDE, but selenium is not
able to record/test JSCookMenu links.
is there any solution?
regards...
--
Murat HAZER
http://www.projedunyasi.org
Re: Selenium and Tomahawk Components
Posted by Werner Punz <we...@gmx.at>.
Ok, Murat, sorry it took me a day longer, but I sent
you the code give it a try, it should work with selenium
since it uses standard command links as links in the menu.
As for all others, please be patient, the renderer
will be committet, but I have to do some fixup upfront
to remove the one menu per page limitation, if possible.
Murat Hazer schrieb:
> Hi,
>
> I am trying to test my application using selenium IDE, but selenium is
> not able to record/test JSCookMenu links.
>
> is there any solution?
>
> regards...
>
> --
> Murat HAZER
> http://www.projedunyasi.org
Re: Selenium and Tomahawk Components
Posted by Wendy Smoak <ws...@gmail.com>.
On 8/29/06, Murat Hazer <mu...@gmail.com> wrote:
> I think web tests(acceptance tests) are important, and selenium makes these
> tests very easy. I don't have too much time but if you tell me how can i
> contribute i'll try to allocate some time for it...
I think the easiest way would be to deploy the latest
myfaces-example-simple.war, record some tests with Selenium IDE, (and
add comments), then save as HTML and attach it to the issue in JIRA:
http://issues.apache.org/jira/browse/TOMAHAWK-583
You can download a nightly build of tomahawk-examples-1.1.5-SNAPSHOT,
which contains the myfaces-example-simple webapp, here:
http://people.apache.org/builds/myfaces/nightly/
Thanks!
--
Wendy
Re: Selenium and Tomahawk Components
Posted by Murat Hazer <mu...@gmail.com>.
>>Murat, are you able to provide test case for some
>>other components? (Matthias Wessendorf)
Selenium can record t:outputlink and t:datatable and t:datalist and other
simple components but i am not able to try other complex components because
most of the navigation in my application is depend on jscookmenu :( so
selenium can't navigate other pages
>>If you have time and would like to contribute, we'd love to have more
>>Selenium tests for the MyFaces example apps. (Wendy Smoak)
I think web tests(acceptance tests) are important, and selenium makes these
tests very easy. I don't have too much time but if you tell me how can i
contribute i'll try to allocate some time for it...
Thx for replies....
regards...
--
Murat HAZER
http://www.projedunyasi.org
Re: Selenium and Tomahawk Components
Posted by Matthias Wessendorf <ma...@apache.org>.
selenium is an acceptance test tool and seleniumIDE is a firefox extension.
Looks nice, but not used ;)
Murat, are you able to provide test case for some
other components? Tests are not that much available
for tomahawk :( So, I'd like to see work on that area ;)
-Matthias
On 8/29/06, Werner Punz <we...@gmx.at> wrote:
> Murat Hazer schrieb:
> > Hi,
> >
> > I am trying to test my application using selenium IDE, but selenium is
> > not able to record/test JSCookMenu links.
> >
> > is there any solution?
> >
> > regards...
> >
> not sure what selenium is, but the jscookmenu is somewhat problematic
> because it triggers internally a bug in ie, which does not allow outside
> tools to get the ids of the spans which should replace the links.
> (I found that out the hard a few days ago when I was investigating
> a bugreport on the state change notifier not being triggered by the
> jscook menu)
>
> I have a replacement which is not yet fully committable to myfaces
> due to an inherent javascript problem which does not allow more than one
> menu per page.
> But if you need it upfront, send me a private mail, and I will contact
> you regarding it.
>
> The fix is a different menu which basically alters standard datalists
> into menus via a combination of css and javascript, I wrote a renderer
> for that code, and it will be committed once I am done with my backlog.
> But as I said, if you need it upfront, send me a private mail.
>
>
>
--
Matthias Wessendorf
further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com
Re: Selenium and Tomahawk Components
Posted by Werner Punz <we...@gmx.at>.
Murat Hazer schrieb:
> Hi,
>
> I am trying to test my application using selenium IDE, but selenium is
> not able to record/test JSCookMenu links.
>
> is there any solution?
>
> regards...
>
not sure what selenium is, but the jscookmenu is somewhat problematic
because it triggers internally a bug in ie, which does not allow outside
tools to get the ids of the spans which should replace the links.
(I found that out the hard a few days ago when I was investigating
a bugreport on the state change notifier not being triggered by the
jscook menu)
I have a replacement which is not yet fully committable to myfaces
due to an inherent javascript problem which does not allow more than one
menu per page.
But if you need it upfront, send me a private mail, and I will contact
you regarding it.
The fix is a different menu which basically alters standard datalists
into menus via a combination of css and javascript, I wrote a renderer
for that code, and it will be committed once I am done with my backlog.
But as I said, if you need it upfront, send me a private mail.
Re: Selenium and Tomahawk Components
Posted by Wendy Smoak <ws...@gmail.com>.
On 8/27/06, Murat Hazer <mu...@gmail.com> wrote:
> I am trying to test my application using selenium IDE ...
If you have time and would like to contribute, we'd love to have more
Selenium tests for the MyFaces example apps.
I've added a couple for the myfaces-simple app, but got stuck [1] on
the tree2 component which seems to render differently on IE and
Firefox (so XPath expressions won't work) and does not provide unique
ids for all of its elements.
More info here: http://myfaces.apache.org/tomahawk/testing/selenium.html
TOMAHAWK-583 is open for discussion (and patches):
http://issues.apache.org/jira/browse/TOMAHAWK-583
[1] http://www.nabble.com/Testing-the-Tomahawk-components-t2054609.html#a5700999
Thanks!
--
Wendy