[Windmill-dev] JS test suite or test setup/teardown

Mikeal Rogers mikeal at osafoundation.org
Thu Dec 20 15:52:34 PST 2007


> What would this look like being called inside a running shell with  
> run_js_test_dir?

That's a good question :)

We have a lot of different options intertwining. I'll definitely be  
renaming that shell function, and it'll take keyword options for all  
these option parameters, I'll send mail to the list when i have an  
example.

In the mean time I reworked the windmill command line help a little as  
it was getting pretty cluttered. Here is what the new help looks like  
with the new command line options.

$  
windmill 
                                                                                                            [15 
:47]
windmill web test automation system.
     windmill [-cdelptmxs] action [option=value] [firefox|ie|safari] [http://www.example.com 
]

Available Actions:
     shell         Enter the windmilll shell environment (modified  
python shell).
                   Uses ipython if installed. Exit using ^d
     run_service   Run the windmill service in foreground. Kill using  
^c.
     wx            Run the wxPython based graphical interface for the
                   windmill service. Still experimental.

Available Options:
     (browserdebug=)  Enable browser debugging.
         Python tests will all load in to the server at once. Defaults  
to False
     (c, continueonfailure=)  Keep the browser running tests after  
failure. Defaults to False
     (d, debug=)  Turn on debugging.
     (e, exit=)  Exit after all tests have run.
     (extensions=)  The directory containing any windmill javascript  
extensions.
     (jsdir=)  JavaScript Test Framework :
         Root directory of JavaScript tests.
     (jsfilter=)  JavaScript Test Framework :
         Filter tests, example; ns:test_login,tests:test_user.
     (jsphase=)  JavaScript Test Framework :
         Specify the phases the framework should run example;  
setup,test,teardown
     (l, loadtest=)  Run the given test file/dir
     (loglevel=)  Log level command, sets the global logging level.
     (p, pdb=)  Enable pdb debugging when running python tests.  
Defaults to False
     (t, test=)  Run the given test file/dir
     (m, firefox=)  Start the firefox browser. Defaults to False
     (x, ie=)  Start the internet explorer browser. Windmows Only.  
Defaults to False
     (s, safari=)  Start the Safari browser. Mac Only. Defaults to False
     (usecode=)  Use the code module rather than ipython. Defaults to  
False

Keep in minds that the wx option will be going away soon, as  
wxWindmill will be it's own module/project and have it's own command  
line.

-Mikeal



More information about the Windmill-dev mailing list