Defining Tests
Test Templates are made of a series of Test Definition.
A Test Definition is either a user command or an SQL statement.
Use the following steps to create Test Definitions for use in your Automated Testing Templates.
Test Definitions
Navigate to DevOps>MDTest Definitions in MDOpen VSCode.
The following list will appear (if any test defintions are configured)
Select "Add" in the list header:
| Field | Description |
|---|---|
| Description | Add a suitable description |
| Category | Add a category for your own reporting purposes |
| Step Type | Select Command or SQL Statement |
| Timeout in Seconds | Define a limit on how long this step |
| Step Action | Add any appropriate IBM i command or SQL statement here. Wildcards can be used for replacement values. Please ensure any wildcard used in this action, is available at the Application Group and Level for the Automated Test Template it is used in. |
Automated Test Templates
Navigate to Template Settings>Automated Testing in MDOpen VSCode.
The following list will appear (if any test templates are configured)
Select "Add" in the list header:
| Field | Description |
|---|---|
| Template | Unique Template Name |
| Testing Product | Select MDTest |
| Description | Add a suitable description |
| Quality Gate | Activate if you want this test template to act as a quality gate in MDCMS & stop the RFP installation if the test fails |
| Test Frequency | Sets how often this Test Template should be inkoved for each "Unit of Frequency" defined below. E.g. 1 / RFP = Once for each RFP installation. 2 / Object = Every other object 1 / Day = Once per day - The first promotion of objects associated with attributes that use this template, will trigger a run of this template, and not again that day for any object of the same attribute. |
| Unit of Frequency | RFP - per Request for Promotion Object - per Object Day - per Day Manual only |
| Include Recompiles | Select if this test template should be invoked by recompile operations |
| Include Updates | Select if this test template should be invoked by update operations |
| Include Deletions | Select if this test template should be invoked by delete operations |
| Include by Default | If selected this will cause this set of tests to be executed for each RFP created |





