Assertion Component

User rating:
3.8 (4 ratings)

The content on this page is related to a deprecated version of LoadUI, which has been superseded by LoadUI NG Pro in the Ready! API platform. Click here to learn more.

 

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

assertion-component-reference


OptionDescription
1_snag_evi
Input The message to assert.
2_snag_evi 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.
3_snag_evi Minimum Value
All values lesser than this value will be considered as invalid.
4_snag_evi Maximum Value
All values greater than this value will be considered as invalid.
5_snag_evi Number of Assertions Tested
Shows the number of messages that were tested.
6_snag_evi 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.
7_snag_evi Reset Button
Resets the counters.
8_snag_evi Output
The output giving the info about raised failures.
9_snag_evi Min
Value of min button.
10_snag_evi Max Value of max button.

Compact View:

AssertionCompactComponent


OptionDescription
1_snag_evi
Input The message to assert
2_snag_evi The name of the value tested
Displays the name of the value that has been tested.
3_snag_evi Minimum Value
Displays the minimum value.
4_snag_evi Maximum Value
Displays the maximum value.
5_snag_evi Number of Assertions Tested
Displays the number of asserted values.
6_snag_evi Number of Assertions Failed
Displays the number of raised failures.
7_snag_evi Output
The output giving the info about raised failures.

Settings

The settings for the Assertion Component have two tabs: General and Advanced

AssertionSettingsGeneral


OptionDescription
1_snag_evi
Tolerance The number of incoming messages, within the Time frame, that are allowed to fail before increasing the failure counter.
2_snag_evi Time frame The number of seconds that a failed message will be remembered.
3_snag_evi Fail on missing value
If this is enabled, the assertion will fail if it gets a message that does not contain the value
4_snag_evi Sample ID
If set, only messages with this Sample ID will be evaluated.
5_snag_evi Fail on mismatching ID
If this is enabled, the assertion will fail if it gets a message with the wrong sample ID
6_snag_evi Include original message in failure messages
If enabled, this attaches the failure message to the outgoing message.

AssertionSettingsAdvanced


OptionDescription
1_snag_evi
ModelItem.description Description of the Component
2_snag_evi min
All values lesser than this value will be considered as invalid.
3_snag_evi max
All values greater than this value will be considered as invalid.
4_snag_evi failOnMissingID
Raises a failure if the ID is missing
5_snag_evi value
Value to validate.
6_snag_evi tolerance
The number of invalid values component must received during the time defined by 'period' parameter for the failure to be raised.
5_snag_evi failsOnMissingValue
Raises a failure if the tested value is not present
8_snag_evi period
Period (in seconds)
9_snag_evi includeAssertedMessage
Includes the asserted message in the output
10_snag_evi 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.