Test

A simple test node

Overview

This node is a simple test utility designed to output a customizable message along with a success flag and a timestamp. It processes each input item independently, generating an output object that includes the user-defined message, a success indicator, and the current timestamp in ISO format.

This node is beneficial for testing workflows, debugging, or as a placeholder during development when you want to verify data flow or node execution without performing complex operations.

Example use cases:

  • Outputting a static or dynamic message to confirm workflow execution.
  • Adding timestamps to track when certain parts of a workflow run.
  • Testing error handling by modifying the message property or simulating failures.

Properties

Name Meaning
Message The text message to output. Default is "Hello from Test Node".

Output

The node outputs an array of JSON objects, one per input item, each containing:

  • success (boolean): Always true indicating the operation succeeded.
  • message (string): The message provided via the input property.
  • timestamp (string): The ISO 8601 formatted date-time string representing when the node processed the item.

If the node is configured to continue on failure and an error occurs, the output for that item will contain an error field with the error message instead.

No binary data is produced by this node.

Dependencies

This node does not require any external services, API keys, or special environment variables. It operates entirely within the n8n environment.

Troubleshooting

  • Common issues:

    • If the node throws an error, it might be due to unexpected internal exceptions, but given its simplicity, errors are unlikely unless there is an issue with the n8n environment itself.
  • Error messages:

    • Errors will be caught and included in the output if "Continue On Fail" is enabled; otherwise, they will stop execution.
    • Typical error messages would relate to parameter retrieval failures, which are rare here since the only parameter is a simple string.

Links and References

Discussion