« Return to Thread: [1.02] ReferenceError: "navigator" running tests in Rhino

Re: [1.02] ReferenceError: "navigator" running tests in Rhino

by Robert Coup-3 :: Rate this Message:

Reply to Author | View in Thread

On 28/12/2007, James Burke <jburke@...> wrote:
I would like to see a command-line version of a testing tool, but I
expect it to take a form of running the real browser engine, putting
hooks in that engine to collect test results, and then relay those
results to the command line. That would be neat if someone built that,
but it would require a specific wrapper for each browser engine
(probably in C/C++), and to get full test coverage, you would need to
run it on multiple operating systems (since IE 6 for example does not
run on linux or OS X).

Selenium RC [1] does this (also distributed) but we'd need to transform the results of DOH into selenium results - which i suspect wouldn't be too tricky since it can access the DOM and JS context.

Normally Selenium-RC is invoked from a unittest script in another language (java, python, etc) and 'remote controls' the browser. With DOH we could just tell the browser to load the page, DOH would run, then we just interrogate the page for the results.

There's now a rhino library for selenium-rc so we don't need to involved another language. In rhino, we'd have to:
  • Find/specify the test html files to run
  • Invoke the test html files in each browser - with some way of specifying which OS/browsers/versions/hosts/ports to test (config file?)
  • Write some useful reports. I'd imagine that the sexy version could be a grid-enabled page with each test file as a row and browsers listed across the top. Then each doh test could be a row in a subgrid.
/me is off to have a play with the rhino selenium driver

Rob :)


_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest@...
http://dojotoolkit.org/mailman/listinfo/dojo-interest

 « Return to Thread: [1.02] ReferenceError: "navigator" running tests in Rhino

LightInTheBox - Buy quality products at wholesale price