To define what test data is required to be used by a model you need to attach waypoints into your model, the Test Modeller pallet is shown below:
There are two ways to do this, Manually and Automatically:
You can drag a waypoint from the pallet onto the model, as shown below:
Click on the waypoint, in the example above it is ‘Find Campaign’, and go to the Test Automation Tab, then click on actions and add some external automation:
To begin with, set the object module. Click on the drop down and select the ‘Core Test Data Catalogue’ with the data lookups:
Then, for the function, pick the test data type you need and click ‘Save’. You will now be prompted to map the Data Variables in the model:
Inputs are values that you will use to lookup the data with that criteria. Outputs are the returned values from the criteria.
So for example, I need an Opportunity ID which has the Type, Stage and Source set:
These input variables are defined by the model. If the input and output variables do not exist you must define them using the data tab.
To save time, you can automatically import a test data type from the Test Automation tab, click on ‘Modules’ and choose ‘Data Catalogues’. Here, select your Test Data Type and import it to the model:
A waypoint will be automatically added to your model. In addition, Data Variables and a block per variable will automatically be created for you, this is shown below:
The Parameters to the Data lookup are set automatically:
This is a much faster and more efficient way to set up ‘Find and Make’ Test Types in Test Modeller.
TEST DATA AUTOMATION TEST DATA ALLOCATION FIND AND MAKES