2.2.9. The TestSets elementΒΆ

..A Testsets element information item is a child of a ModelUnit element.

<ModelUnit modelid=" " timestep=" " name=" " version =" ">
   ...
   <Testsets>
      <Testset name="" parameterset = "" description="" uri = ""/>
      <Testset name="" parameterset = "" description="" >
         <Test name="">
            <InputValue name="">value</InputValue>
            ...
            <OutputValue name="" precision ="">value</OutputValue>
            ...
         </Test>
         ...
      </Testset>
      ...
  </Testsets>
  ...
</ModelUnit>
  1. A Testsets element MUST contain one or more Testset element.

    A TestSet defines different model unit tests.

  2. Each Testset element MUST have a name, a description and parameterset attributes

    The value of the parameterset attribute MUST already be specified as a value of the name attribute of an Parameterset element.

  3. Each TestSet element MUST contain one or more Test elements

    A Test defines one unit test for the model checking.

  4. Each Test element MUST contain a name attribute and it MAY have description and uri attributes.

  5. Each Test element MUST contain one or more InputValue and OutputValue elements.

    The checking consists of run the model with the values of InputValue elements and compare the result with the values of OutputValue elements.