-
Notifications
You must be signed in to change notification settings - Fork 0
08_FB_Assertion
[[TOC]]
returns : -
This functionblock contains different types
of assertions to use.
| Name | Type | Comment |
|---|---|---|
| o_eState | EAssertion_t | actual state PASSED, FAILED,.. |
| o_u32Passed | UDINT | nb of assertions passed |
| o_u32Failed | UDINT | nb of assertions failed |
returns : BOOL
internal assert value is false
| Name | Type | Comment |
|---|---|---|
| bValue | BOOL | value should be false |
returns : BOOL
internal assert fatal value is false
if this fails the testrun will stop
| Name | Type | Comment |
|---|---|---|
| bValue | BOOL | value should be false |
returns : BOOL
internal assert value is true
| Name | Type | Comment |
|---|---|---|
| bValue | BOOL | value should be true |
returns : BOOL
internal assert fatal value is true
if this fails the testrun will stop
| Name | Type | Comment |
|---|---|---|
| bValue | BOOL | value should be true |
returns : BOOL
this method increments the FAILED-counter
and set the teststate to failed
| Name | Type | Comment |
|---|---|---|
| bFatal | BOOL |
returns : BOOL
this method increments the PASSED-counter
returns : BOOL
assert value is equal
both values are checked if they can be compared
if not a FAILED-FATAL will be the result
| Name | Type | Comment |
|---|---|---|
| Actual | ANY | actual value |
| Expected | ANY | value to compare |
returns : BOOL
assert value is equal
both values are checked if they can be compared
if not a FAILED-FATAL will be the result
| Name | Type | Comment |
|---|---|---|
| Actual | ANY | actual value |
| Expected | ANY | value to compare |
returns : BOOL
assert value is
| Name | Type | Comment |
|---|---|---|
| i_strMessage | StrMessage_t |
returns : BOOL
assert values are not equal
both values are checked if they can be compared
if not a FAILED-FATAL will be the result
| Name | Type | Comment |
|---|---|---|
| Actual | ANY | actual value |
| Expected | ANY | value to compare |
returns : BOOL
assert values are not equal
both values are checked if they can be compared
if not a FAILED-FATAL will be the result
| Name | Type | Comment |
|---|---|---|
| Actual | ANY | actual value |
| Expected | ANY | value to compare |
returns : BOOL
assert pointer are equal
| Name | Type | Comment |
|---|---|---|
| pActual | PVOID | actual value |
| pExpected | PVOID | value to compare |
returns : BOOL
assert value is
| Name | Type | Comment |
|---|---|---|
| pActual | PVOID | actual value |
| pExpected | PVOID | value to compare |
returns : BOOL
assert value is
| Name | Type | Comment |
|---|---|---|
| pActual | PVOID | actual value |
| pExpected | PVOID | value to compare |
returns : BOOL
assert value is
| Name | Type | Comment |
|---|---|---|
| pActual | PVOID | actual value |
| pExpected | PVOID | value to compare |
returns : BOOL
assert pointer is not NULL
| Name | Type | Comment |
|---|---|---|
| pActual | PVOID | actual value |
returns : BOOL
assert value is
| Name | Type | Comment |
|---|---|---|
| pActual | PVOID | actual value |
returns : BOOL
assert value is
| Name | Type | Comment |
|---|---|---|
| pActual | PVOID | actual value |
returns : BOOL
assert value is
| Name | Type | Comment |
|---|---|---|
| pActual | PVOID | actual value |
returns : BOOL
assert value is
| Name | Type | Comment |
|---|---|---|
| r32Actual | REAL | |
| r32Expected | REAL | |
| r32Granularity | REAL |
returns : BOOL
assert value is
| Name | Type | Comment |
|---|---|---|
| r32Actual | REAL | |
| r32Expected | REAL | |
| r32Granularity | REAL |
returns : BOOL
assert value is
| Name | Type | Comment |
|---|---|---|
| r32Actual | REAL | |
| r32Expected | REAL | |
| r32Granularity | REAL |
returns : BOOL
assert value is
| Name | Type | Comment |
|---|---|---|
| r32Actual | REAL | |
| r32Expected | REAL | |
| r32Granularity | REAL |
returns : BOOL
reset the assert instance
returns : BOOL
assert value is
| Name | Type | Comment |
|---|---|---|
| pActual | StringHandle_t | |
| pExpected | StringHandle_t |
returns : BOOL
assert value is
| Name | Type | Comment |
|---|---|---|
| pActual | StringHandle_t | |
| pExpected | StringHandle_t |
returns : BOOL
assert value is
| Name | Type | Comment |
|---|---|---|
| pActual | StringHandle_t | |
| pExpected | StringHandle_t |
returns : BOOL
assert value is
| Name | Type | Comment |
|---|---|---|
| pExpected | StringHandle_t | |
| pActual | StringHandle_t |
returns : BOOL
assert value is
| Name | Type | Comment |
|---|---|---|
| strInput | StringHandle_t | |
| strCompare | StringHandle_t | |
| s16Size | INT |
returns : BOOL
assert value is
| Name | Type | Comment |
|---|---|---|
| var1 | ANY | |
| var2 | ANY |