To create a test template:
- From the Test Templates page, click New Template.
- Type a meaningful Test Template Name and Description.
- Select a Template Type. 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 Quot, Quote Line, Opportunity, Opportunity Product and Account objects to test price quote calculation, contract amendment, and contract renewal.
- For each object in the Available Objects list:
- Select the object from the list to display the fields for that object.
- Select the fields to include in the test template.
For more-refined access to the fields in the table:- In the filter box, type field label and API name strings to filter the rows that appear in the fields table.
- In the field table, click any column heading to sort the table on that column.
- In the filter box, optionally type field label and API name strings to filter the rows that appear in the fields table.
- To save, either:
- Click Save to save the test template and return to the Test Templates page.
Or: - Click Save & New to save the test template and start creating a new template.
- Click Save to save the test template and return to the Test Templates page.
Even though you can select all fields for the Quote and Quote Line objects while creating a quote test template, the related Salesforce CPQ APIs used by test cases do not return values for all fields. Refer to Adding Reference Fields for details.