Test a Workflow

MESA's Test feature is a handy way to test a workflow and see how it runs. This feature lets you test using recent data, example data, or custom data. A payload refers to the data that is used to trigger the workflow.

This article will go over three different ways you can test your workflows. It will also go over some additional insights on testing.

Run a test

To test a workflow, you can click the Test button at the top of the workflow.

A Test workflow menu will appear on the right-hand side with plenty of features to play with.

🗒 Note: When using the Test workflow menu's Filter field and testing a workflow that starts with a Shopify trigger, only 250 results will display. A "No matches found" message will display if no results can be found.


Test a workflow with recent data

You can see your store's recent data for your workflow if they are available under the Recent Data title.

After choosing a recent data selection, MESA will display all the information that relates to the data. 

You can click on the Start Test button in the bottom-right corner if you do not wish to modify the data that MESA processes. 

MESA will run the workflow as if the workflow was enabled. Therefore, make sure you are comfortable with the output of the test. 

Not comfortable enough to run a test? Click here to learn how to halt any workflows.


Test a workflow with example data

By clicking on the Use example data link, Mesa will use pre-defined data that you can use to test your workflow. 

The example data is standard for each MESA trigger and does not contain your store's live data. Therefore, running a test may result in an error depending on the steps in the workflow.

Example data is useful when the workflow does not rely on obtaining data from your store. For instance, if you were trying to send a Slack message every time a product was created then the example data would work well.

You can click on the Start Test button in the bottom-right corner if you do not wish to modify the data that MESA processes.

MESA will run the workflow as if the workflow was enabled. Therefore, make sure you are comfortable with the output of the test.

Not comfortable enough to run a test? Click here to learn how to halt any workflows.


Test a workflow with custom data

By clicking on the  Advanced link, MESA will let you paste your own custom data to run a test. Access to data and familiarity with your trigger's data structure is preferred when using this method.


View the test's status

After you click on the Start Test button, MESA will show you your test's status. If you see the Running status, this means that MESA is still processing the test.

You will see a Test successful banner appear once the workflow ran as expected. 

If one of the steps in the workflow has a red background, that means MESA ran into an error. 

The above screenshot shows a test ran on the Send a Slack message when a Shopify order is paid template. This error occurs when you have not created or selected a Slack credential

🗒 Note: See an error occur in your test run? View this article for more information on how to troubleshoot the error.


Edit the data's information

If you wanted to modify the data, you can hover over one of the data labels until you see a ( + icon or pencil icon) and the red X icon.

  • Red x Icon: To delete the specific data
  • Pencil icon: Edit the value next to the specific data
  • + Icon: Advanced usage to add keys (names) and values to objects


Don't want MESA to run a test all the way through to the last step?

The Approvals by MESA app can pause any workflow and require manual approval in order to proceed to the next step in your workflow. You can add an Approval step to any workflow to verify that everything is working or verify the data that is being used.

Once the Approval step has been added to a workflow, you can easily monitor it through the Approvals tab.

For example, an Approval step has been added into MESA's existing Send a Slack message when a Shopify order is paid template. Learn more about the Approval's settings.

After starting a test, you can go to the Approvals tab and view the pending approval within your workflow. 

You can click on the Reject button to stop the workflow or click on the Accept button to let the workflow proceed to the next step. Alternatively, you can click on View Details to view the details of the approval.