project-chip / project-chip/matter-test-scripts

Python script evidence of input/output for validation.

Open
#159 6 comments 0 reactions 1 assignee View on GitHub

@SamCullen-Element is already working on this.

Since Feb 22, 2024.

Awaiting Originator Feedback Matter_1.3
Dominant language
Python
Stars
19
Forks
7
Avg merge
3d 17h
Merged PRs (30d)
3

Description

When validating a python script during a Test Event or SVE, the python script does not provide supporting evidence to show that it is conforming to the test plan and does not provide evidence to support the reported verdict.

Description:

When reviewing the output from a python script test case there is a common theme that there is no log of the command that was issued by the test harness and no log of the returned value from a sample.

A script that was previously validated, but has been changed, excluding through the CCB process as this is slightly different, does not usually inherit its previously validated state under normal CSA rules. As a result, and following usual processes, these scripts become provisional again and need to be revalidated.

Example 1: python output.
Python output

A primary part of the requirements for a reviewer in a Test Event or SVE is to validate that the scripts going through testing are correct and the evidence for this is the log of that test case which is submitted for review. These logs are the primary evidence the CSA has historically used to show that test cases and test scripts are compliant and validated. The issue here is that the log does not provide evidence to show that the step has been run accurately and it does not show the values of attributes when read from a sample that would confirm the accuracy of the PASS/FAIL verdict presented by the script.
This means that a reviewer would not be able to confidently agree with the test or its verdict, either in an event or a live certification or a recertification review.

To satisfy the proof of evidence we would need the script output log to show the command issued from a test harness, such as with Example 2. and the response data from the sample that is assessed to generate the PASS/FAIL verdict, such as with Example 3.

Example 2: evidence of issued command.
YAML evidence of issued command and values

Example 3: evidence of sample response to support a verdict.
YAML evidence of return value

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.