# Testing your workflows

As you build your workflow to prepare for your use or sharing with others, it's important to test it to make sure it functions as expected.&#x20;

While you run completed and de-bugged workflows on the **Run page**, you test workflows of varying stages of development on the **Canvas**.&#x20;

Here are a few best practices to ensure you are testing the workflow:

1. **Use a Test Run to detect errors in the adaptor configuration**&#x20;

Once you add an adaptor to your canvas and the input arguments are programmed, you can use the Test Run button ![](/files/ZYUqXcmMxIuXNwQn0NKK) to test that the adaptor was programmed successfully. Adaptors will outline in green if the run was successful and red if there was an error. If an error occurs, click on the adaptor and the side bar will further explain the source of the error.&#x20;

<figure><img src="/files/THPwFWXkoamDXx3mHYaT" alt="A screenshot of an adaptor with a bold green border indicating that the adaptor was programmed and ran successfully. "><figcaption><p>Successful run</p></figcaption></figure>

<figure><img src="/files/DFbr7q4n26ZNFoFRvwCD" alt="A screenshot of an adaptor with a bold red border indicating that the adaptor was not programmed correctly or did not run successfully. "><figcaption><p>Error with adaptor </p></figcaption></figure>

2. **Use the Test Run Value**

Instead of flipping between the Run page and the canvas to upload your data inputs, you can program in a **Test run value** to continuously test the workflow while it's being developed. The Test run value will be used as the source data for that adaptor or the workflow but it will *not* show up on the Run page.&#x20;

<figure><img src="/files/vjUe5eTjUGNA1k59ZfPr" alt="A screenshot of menu in Data-flo in which a user uploads a default or a test run value. The menu displays these two options for file uploads. "><figcaption></figcaption></figure>

3. **Click data output to check your work as you go**

After each adaptor is populated with the intended arguments and you've clicked the test run button, you can click the data output to see if the data matches the intended format. The output will appear in the side bar menu for you to review.&#x20;

<figure><img src="/files/3dyeoPFzRKG3cKxMz03p" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cgps.gitbook.io/data-flo/basics/combining-adaptors-to-create-workflows/testing-your-workflows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
