ashutosh bijoor schrieb:
> Hi
> With the emergence of web based application services (wont call it
> web2.0) and the prevalent iterative development methodology, there is a
> need for a reliable automated client-side web application testing
> framework. I think jQuery is an ideal tool to help create such a framework.
>
> Here is how I'd like it to work:
>
> 1. Basically one can create a test setup where we load a site /
> application in an iframe. iframe will completely isolate the test bed
> from the site, but one could also create the test framework as a plugin
> that could be loaded within the site.
> 2. The site will be presumed to already have jquery loaded (else one can
> probably load it??)
> 3. Then one can create a test script that runs on the site in the iframe
> like so:
>
> goto({url:"http://..."}); // loads url in iframe
> click({element:'#link1'}); // invoke click event for specified element
> wait_till_loaded({element:'#div1',timeout:3000}); // wait until the DOM
> element with specified id is loaded in iframe, or timeout 3000 msec
> fill_form({form:'#formid',field1:value1,field2:value2...}); // fill in
> form values using deserialize plugin
> submit_form({form:'#formid'}); // submit the form
> wait_till_loaded({element:'#div2',timeout:3000}); // wait until DOM
> element with specified id is loaded in iframe, or timeout 3000 msec
> ....
> and so on.
>
> One could probably use something like the taconite or jXs
> (http://www.brainknot.com/code/jxs.htm) xml syntax instead of the
> javascript syntax above, but I'd prefer to keep if javascript to keep
> the flexibility of creating more complex test scripts.
>
> One could also use a system like above to create self-running demos!
>
> Does anyone know of such a framework that already exists somewhere?
Ashutosh, I think Selenium is pretty much what you want:
http://www.openqa.org/selenium/
It uses iframes to embed a test environment, it has a Firefox extension,
it integrates with Rails, ...
I'm new to it too, but we are going to integrate it for Plazes.
Cheers, Klaus
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/