---
title: "Use Test Generation Rule Trigger to Automate Creation of Quality Inspection Tests"
app: "Quality Inspector"
section: "Set up"
last_updated: "2025-06-06"
url: "https://insight-works.com/kb/quality-inspector/use-test-generation-rule-trigger-to-automate-creation-of-quality-inspection-tests/"
---

# Use Test Generation Rule Trigger to Automate Creation of Quality Inspection Tests

Note: The following article is intended for users with Quality Inspector 7.21 and newer.

The automation trigger fields on the _Quality Inspector Setup_ page define the default trigger value used when creating new test generation rules. The _Quality Inspection Test Generation Rules_ list also provides an _Activation Trigger_ field, which can be used to differentiate between rules that should be used for manual test creation, automated test creation, both manual and automated creation, or disabled rules.

### Create a Test Generation Rule

When creating a Test Generation Rule, the rule’s intent is determined by a combination of the rule’s table and condition filter. For example, the Purchase Trigger is available for rules that use the Purchase Line table, and the Production Trigger is available for rules using the Item Journal Line table and a Condition Filter specifying an Entry Type = Output. Rules continue to be evaluated based on Sort Order.

The Activation Trigger value is also used when determining which rules are considered for a given scenario. Tests are automatically generated from rules that have the _Manual or Automatic_ or _Automatic Only_ value. Tests are generated via a manual action from rules that have the _Manual or Automatic_ or _Manual Only_ value. Rules with an _Disabled_Activation Trigger are not considered.
