Test cases specify parameters for evaluating the accuracy of a particular configuration during future test runs. When you create a test case, you select a test template as the basis for the test case, which flags all the fields specified in the template as fields to test in the test case. During save, Test executes the test case and stores the results of running the test case as baseline values for future comparison.

For example, create a test case for use with the Salesforce CPQ Calculate Quote API to determine if Salesforce updates introduce regressions in your CPQ pricing calculations.

A test case consists of:

Create a Test Case

To create a test case:

  1. From the Test Cases page, click New Test Case.

  2. Type a meaningful Test Case Name and Description.

  3. Select the Environment that you will provide the record ID to test against from

  4. In the Function list, select the function the test case executes. Options available in the current release are:

  5. In the Test Template list, select a test template to be the basis of the test case.

  6. In the ID box, enter the ID of the quote record, contract record, or advanced approval record depending on what function you’d like to test.

    <aside> <img src="/icons/info-alternate_blue.svg" alt="/icons/info-alternate_blue.svg" width="40px" />

    You can find the 18-character ID in the address bar of your browser when looking at the quote record in Salesforce. For example, a1T4T000000QNBfUAO.

    </aside>

  7. For amend and renew, creating a test case includes creating a quote record and an opportunity record as part of capturing the baseline values. To retain (not automatically discard) these created records, select Keep Created Records.