Class: FileContentsTest | qm/test/classes/file.py | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Check that the contents of a file match the expected value. A The path to the file itself is not specified explicitly in the test. Instead, it is taken from a contex property; the name of that variable is specified in the Path Property field. Optionally, the test may specify one or more substitutions. Each substitution consists of a regular expression pattern and a replacement string. Both the actual file contents and the expected file contents are processed with these substitutions, with all pattern matches replaced with the corresponding substitutions, before the comparison is performed.
|