What is Peach
Installing
Tutorials
Methodology
Introduction
Training
Enterprise
FAQ
Support Forums
Peach 3
Peach Pits
 General Conf
 Data Modeling
 State Modeling
 Agents
  Monitors
 Test
  Publishers
  Loggers
Running
Minset
Peach 2.3

License

Minimum Occurrence Attribute

The occurrence attributes are used to define how often an element can occur. The maxOccurs attribute specifies the maximum number of times an element can occur. The occurrence attributes maxOccurs and minOccurs can be combined to provide the occurrence range of an element. Occurrence attributes are used when cracking and producing/mutating data. Internally Peach will treat this element as an array.

Related attributes: minOccurs, occurs.

Examples

<!-- Can occur a maximum of two times -->
<Block name="OtherThings" maxOccurs="2">
  <String name="A" value="A" />
  <String name="B" value="B" />
  <String name="C" value="C" />
</Block>

<!-- Can occur a maximum of 1000 times -->
<String name="OptionalValue" maxOccurs="1000" />