...
API | Notes |
---|---|
| Get all headers of a message. |
| Get value of a message header Parameters
|
| Set the value of a message header Parameters
|
| Adds output that is recorded during execution and shown in the processing report. Parameters
|
| Set the processing outcome of the script Parameters
|
| See below. https://nodejs.org/api/assert.html |
| Regular expressions can be evaluated within the script. This is often used for searches within string values for matching content. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp for more information. |
Assertions
Textual Assertions
See https://nodejs.org/api/assert.html for full Assert API documentation.Textual Assertions
Code Block |
---|
assert.equal('The actual value', 'An expected value', 'Helpful message'); |
...
Running the above Test Script example against any email will produce the following output :
...
If (if you do not with to provide a message you can simply omit it.)
Code Block |
---|
assert.equal('The actual value', 'An expected value'); |
...