Overview
The Test Node is a simple n8n custom node designed primarily for demonstration or testing purposes. It takes input data, allows the user to select one of several test options, and passes the input data through unchanged. This node is useful in scenarios where you want to verify workflow behavior, debug data flow, or experiment with different option selections without altering the data.
Practical examples:
- Testing how data moves through a workflow.
- Debugging by isolating and inspecting input at a specific point.
- Demonstrating option selection in a custom node.
Properties
Name | Meaning |
---|---|
Test | Selects one of four test options: - Test 1 - Test 2 - Test 3 - Test 4 |
Output
- The node outputs the same JSON data it receives as input, without modification.
- If an error occurs and "Continue On Fail" is enabled, the output will also include an
error
field containing error details.
Example output:
[
{
"json": { /* original input data */ }
}
]
If an error occurs and "Continue On Fail" is enabled:
[
{
"json": { /* original input data */ },
"error": { /* error details */ }
}
]
Dependencies
- No external services, API keys, or special n8n configurations are required.
Troubleshooting
Common issues:
- If the input data is malformed or missing, errors may occur.
- If "Continue On Fail" is not enabled, the node will stop execution on error and throw an exception.
Error messages:
- Errors are passed through if "Continue On Fail" is enabled; otherwise, they halt execution. Check that your input data is valid and that "Continue On Fail" is set appropriately for debugging.