An assertion checks for errors. if an assertion fails it increases the global assertion count, depending on the weight of the assertion

loadUI Assertion Component
| | Option | Description |
|---|---|---|
| Input | The message to assert. |
|
| Value to test |
Once some component is connected to Assertion component, drop down is populated with values available for validation. User picks the one he wants to validate. | |
| Minimum Value |
All values lesser than this value will be considered as invalid. |
|
| Maximum Value |
All values greater than this value will be considered as invalid. | |
| Number of Assertions Tested |
Shows the number of messages that were tested. | |
| Number of Assertions Failed |
Shows the number of failures that were raised. It depends on other settings if every invalid value will raise a failure or not. |
|
| Reset Button |
Resets the counters. |
|
| Output |
The output giving the info about raised failures. |
|
| Min |
Value of min button. | |
| Max | Value of max button. |
Compact View:

Assertion Compact Component
| | Option | Description |
|---|---|---|
| Input | The message to assert |
|
| The name of the value tested |
Displays the name of the value that has been tested. | |
| Minimum Value |
Displays the minimum value. |
|
| Maximum Value |
Displays the maximum value. | |
| Number of Assertions Tested |
Displays the number of asserted values. | |
| Number of Assertions Failed |
Displays the number of raised failures. |
|
| Output |
The output giving the info about raised failures. |
Settings
The settings for the Assertion Component have two tabs: General and Advanced

Assertion General Properties
| | Option | Description |
|---|---|---|
| Tolerance | The number of incoming messages, within the Time frame, that are allowed to fail before increasing the failure counter. | |
| Time frame | The number of seconds that a failed message will be remembered. | |
| Fail on missing value |
If this is enabled, the assertion will fail if it gets a message that does not contain the value | |
| Sample ID |
If set, only messages with this Sample ID will be evaluated. | |
| Fail on mismatching ID |
If this is enabled, the assertion will fail if it gets a message with the wrong sample ID | |
| Include original message in failure messages |
If enabled, this attaches the failure message to the outgoing message. |

Assertion Advanced Properties
| | Option | Description |
|---|---|---|
| ModelItem.description | Description of the Component | |
| min |
All values lesser than this value will be considered as invalid. | |
| max |
All values greater than this value will be considered as invalid. | |
| failOnMissingID |
Raises a failure if the ID is missing | |
| value |
Value to validate. |
|
| tolerance |
The number of invalid values component must received during the time defined by 'period' parameter for the failure to be raised. |
|
| failsOnMissingValue |
Raises a failure if the tested value is not present | |
| period |
Period (in seconds) |
|
| includeAssertedMessage |
Includes the asserted message in the output | |
| sampleId |
The sample Id expected |
Input:
- Message containing data for analysis
Output
- Assertion Failures
Visible Components
- Weight
- Period
- Reset Button - This will reset all the counters to zero
Counters
- Asserted messages
- Failed assertions
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4
All values that are lesser than this value will be considered as invalid.




