John J Lee wrote:

 How is this an improvement on the earlier idea of adding a little
 support for writing tests in JavaScript? I imagine such support
 would be very simple to implenent (perhaps it's already there and
 only needs documenting, or simply a published example or two).

It would be great if we could write tests in plain old JavaScript. However, I don't think it would be quite as easy to implement as you think.

The main challenge is that the test must frequently "suspend" itself to allow browser operations (e.g. opening a page) to complete. If in-browser JavaScript supporting threading, it would be fairly straightforward, but since it doesn't, it's pretty hard to use JavaScript itself for flow-control, and we're pushed into the kind of interpreted, event-based control model we currently have with the table-driven TestRunner (or Jason's wacky, retro, Hypercard re-invention :-).

If we want to use a "real" language for testing, I suspect we're not going to be able to do much better than the externally-scripted RPC-driven mode (via SeleneseRunner), which essentially adds a test "thread" as a separate process.

All that said: if you can think of a way to do it purely client-side with JavaScript, that'd be fantastic!

--
cheers, MikeW                            http://www.dogbiscuit.org/mdub/

_______________________________________________
Selenium-users mailing list
Selenium-users@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users

Reply via email to