-
1. Re: selenium testing for richfaces components
ppitonak May 10, 2010 3:29 AM (in response to peterbasutkar)Hi,
unfortunately, there is no compact documentation on Selenium testing in RichFaces. However, you can have a look at Selenium tests for RichFaces demo application ( http://anonsvn.jboss.org/repos/richfaces/branches/community/3.3.X/samples/richfaces-demo/functional-test/) or test for various nested components ( http://anonsvn.jboss.org/repos/richfaces/branches/community/3.3.X/test-applications/seleniumTest/). You can also read about our small library that is being used for testing demo ( http://rik-ansikter.blogspot.com/2010/03/new-richfaces-selenium-library-for.html).
We are now preparing a completely new test suite for RichFaces 4 which will be available soon. Documentation will be available as soon as these tests are created.
-
2. Re: selenium testing for richfaces components
peterbasutkar May 10, 2010 4:22 AM (in response to ppitonak)Hi
Thanks for your valuable reply , when you people are planning to relaese new test suite for RichFaces 4 and its documentation ?,so that we should know how long i have to wait.
-
3. Re: selenium testing for richfaces components
peterbasutkar May 10, 2010 4:30 AM (in response to peterbasutkar)Hi
i am testing my application using selenium and i saw that richfaces using selenium.attachFile() for file uploading(rich file upload),but in my case malformed url exception is coming. my code is as follows
selenium.attachFile("xpath=id('docForm:upload:file')", "file///C:\\abc\\abc.xml");
where "xpath=id('docForm:upload:file')" is the locator and abc.xml file to upload.
Can you tell me is this is right way to give path of file = "file///C:\\abc\\abc.xml" ?
-
4. Re: selenium testing for richfaces components
ppitonak May 10, 2010 4:58 AM (in response to peterbasutkar)try "file://C:\\abc\\abc.xml"
-
5. Re: selenium testing for richfaces components
peterbasutkar May 10, 2010 6:31 AM (in response to ppitonak)Hi
i tried selenium.attachFile("xpath=id('docForm:upload:file')", "file://C:\\abc\\abc.xml"); but it is giving following following exception
com.thoughtworks.selenium.SeleniumException: java.io.FileNotFoundException: C:\Users\sunay\AppData\Local\Temp\c:abc\abc.xml .
-
6. selenium testing for richfaces components
ziedbenghorbel Apr 8, 2011 4:41 AM (in response to ppitonak)Hello,
I made a JSF 2 and Richfaces 4 application, and I began to develop the unit test for the UI. I chosed Richfaces Selenium library but the problem is that I can not find documentation.
Mr Pavlov, here's one year passed since your last message, saying that you working on. I wanted to know if you have a link for a tutorial or a user guide?
Regards.
-
7. selenium testing for richfaces components
lfryc Apr 8, 2011 4:47 AM (in response to ziedbenghorbel)Hi Mohamed, there is entry point for RichFaces Selenium sucessor Ajocado, you can see link to documentation there:
-
8. selenium testing for richfaces components
ziedbenghorbel Apr 8, 2011 5:43 AM (in response to lfryc)Hi Lukas
Thank you for your prompt response But I admit that it all seems to me a bit complicated.Since I just started on Selenium.
If this is abused, can I ask you a simple example of use (Hello world) with Richfaces4, to get started.
Regards.
-
9. Re: selenium testing for richfaces components
lfryc Apr 8, 2011 8:06 AM (in response to ziedbenghorbel)Regrettably I have not simple sample for you.
I can point you to tests which are used for testing RichFaces itself [1],
but you have to be aware that these tests covers components on low-level.
On the other hand you will find there samples for testing almost all aspects found in RichFaces framework.
Hopes this will help you a bit. :-)
The only additional aspect of full-blown application tests is using navigation between pages, I would recommend you using this PageObjects pattern [2] from Selenium project wiki.