-
1. Re: How to automate testing?
ryanyoder Feb 2, 2010 12:56 PM (in response to six-p4ck)Selenium isn't meant to do 1000 user load testing.
jmeter + jsfunit is better for that
But if you want to do selenium with RichFaces pages, that does work.
1. put ids on all your components - this way jid198 wont show up
2. for ajax, you need to download the following extension http://blogs.nuxeo.com/dev/2009/03/selenium-ajax-requests.html
3. use java to run the selenium tests on selenium RC (possibly optional)
I wrote this method in our base junit test class.
When I want to click something that is an a4j command button I use this.
protected static HttpCommandProcessor proc;
protected static DefaultSelenium selenium;protected void ajaxClick(String id)
{
proc.doCommand("watchA4jRequests", null);
selenium.click(id);
proc.doCommand("waitForA4jRequest", inputParams);
}We use Selenium for testing not for load testing.
-
2. Re: How to automate testing?
six-p4ck Feb 2, 2010 1:47 PM (in response to ryanyoder)JMeter does not like interest me.
I have only 1 page with a lot of ajax rerender and i read for JMeter:
JMeter does not execute the Javascript found in HTML pages.
I use rich:datatable with filtres in a dropdown in top of each column and automatic rerender of the datatable
I have many rich:datatable, one table in each rich:tab (in ajax mode)
And each row of each table are editable in a modal.
I'm not sure to be clear but it's a big page with a lot of code and i don't see how to test this page if JMeter don't execute javascript
The JSFUnit live demo seem to be down, i try it tomorrow.
Thx