Home | Trees | Indices | Help |
---|
|
object --+ | extension.Extension --+ | runnable.Runnable --+ | test.Test --+ | ExecTestBase --+ | ShellScriptTest
Check a shell script's output and exit code.
A 'ShellScriptTest' runs the shell script provided and compares its standard output, standard error, and exit code with expected values. The shell script may be provided with command-line arguments and/or standard input.
QMTest determines which shell to use by the following method:
|
|||
Inherited from Inherited from Inherited from |
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
arguments = [qm.fields.TextField(name= "script", title= "Scrip A list of the arguments to the extension class. |
|||
_allow_arg_names_matching_class_vars = 1 True if it is OK for fields to have the same name as class variables. |
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
Run the test. 'context' -- A 'Context' giving run-time parameters to the test. 'result' -- A 'Result' object. The outcome will be 'Result.PASS' when this method is called. The 'result' may be modified by this method to indicate outcomes other than 'Result.PASS' or to add annotations.
|
Return the shell to use to run this test. 'context' -- As for 'Test.Run'. returns -- A sequence of strings giving the path and arguments to be supplied to the shell. The default implementation uses the value of the context property 'ShellScriptTest.script_shell', or, if that is not defined, a platform-specific default. |
|
argumentsA list of the arguments to the extension class. Each element of this list should be an instance of 'Field'. The 'Field' instance describes the argument. Derived classes may redefine this class variable. However, derived classes should not explicitly include the arguments from base classes; QMTest will automatically combine all the arguments found throughout the class hierarchy.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Dec 23 12:30:40 2011 | http://epydoc.sourceforge.net |