Peach 2.1 – Mutator Hints
This is the first in several articles covering some of the new features in Peach 2.1 BETA3. In this article I will cover the new <Hint> element. This element was added to allow metadata that can be used by different mutators to be added to the data model. For example, consider this data model:
<DataModel name="FilenameParameter"> <String name="Filename" value="c:\path\file.bin" /> </DataModel>
The Filename string element is a prime candidate for a hint indicating that not only is it a string, it is also a filename. The following is our changed data model that includes a hint:
<DataModel name="FilenameParameter"> <String name="Filename" value="c:\path\file.bin"> <Hint name="type" value="filename" /> </String> </DataModel>
Multiple Hints are allowed per data element. The current set of mutators included with Peach only understand the following hints:
| Name | Value | Description |
| type | path | Indicates a path name |
| filename | Indicates a filename w/path. | |
| xml | Indicates value is XML. Causes the inclusion of the W3C parser tests | |
| hostname | Indicates value is a hostname. |
