---
schema_version: "1"
id: f9bc5b6ed6c3b304709ecfef227d18ea51fa15bb5482fe395f56a4f1b7ce00ae
title: Assert Action for Integration Procedures
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_assert_action_for_integration_procedures_50585.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_assert_action_for_integration_procedures_50585.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: f5f96a718270afde4e24101db8a1942ee11af037fc09b4762854902402ca7dd1
description: The Assert Action compares the expected and actual results of a Test Procedure using an expression that evaluates to true or false. You can use environment variables in the Assert Conditional Formula to test performance.
products:
  - Omnistudio
release: "264"
---
# Assert Action for Integration Procedures

The Assert Action compares the expected and actual results of a Test Procedure using an expression that evaluates to true or false. You can use environment variables in the Assert Conditional Formula to test performance.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col>
        <col>
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d40559e34">
            <p style="margin-bottom:0;">Property</p>
          </th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d40559e40">
            <p style="margin-bottom:0;">Description</p>
          </th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d40559e34 ">
            <p style="margin-bottom:0;">Assert Conditional Formula</p>
          </td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d40559e40 ">
            <p style="margin-bottom:0;">Expression that tests results of previous steps and evaluates to true or false. If
              the result is false, the <samp class="parmname">assertResult</samp> for the Assert Action is
              set to <code>false</code>. This sets the <samp class="parmname">testResult</samp> for the
              Test Procedure to <code>failed</code>.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d40559e34 ">
            <p style="margin-bottom:0;">Assert Failure Message</p>
          </td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d40559e40 ">
            <p style="margin-bottom:0;">Message that explains why the test failed.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d40559e34 ">
            <p style="margin-bottom:0;">Fail Test On Assert</p>
          </td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d40559e40 ">
            <p>If checked, the Test Procedure stops and returns the result of the transaction if
              the Assert Conditional Formula evaluates to false.</p>
            <p style="margin-bottom:0;">If not checked, the Test Procedure continues running even if the Assert Conditional
              Formula evaluates to false.</p>
          </td>

        </tr>
      </tbody>
    </table>

#### See Also

- [Test Procedures: Integration Procedures for Unit Testing](https://help.salesforce.com/s/articleView?id=xcloud.os_test_proceduresintegration_procedures_for_unit_testing_55410.htm&release=264.0.0&type=5 "An Integration Procedure that performs a unit test is a Test Procedure. You can use a Test Procedure to unit test almost anything an Integration Procedure can invoke, such as an Omnistudio Data Mapper, a Calculation Matrix, an Apex class, or another Integration Procedure.")