r4 - 13 Jul 2007 - 11:01:09 - MimiYinYou are here: OSAF >  Projects Web  >  QualityAssuranceTeam > BroadswordTestRunner

Broadsword -- testrunner Documentation

Where is testrunner

testrunner lives in the tools repository under the broadsword project.

svn co svn+ssh://svn.osafoundation.org/svn/tools/broadsword/trunk/testrunner.py testrunner.py

What is testrunner

testrunner is a script that allows one to run one test, or a suite of tests from the command line and specify any parameters you need. This simplifies the testing process by allowing a tester to run many tests quickly from the command line, changing parameters as needed.

What is defined in testrunner

testrunner has the following methods:

run_test method: This takes a module and a test as parameters, instantiates the test class and runs the test with the arguments either passed or defaulted by the user.

run_suite method: This method takes a dictionary of tests and runs each one, generating and keeping track of output. When the whole suite of tests has been run by calling run_test for each, a final summary of results is displayed.

How do I use testrunner

A guide to running tests with testrunner.py

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r4 < r3 < r2 < r1 | More topic actions
 
Open Source Applications Foundation
Except where otherwise noted, this site and its content are licensed by OSAF under an Creative Commons License, Attribution Only 3.0.
See list of page contributors for attributions.