9 Replies Latest reply on Mar 25, 2008 12:07 PM by Siarhei Dudzin

    Gui test in Seam?

    Khalid H Newbie

      Im looking for some information about test an Gui with Seam? Is there somewhere information about it in documentation or other websites? Thank you.


      gr,


      Khalid

        • 2. Re: Gui test in Seam?
          Khalid H Newbie

          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?

          • 3. Re: Gui test in Seam?
            James Kelly Newbie

            You might also want to check out JSFUnit.

            • 4. Re: Gui test in Seam?
              Siarhei Dudzin Apprentice

              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 Apprentice

                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 make click action


                Anyway it works - does anybody use it in production environment?

                • 6. Re: Gui test in Seam?
                  marx3 Apprentice

                  i'm sorry this forum is awful :( It messed up my message

                  • 7. Re: Gui test in Seam?
                    Stephen de Vries Newbie

                    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?
                      Pete Muir Master

                      Marek Nazarko wrote on Mar 20, 2008 10:25 AM:


                      i'm sorry this forum is awful :( It messed up my message


                      Actually, 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?
                        Siarhei Dudzin Apprentice

                        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.