How to Test Processes and Tasks
How to run single Tasks and Processes for testing.
Testing is a core part of building integrations in Frends. The platform provides two complementary testing tools that fit directly into the development workflow: the Test panel in the Process Editor, which lets you verify a single Task's configuration in isolation, and the Run once feature, which executes the full Process so you can validate the complete flow. Used together, they make it straightforward to catch issues early and narrow down problems quickly.
Requirements
Both testing features require an active Agent in the Agent Group you are targeting. Without a running Agent, neither Tasks nor Processes can execute.
To test a Task with the Test panel, the Agent Group must also have the Allow running test Processes setting enabled. This is found in the advanced settings of the Agent Group configuration under Administration > Environments. The default Development Agent Group has this enabled out of the box.
Your Process must be saved before it can be executed with Run once. Frends validates the Process on save, so a successful save confirms the Process is ready to run.
Testing a Task in the Process Editor
When you are building a Process, it helps to know early that a single Task does what you expect. The Test panel in the Process Editor lets you run one Task with sample values, right where you are working, and see what it returns. In this walkthrough we test an HTTP Request Task that fetches customers from an example API. The same steps work for any Task. If you want the technical details of the panel, see Task Unit Testing.
Before you start
You need an Agent running in the Agent Group you test in, and the Agent Group needs the Allow running test Processes setting turned on, as described in the Requirements section above. The Development Agent Group has the setting turned on by default, so you most likely do not need to change anything.
Open the Test panel
Open the Process in the Process Editor and click the Task shape you want to test. In our example this is the HTTP Request Task. The Task parameters open in the sidebar on the right. Scroll to the bottom of the parameters and click Create new test, which is just above Show advanced settings. The Test panel opens next to the Task parameters.

Enter the test values
The Parameters tab has the same fields as the Task parameters, but anything you type here is used only by the test. Your Process is not changed. If the Process normally gets a value from somewhere else, for example from the Trigger or from a Process Variable, type a sample value here instead.
Take a look at the Execute in selected agent group dropdown at the top of the panel as well. It shows where the test runs, and in most cases the Development Agent Group is what you want.

Run the test
Click Run. Frends runs the Task on an Agent in the selected Agent Group, and the outcome appears on the Result tab when the Task is ready. If a test takes longer than you expected, click Stop to end it. You can change the values and click Run again as many times as you like.
What the results look like
Depending on the values and the Task, a test ends in one of a few ways. Here is what each looks like and what to do next.
A successful result
When the Task completes, the Result tab shows the full result object, in the same form you would see in a Process Instance. For our HTTP Request example this includes the response body, and you can expand it to look at the individual properties. If the result looks the way you expected, the Task is ready to be connected to the rest of your Process.

An error from the Task
If the Task itself runs into a problem, the Result tab shows the error message and the details instead of a result. For example, an HTTP Request to an address that cannot be reached ends this way. Read the message, correct the values on the Parameters tab and run the test again.

A reference that is not available
A test runs only the Task, so references to data from other parts of the Process, such as #var, #result or Trigger data, do not work. If a parameter uses one, the test fails and the error is shown on the Result tab. The fix is to type a sample value for that parameter on the Parameters tab. Your Process keeps using the original reference. For example, if a Sleep Task takes its Seconds from #var.seconds, type 2 in the test.
A missing Environment Variable
Parameters can refer to Environment Variables with #env, for example for a password or an API key, and this works in a test. The variable has to be saved first, though. If it is not, the test fails with a variable not found error. Save the variable on the Environment Variables page and run the test again.
When to use something else
The Test panel runs one Task at a time, so it cannot show how Tasks work together, and the Call Subprocess shape cannot be tested with it. To check the whole flow, or to test a Subprocess, use Run once, described in the next section.
Testing the Full Process with Run Once
Once individual Tasks are working correctly, the next step is validating the full Process flow. The Run once feature lets you manually execute any Process without relying on an automated Trigger. This is the primary method for integration testing during development.
Viewing Process Instance Results
After execution, navigate to Process Instances to see the results.
Adjusting Log Levels for Testing
The amount of detail available in a Process Instance depends on the log level set for the Process or its Agent Group. The Default level logs the result of each shape and is sufficient for most testing. Log everything additionally logs all input parameters and does not truncate large values, providing the fullest picture during development. Only errors skips all successful step details and only logs information when an exception occurs.
For testing, Log everything gives the most visibility. You can enable it with a time limit — for example, two hours — after which it automatically reverts to the default. This prevents verbose logging from being left on unintentionally.
Using Promoted Values
Promoted values surface specific data from a Process directly in the Process Instance list without requiring you to open each execution. When a shape is configured to promote its result, the value appears as a searchable column in the list. This is helpful when running repeated test executions and tracking a specific identifier or value across them.
Promoted values are always logged regardless of the current log level, even when the Agent Group is set to Only errors. This makes them a reliable debugging aid in any environment.
Skip Logging for Sensitive Data
When a shape handles sensitive data such as passwords, authentication tokens, or personally identifiable information, you can configure it to skip logging its result and parameters. Each shape includes a Skip logging result and parameters toggle option under Advanced settings.
This option, when enabled, prevents that data from being written to Process Instances. When testing Processes that handle sensitive data, consider using anonymised or dummy values so that full logging can be enabled without exposing real credentials or personal data.
Interpreting Process Test Results
A green Process Instance status indicates a successful execution. A red status means the Process ended with an unhandled error. Click on the failed shape to read the error message and, where available, the stack trace, which typically points directly to the cause.
When a Process completes without errors but produces unexpected results, use the logged Task outputs to trace the data through each step. Compare the input to each shape with its output to identify where a transformation or mapping is producing the wrong value. If no data is shown for a shape, it is likely the log level is set to Only errors and the shape completed without errors. Switching temporarily to Log everything will make all step details visible on the next test run.
Last updated
Was this helpful?












