---
title: "Quality Inspection Test Generation Rules"
app: "Quality Inspector"
section: "Set up"
last_updated: "2026-06-12"
url: "https://insight-works.com/kb/quality-inspector/iwxqigenerationrulelist-page-al/"
---

# Quality Inspection Test Generation Rules

## Quality Inspection Test Generation Rules

A **Quality Inspection Test Generation Rule** defines when Quality Inspector should create a test from a template. A rule connects a Quality Inspection Template to a source table and applies criteria such as source filters, item filters, attribute filters, and automation triggers. When rule criteria match, the configured template is used; when multiple rules match, rules are evaluated by sort order.

### What can be configured

Generation rules control both the template that will be used and the event that should cause test creation.

Default fields include:

| Field | Purpose |
| --- | --- |
| Sort Order | Determines rule evaluation order; the smallest value is checked first. |
| Template Code | Specifies the Quality Inspection Template used when the rule matches. |
| Description | Describes the rule. |
| Intent | Categorizes the rule and controls editability of related trigger fields. |
| Source Table No. / Table Caption | Selects the source table for the rule, such as purchase lines or production order routing lines. |
| Condition Filter | Defines the source-table criteria required for the rule to match. |
| Item Filter | Limits the rule to specific items. |
| Attribute Filter | Limits the rule using item attributes. |
| Activation Trigger | Controls whether and how the rule can be activated. |
| Assembly Trigger | Controls automatic test creation for assembly activity. |
| Production Trigger | Controls automatic test creation for production activity. |
| Purchase Trigger | Controls automatic test creation for purchase/receiving activity. |
| Sales Return Trigger | Controls automatic test creation for sales return activity. |
| Transfer Trigger | Controls automatic test creation for transfer activity. |
| Warehouse Receive Trigger | Controls automatic test creation for warehouse receiving activity. |
| Warehouse Movement Trigger | Controls automatic test creation for warehouse movements. |
| Schedule Group | Associates the rule with scheduled or periodic test creation. |
| Skip Lot Rule Code | Associates the rule with skip-lot behavior. |

### Visible information by default

Rules are listed in sort-order sequence. The page shows core rule identification, source, filters, and trigger fields so you can review which template will be used and which business process can create a test.

### Actions

- **Create/Edit NCR Generation Rule** opens guided configuration for NCR-related generation rules.
- **Create/Edit Production Generation Rule** opens guided configuration for production test rules.
- **Create/Edit Receiving Generation Rule** opens guided configuration for receiving test rules.
- **Create/Edit Warehouse Generation Rule** opens guided configuration for warehouse test rules.
- **Job Queue Entries** reviews scheduled automation entries.
- **Create Another Job Queue** creates another job queue entry for scheduled processing.

### Related documentation

- [Quality Inspector Setup](/kb/quality-inspector/iwxqisetup-page-al/)
- [Create Quality Inspections for Receipts](/kb/quality-inspector/create-quality-inspections-for-receipts/)
- [Use Test Generation Rule Trigger to Automate Creation of Quality Inspection Tests](/kb/quality-inspector/use-test-generation-rule-trigger-to-automate-creation-of-quality-inspection-tests/)
