PDA

View Full Version : Has Anyone tried Automated Functional Testing of ExtJS? Any suggested free tools?



Acheng
9 Jul 2009, 1:19 PM
I am wanting to automate the testing of some extjs. For example I have a EXTJS that uses the tree functionality and I want something that can click on the "+" and then verify that the tree opens and there are the expected strings inside.
I'm not sure what a good tool would be but only IE7 is supported so I don't think selenium works.

nanotron
10 Jul 2009, 1:03 AM
Hi,

maybe this: http://en.web2test.de/.
I haven't try it myself. But its not free...

Cheers

Condor
10 Jul 2009, 1:17 AM
Selenium (http://seleniumhq.org/)

Here is a blog entry (http://extjs.com/blog/2008/11/03/testing-ext-js-ext-gwt-applications-with-selenium/) on how to use it to test Ext projects.

GeorgeZ
15 Jul 2009, 4:47 AM
@ Condor: How well does Selenium work with ExtJs?
In the following blog article the author tried to automate/test the ExtJS examples with Selenium (apparently) based on the blog information but encountered several problems.

https://blog.coremedia.com/cm/post/2859817/WebTestAutomation_Selenium_vs_Windmill_vs_QFTest.html
(for more information see the PDF file comparing the results of qf-test/windmill/selenium)

According to your experience with selenium and ExtJs: Are these problems of selenium interacting with the ExtJs examples general problems (reproducible) or are they caused by an inappropriate use of Selenium?

Condor
15 Jul 2009, 6:06 AM
You can test Ext with Selenium RC, but you can't use Selenium IDE in most cases, because components use generated ids.

You will need to:
- give more of your components an id so you can identify them in the DOM.
- have some knowledge of the DOM structure that components create to know the correct selector for interacting with them.
- know how to use the Selenium waitForXXX commands (that is the main problem the blog writer had).
- modify the Ext code sometimes to generate identifiable DOM elements (this shouldn't happen very often and you could post a bug or feature request if you feel that the change would be generally beneficial).

GeorgeZ
15 Jul 2009, 6:28 AM
Thank you for the quick feedback.