Skip to content

Commit

Permalink
[Feature] Adding Step Endpoint Information (project-chip#35662)
Browse files Browse the repository at this point in the history
* Adding endpoint information to test steps methods and hooks along with logging.

Also, the TC_ACE_1_3 and TC_BOOLCFG_2_1 tests were updated to demonstrate how to
used the updated hooks to inform the endpoint associated with every step.

* Rolling back the test stop unnecessary exception parameter

* Updating TestDecoratorHooks with endpoint as well.

* Minor grammar fix

Co-authored-by: Boris Zbarsky <[email protected]>

---------

Co-authored-by: Boris Zbarsky <[email protected]>
  • Loading branch information
2 people authored and yyzhong-g committed Dec 11, 2024
1 parent 4ae3a7f commit 0b33aad
Show file tree
Hide file tree
Showing 5 changed files with 149 additions and 138 deletions.
4 changes: 3 additions & 1 deletion scripts/py_matter_yamltests/matter_yamltests/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,16 @@ def step_skipped(self, name: str, expression: str):
"""
pass

def step_start(self, request: TestStep):
def step_start(self, request: TestStep, endpoint: Optional[int] = None):
"""
This method is called when the runner starts running a step from the test.
Parameters
----------
request: TestStep
The original request as defined by the test step.
endpoint: int
An optional device endpoint the step will target.
"""
pass

Expand Down
Loading

0 comments on commit 0b33aad

Please sign in to comment.