-
-
2. Re: Gui test in Seam?
khalidelmeknesi Feb 25, 2008 8:50 PM (in response to khalidelmeknesi)
Siarhei Dudzin wrote on Feb 25, 2008 06:43 PM:
Try SeleniumThx for your help. Can I use it in Eclipse or is it only working in firefox?
I have found also found this test method: FEST Swing Module . Do you know this one?
-
3. Re: Gui test in Seam?
jimk1723 Feb 26, 2008 12:14 AM (in response to khalidelmeknesi)You might also want to check out JSFUnit.
-
4. Re: Gui test in Seam?
svadu Feb 26, 2008 12:26 PM (in response to khalidelmeknesi)
khalid hajjouji wrote on Feb 25, 2008 08:50 PM:
Siarhei Dudzin wrote on Feb 25, 2008 06:43 PM:
Try Selenium
Thx for your help. Can I use it in Eclipse or is it only working in firefox?
I have found also found this test method: FEST Swing Module . Do you know this one?Never heard of the FEST Swing Module...
With Selenium you can record actions in Firefox (only advised for starting and for most simple tests). Those test scenarios can be saved in html format (so it's in somewhat readable form). Or you can convert those test scenarios to a number of programming languages such as java (junit format), c#, ruby, etc.
Once you convert it to junit you can do whatever you want with it. Since it uses real browser for testing (which is slower than many other test frameworks such as WebUnit) you can configure which browser to run (I think it supports at least IE, Firefox and Opera). -
5. Re: Gui test in Seam?
marx3 Mar 20, 2008 10:24 AM (in response to khalidelmeknesi)Selenium seems ok, but it needs many tweaking. For example
-it force you to set explicite id's of objects (if you don't do that, they changes every start of application)
-suggestboxes sometimes end conversation,
-selenium doesn't see clicking of a:commandLink
-i don't know how to reference buttons in table - i can't set id's because it could lead to duplicates id's, without id i can't makeclick
actionAnyway it works - does anybody use it in production environment?
-
6. Re: Gui test in Seam?
marx3 Mar 20, 2008 10:25 AM (in response to khalidelmeknesi)i'm sorry this forum is awful :( It messed up my message
-
7. Re: Gui test in Seam?
stephendv.stephen.twisteddelight.org Mar 20, 2008 1:06 PM (in response to khalidelmeknesi)You could also try:
- Watir wtr.rubyforce.org - which is a Ruby interface to IE, very rich API and has been around a while.
- Watij watij.sf.net - same idea as watir, but the language is java (API is a bit limiting though).
- Canoo webtest: Webtest.canoo.com - write tests using xml (wrapper around htmlunit).
- Htmlunit.sf.net - Plain Java html/http testing framework (JavaScript support is provided by rhino, so not as good as a real browser).
-
8. Re: Gui test in Seam?
pmuir Mar 25, 2008 11:15 AM (in response to khalidelmeknesi)
Marek Nazarko wrote on Mar 20, 2008 10:25 AM:
i'm sorry this forum is awful :( It messed up my messageActually, I expect you messed up your message, the forum isn't actually malicious...
Did you bother to look at the preview before clicking save?
-
9. Re: Gui test in Seam?
svadu Mar 25, 2008 12:07 PM (in response to khalidelmeknesi)Selenium does not force you to use id's. You can also use link text or a path to the html element like this:
selenium.click("//td[2]/a/img")
An it's might be actually a good idea to assign ID's to important elements of your layout.