Writes an error to the log and throws an exception if regex doesn't match testValue.
Writes an error to the log if expectedString fails the Prototype isString method. Returns String containing the error message written to the log.
Parameter | Type | Description |
---|---|---|
regex | Regex | Regular expression to match. |
textValue | String | String to match against regex. |
message | String | Custom message to use if the assertion fails. Message will be run through template evaluation against messageProperties so you can include details of the assertion failure in the message. |
messageProperties | Object | Object containing values to use with template evaluation. |
0 Comments