Test Templates

Overview 

Test templates are building blocks for test cases. A test template simply contains a list of fields (from one or more objects) you specify to test. When you create a test case, you select a test template as the basis for the test case and all the fields specified in the template get included in the test case. You can reuse a test template as the basis for multiple test cases.

For example, create a test template for use with test cases that use the Salesforce CPQ Calculate Quote API to determine if Salesforce updates introduce regressions in your CPQ pricing calculations. Tell Me More

InformationBy storing the list of fields as a template, you can reuse the template for multiple test cases (for example, to test multiple quotes), saving time and eliminating the need to create tests from scratch for each unique test scenario.

A test template consists of:

  • A unique, meaningful name for your template.
  • An optional description.
  • A template type. 
  • A list of the fields to test (including the object each field belongs to).

The Test Templates Page 

To access the page, in the left sidebar of the AppOps Test tab, click Test Templates.

The page displays pertinent information for each test template:

  • Template Name – Specifies the unique, meaningful name of the test template.
  • Template Type – Specifies the type of test template (contract or quote). Options available in the current release are:
    • Contract – Specify fields from the Contract, Asset, and Subscription objects to use to test contract validity.
    • Quote – Specify fields from the Quote and Quote Line objects to test price quote calculation, contract amendment, and contract renewal.
  • Template Description – Specifies the optional description of the test template.
  • Owner – Specifies the Salesforce user who currently owns the test template.
  • Created By – Specifies the user who created the test template.
  • Last Modified By – Specifies the user who last modified the test template.

And has these available actions: