Home | Trees | Indices | Help |
---|
|
object --+ | extension.Extension --+ | result_reader.ResultReader --+ | file_result_reader.FileResultReader --+ | DejaGNUReader
A 'DejaGNUReader' reads a DejaGNU log file.
The DejaGNU log file may then be processed by QMTest. For example, QMTest may generate results in an alternative format, or display them in the QMTest GUI. Therefore, this reader may be used to obtain the benefits of QMTest's reporting characteristics, when using a legacy DejaGNU testsuite.
Unfortunately, DejaGNU log files are relativley unstructured. Therefore, this result reader uses heuristics that may not always be 100% robust. Therefore, for optimal behavior, DejaGNU testsuites should be converted to QMTest testsuites.
|
|||
Inherited from Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
arguments = [qm.fields.BooleanField(name= "is_combined", title A list of the arguments to the extension class. |
|||
__id_regexp = re.compile("^[^:]*:[\\s]*(?P<id>[^\\s]*)") A regular expression for determining test names. |
|||
__cause_regexp = re.compile("\\((?P<cause>.*)\\)\\s*$") A regular expression for determining failure causes. |
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
Construct a new 'FileResultReader'. 'arguments' -- As for 'ResultReader'. If the file provided is not in the input format expected by this result reader, the derived class '__init__' function must raise an 'InvalidStream' exception.
|
Return the next 'Result' from this reader. returns -- A 'Result', or 'None' if there are no more results.
|
The next DejaGNU outcome in the file. returns -- A triplet ('test_id', 'outcome', 'cause'). The 'test_id' is the name of the test. The 'outcome' is the DejaGNU outcome (one of the 'DejaGNUTest.dejagnu_outcomes'). The 'cause' is a string giving the cause (if known) of failure, if the test did not pass. |
Update 'result' as indicated. 'result' -- A 'Result', which may contain information from previous DejaGNU tests, in the combined mode. 'dejagnu_outcome' -- The DejaGNU outcome (one of the 'DejaGNUTest.dejagnu_outcomes') that applies to this 'result'. 'cause' -- The cause of failure, if known. The 'result' is modified to reflect the new outcome and cause. Results can only get worse, in the sense that if reuslt has an outcome of 'Result.FAIL' upon entry to this return, it will never have an outcome of 'Result.PASS' upon return. |
Returns true in the combined mode. returns -- True iff results should be read in the combined mode. |
Returns true if expected results should be generated. returns -- True iff the results generated should reflect expectations, rather than actual results. |
|
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.
|
__id_regexpA regular expression for determining test names. When applied to an outcome line from DejaGNU, this regular expression's 'id' field gives the name of the test, in the combined mode.
|
__cause_regexpA regular expression for determining failure causes. When applied to an outcome line from DejaGNU, this regular expression's 'cause' field gives the cause of the failure.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Dec 23 12:30:41 2011 | http://epydoc.sourceforge.net |