Learning objectives

After reading this article, you should be able to:

  • Explain the role of automated test reporting in ECU verification.
  • Identify the information a report should retain for traceability and reproduction.
  • Design a structured test-result data model.
  • Distinguish PASS, FAIL, INCONCLUSIVE and ERROR verdicts.
  • Understand how test logs and communication traces support a result.
  • Plan an HTML or JSON report-generation workflow.
  • Recognize common reporting mistakes and validation checks.

1. Why automated test reports matter

Automated ECU testing can execute hundreds or thousands of test cases. A test runner may know whether an individual check passed, but engineers still need a reliable way to understand what was tested, which configuration was used, what the ECU actually did and why a verdict was assigned.

An automated test report turns execution data into reviewable evidence. A useful report records:

  • Test identity and version.
  • Requirement or verification objective.
  • Preconditions, stimulus and test steps.
  • Expected and observed results.
  • Verdict and failure category.
  • ECU hardware and software baseline.
  • Test bench, tool and configuration details.
  • Start and end timestamps.
  • Supporting logs, traces, screenshots or measurements.

A summary that only says “95 tests passed and 5 failed” is useful for a quick status view, but it is not enough for fault analysis, audit or reproduction. The report must link the summary to the individual test records and their evidence.

2. End-to-end reporting architecture

A typical reporting pipeline separates test execution from verdict calculation, evidence collection, report rendering and archival.

Rendering diagram...

The diagram is a conceptual workflow, not a mandatory tool architecture. A small bench may implement several blocks in one script; a larger automation framework may use separate services or processes.

The key principle is to store structured test data before generating the human-readable report. Avoid making the HTML page itself the only record of the test run.

3. Test execution and result capture

A test execution system typically performs the following activities:

  1. Loads the test definition and its configuration.
  2. Checks preconditions, such as ECU state, network availability and required instruments.
  3. Applies the stimulus or sends a request.
  4. Observes ECU responses, signals, diagnostics or timing.
  5. Evaluates the observed behavior against the acceptance criteria.
  6. Captures logs and supporting evidence.
  7. Stores a structured result record.

Keep the test procedure, measurement, evaluation and report rendering responsibilities separate where practical. This makes it easier to reuse the same result data in an HTML report, a machine-readable JSON export or a central test-management system.

Example test record

A test record should contain enough information to identify the test and explain its outcome. The following is an illustrative JSON structure:

{
  "test_run_id": "RUN-2026-001",
  "test_id": "CAN_MSG_001",
  "requirement_id": "REQ-COM-012",
  "test_name": "Periodic message reception",
  "ecu": {
    "hardware": "ECU_HW_REV",
    "software": "ECU_SW_BUILD"
  },
  "configuration": {
    "database": "network.dbc",
    "bench": "BENCH_01",
    "tool_version": "TEST_TOOL_VERSION"
  },
  "start_time": "2026-11-24T09:00:00Z",
  "end_time": "2026-11-24T09:00:05Z",
  "expected": "Message received within configured limit",
  "actual": "Measured inter-arrival time recorded",
  "verdict": "PASS",
  "artifacts": [
    "logs/test_001.log",
    "traces/test_001.blf"
  ]
}

The identifiers and values above are placeholders for teaching. Replace them with the actual project identifiers, timestamps and acceptance criteria. Do not use a generic timing limit in place of the ECU or network specification.

4. Verdict calculation: PASS, FAIL, INCONCLUSIVE and ERROR

Verdict rules should be explicit and consistent across the test suite.

VerdictMeaningExample
PASSThe test ran successfully and all defined acceptance criteria were metObserved response satisfies the specified requirement
FAILThe test ran and the product behavior violated an acceptance criterionECU response is outside the approved tolerance
INCONCLUSIVEAvailable evidence is insufficient to decide pass or failRequired measurement is missing or the observation window is incomplete
ERRORThe test could not complete correctly because of an execution or infrastructure problemInstrument connection failed or the test runner crashed

A failed precondition should not automatically be recorded as an ECU FAIL. Likewise, a missing instrument reading should not be converted into PASS simply because no failure was observed.

Define how the framework treats skipped tests, blocked tests, aborted runs and retries. If the project uses additional verdict states, document their meaning and their mapping to the report summary.

5. Expected versus actual results

The report should make the reason for a verdict visible. For every important check, retain:

  • The expected behavior and its source requirement.
  • The observed value or state.
  • Units, scaling and tolerance where applicable.
  • The measurement timestamp or observation interval.
  • The comparison rule used to calculate the verdict.
  • The result of the comparison.

For example, a periodic CAN message test might compare measured inter-arrival times against a project-defined interval and tolerance. The report should show the observed timing, configured limit, requirement reference and relevant trace location.

Do not report only “timing check failed.” Include enough data for another engineer to understand the measurement and reproduce the evaluation.

6. Capturing logs and communication traces

Logs and traces provide context that a verdict alone cannot. In automotive ECU testing, evidence may include:

  • CAN or CAN FD BLF/ASC traces.
  • Automotive Ethernet packet captures.
  • UDS request and response logs.
  • Signal measurements and timestamped values.
  • Test-runner logs and instrument status.
  • Screenshots or exported measurement plots.

Preserve original evidence where possible. If traces are filtered, decoded or transformed for presentation, retain the original artifact and record the processing method or tool version.

A report should link to artifacts using stable relative paths, controlled artifact identifiers or repository references. Avoid embedding large raw traces directly into the HTML page; link to them and provide a concise preview or relevant excerpt.

7. HTML report structure

A useful HTML report can be organized into the following sections:

7.1 Run summary

Display the run ID, project, ECU variant, software build, bench, tool version, execution date and overall status.

7.2 Test statistics

Show total tests, passed, failed, inconclusive, errors and skipped tests. Make sure the counts reconcile with the individual test records.

7.3 Test case details

For each test, show the test ID, requirement reference, description, verdict, expected result, actual result, duration and failure reason if applicable.

7.4 Evidence and attachments

Provide links to logs, traces, screenshots and measurements. Label each artifact clearly and ensure the link points to the correct run and test.

7.5 Environment and configuration

Record the hardware, software, database, calibration, test script and tool versions needed to reproduce the run.

8. Example report summary

The following is an illustrative summary layout. The counts are example values, not test results from a real ECU.

MetricExample
Total test cases100
PASS91
FAIL5
INCONCLUSIVE2
ERROR1
SKIPPED1

The total must reconcile:

Ntotal=Npass+Nfail+Ninconclusive+Nerror+NskippedN_{\text{total}} = N_{\text{pass}} + N_{\text{fail}} + N_{\text{inconclusive}} + N_{\text{error}} + N_{\text{skipped}}

A summary should also show the reporting rule used for the overall run verdict. For example, a project may define that any product FAIL makes the run unsuccessful, while infrastructure ERRORs are reported separately. The actual rule must be defined by the test strategy rather than assumed by the report generator.

9. Report generation workflow

A robust implementation can follow this sequence:

  1. Collect structured events: Capture test start, step execution, measurements, verdict changes and completion events.
  2. Normalize the records: Validate field names, data types, units, timestamps and required identifiers.
  3. Resolve evidence references: Associate logs, traces and measurements with the correct run and test case.
  4. Calculate summary statistics: Derive totals from the validated individual records rather than maintaining unrelated counters.
  5. Validate consistency: Check that every test has one final status and that summary counts reconcile.
  6. Render outputs: Generate HTML for engineers and JSON or another approved format for machine integration.
  7. Archive the run: Store report, source data, configuration and evidence under a controlled run identifier.
  8. Publish or export: Make the report available to the intended engineering or test-management workflow.
Rendering diagram...

10. Data validation and report integrity

The report generator should not silently repair missing or inconsistent information. Validate at least:

  • Required test and run identifiers are present.
  • Every test has a defined final status.
  • Start and end timestamps are valid and ordered.
  • Expected and actual values use compatible units and data types.
  • Verdicts follow the approved evaluation rules.
  • Summary counts equal the individual record counts.
  • Artifact references resolve to the intended files.
  • Configuration and software identifiers are recorded.
  • Duplicate test records and unexpected retries are handled explicitly.

If a required field is missing, flag it as a data-quality issue or mark the report incomplete. Do not invent a verdict or fill in a project configuration from assumptions.

11. Traceability and reproducibility

A test report should make it possible to answer:

  • Which requirement was verified?
  • Which test case and test-script version were used?
  • Which ECU hardware and software were tested?
  • Which network database and configuration were loaded?
  • Which bench and instruments were used?
  • What stimulus was applied?
  • What did the ECU actually do?
  • Which evidence supports the verdict?
  • Can the same run be reproduced?

Version the report schema and retain the original structured result data. Keep original logs immutable where required by the project process. Checksums or controlled artifact identifiers can help detect accidental replacement or corruption.

For a regression campaign, retain the baseline and compare results using consistent test identifiers, configurations and verdict definitions. A change in test setup can affect the result and should not be mistaken for a product regression.

12. Common implementation mistakes

MistakeWhy it causes problemsBetter practice
Scraping console text to build reportsText output can change and is difficult to validateUse structured test events and result records
Recording only PASS/FAILThe result cannot be explained or reproducedRetain expected, actual, requirement and evidence
Treating bench failure as ECU failureProduct and infrastructure issues become mixedUse explicit ERROR or infrastructure classifications
Counting verdicts in separate countersSummary totals can disagree with test recordsDerive totals from validated records
Overwriting raw tracesOriginal evidence is lostPreserve originals and record transformations
Omitting configuration versionsA result may not be reproducibleRecord HW, SW, database, script and tool versions
Hardcoding acceptance limitsReports may encode stale or incorrect assumptionsLoad approved limits from controlled test definitions
Linking to unstable file pathsEvidence links can break after archivingUse controlled artifact IDs or stable relative paths

13. Practical example: periodic CAN message verification

Consider a test that verifies reception of a periodic CAN message.

  1. Load the approved network database and test configuration.
  2. Confirm that the ECU and bus are in the required operating state.
  3. Start trace recording before applying the stimulus.
  4. Observe the target message and capture timestamps.
  5. Calculate the measured inter-arrival time using the defined timestamp source.
  6. Compare the result with the acceptance criteria from the project requirement.
  7. Store expected and measured values, units, verdict and trace reference.
  8. Include the relevant trace file and measurement summary in the report.

The report should not invent a universal period or tolerance. Those values must come from the applicable communication requirement, network design or approved test specification.

14. Verification matrix for a report generator

Test areaStimulus or conditionEvidence to capture
Nominal recordComplete valid test resultCorrect fields and rendered details
Missing fieldOmit a required identifierValidation error or incomplete status
Invalid verdictUse an unsupported statusRecord rejected or flagged
TimestampInvalid or reversed start/end timeValidation finding
Count reconciliationSummary differs from individual recordsReport generation blocked or flagged
Missing artifactReference a non-existent traceBroken reference reported
Duplicate recordRepeat a test ID unexpectedlyDuplicate/retry policy applied
Large campaignMany test records and attachmentsPerformance and complete rendering
ReproducibilityRebuild report from archived structured dataEquivalent result and trace references

15. Engineering checklist

  • Test IDs and requirement references are stable and traceable.
  • Preconditions, stimulus and test steps are retained.
  • Expected and actual results are visible.
  • PASS, FAIL, INCONCLUSIVE and ERROR are defined.
  • Infrastructure failures are separated from product failures.
  • ECU HW/SW, database, script and tool versions are recorded.
  • Timestamps and units are validated.
  • Raw logs and traces are preserved.
  • Artifact links resolve after archiving.
  • Summary counts reconcile with individual test records.
  • Report schema and verdict rules are version-controlled.
  • The report can be regenerated from archived structured data.

16. Frequently asked questions

Should the report be HTML or JSON?

They serve different purposes. HTML is convenient for engineers reviewing results in a browser. JSON is useful for machine processing, integration and automated analysis. A system can generate both from the same validated structured result data.

Should raw BLF or ASC files be embedded in the report?

Usually, link to the original trace files rather than embedding large binary artifacts. The report can include a short decoded excerpt or key measurement while preserving the original file separately.

Can an ERROR be counted as FAIL?

Only if the project's documented reporting policy explicitly maps it that way for a particular summary. Keep the original status available so infrastructure and execution problems are not confused with product behavior.

Why store the test configuration?

The same test can produce different results with different ECU software, databases, calibration, instruments or bench configurations. Configuration metadata is essential for interpretation and reproduction.

Can a report prove that an ECU is fully compliant?

No. A report provides evidence for the tests and configurations it records. Overall compliance depends on the defined requirements, coverage, test validity, analysis and the project's verification and approval process.

17. Key takeaways

  • Automated reports turn test execution into traceable engineering evidence.
  • Store structured results before rendering HTML or JSON.
  • Define verdict semantics and separate product failures from infrastructure errors.
  • Retain expected and actual values, requirement links, configuration and timestamps.
  • Preserve raw logs and traces and link them to individual test records.
  • Validate data quality and summary consistency before publishing a report.
  • Archive enough information to reproduce and explain the test run.

Related articles

Further reading

Use the applicable project requirements, tool documentation and standard editions when defining actual test acceptance criteria and reporting obligations.