Test Cases and Defect Analysis for Unit Testing and Component Testing: Workflow Orchestration

Data for this category originates primarily from code repositories, test framework reports, requirement specifications, and interface definitions.

What the data for this category looks like

Data for this category originates primarily from code repositories, test framework reports, requirement specifications, and interface definitions. Update frequency is daily or per code commit. Daily associated documents include test cases, coverage reports, Mock instructions, and defect tickets. Test case fields include case ID, preconditions, expected behavior, and execution results. Coverage reports include quantitative metrics such as code line coverage and branch coverage. Mock instructions include input parameter rules and return value definitions for mock objects. Defect tickets include defect severity, reproduction steps, and associated case ID.

Data for this category is updated frequently, and associated documents have inconsistent formats. This creates multiple constraints for workflow orchestration. First, data updates occur per code commit or daily. Workflows must be configured to trigger pulls of the latest code repository and test report data, to avoid information lag from static caching. Second, field formats vary significantly across documents such as test cases, coverage reports, and defect tickets. Workflows must be configured with field mapping rules to enable automatic association between different documents. Additionally, test data construction and failed case localization take substantial time. Workflows can integrate preset nodes to automatically generate Mock data or trace associated code commit records for failed cases.

How to configure the settings

Configuration ItemRecommended ApproachRationale
Trigger ModeTrigger on code commit events, or scheduled trigger at 2:00 AM dailyAdapts to the daily/per-commit update frequency of data in this category, ensuring workflows use the latest test and code data
Variable Configuration variablesBind test case IDs and defect ticket associated fieldsEnables automatic association between test cases and defect tickets, matching the association requirements of documents in this category
Node ID nodeIdAssign a unique identifier to each functional nodeFacilitates workflow debugging and data transfer between nodes, avoiding node identification conflicts
Failure Handling StrategyTrigger an alert and pause subsequent nodes, or skip failed nodes and continue executionAdapts to the consequences of errors in this category; select the corresponding logic based on business scenarios
Data Pull ScopePull test reports from the last 1 commit, or defect ticket data from the last 7 daysCalibrated based on actual testing, avoiding workflow timeouts caused by pulling excessive data
Field Mapping RulesMap test case IDs to the associated case fields of defect ticketsMatches the field structure of documents in this category to enable automated association

This page's configuration applies to FastGPT v4.17.0.

Three Common Misconfigurations

  • Symptom: After local deployment, opening the workflow page displays a console error: Cannot read properties of undefined (reading 'incl'). Cause: Associated fields for the variables parameter are not configured correctly, causing the workflow to attempt reading uninitialized variable properties.
  • Symptom: After creating a plugin, referencing it in another workflow and connecting a code execution node triggers an error prompt during configuration. Cause: A unique nodeId is not assigned to the plugin node, preventing the workflow from recognizing the plugin's input and output mapping relationships.
  • Symptom: After creating a workflow template and entering the edit page, the page loads slowly or function buttons become unresponsive. Cause: High-frequency updated data pull rules for this category are not adapted, causing the workflow to pull excessive test report data and trigger a timeout.

How to Confirm the Configuration Is Correct

  • Trigger the workflow once, and verify that it automatically pulls the latest code commit and test report data.
  • Review the workflow's field mapping configuration to confirm that the association between test cases and defect tickets matches expected behavior.
  • Simulate a failed test case execution scenario, and verify that the failure handling strategy triggers the configured corresponding action.
  • Check that the variables and nodeId parameters for the workflow are correctly configured, with no null values or duplicate identifiers.

The values provided are common starting points and should be measured against the reader's own samples.

Question material comes from public community discussions. Configuration values are common starting points and should be measured against your own samples. Verified on 2026-10-19.