8000 [TC-CLCTRL-4.1] Add python test script based on test plan by uebati-siegenia · Pull Request #38427 · project-chip/connectedhomeip · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[TC-CLCTRL-4.1] Add python test script based on test plan #38427

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

uebati-siegenia
Copy link
Contributor
@uebati-siegenia uebati-siegenia commented Apr 16, 2025

This PR adds python script for testing the Testcase TC-CLCTRL-4.1. This script should test the functionality of the MoveTo command with different positions as attribute value.

Testing

@github-actions github-actions bot added the tests label Apr 16, 2025
Copy link

PR #38427: Size comparison from e42d6b1 to 1344452

Full report (1 build for stm32)
platform target config section e42d6b1 1344452 change % change
stm32 light STM32WB5MM-DK FLASH 460992 460992 0 0.0
RAM 141488 141488 0 0.0

@AliTalebVelux AliTalebVelux changed the title Add new MoveTo Position python test case based on test plan [TC-CLCTRL-3.2] Add python test script based on test plan Apr 23, 2025
@AliTalebVelux AliTalebVelux added the App Clusters: Closures Window and Barrier (Door) Clusters label Apr 23, 2025
@AliTalebVelux AliTalebVelux requested a review from Copilot April 23, 2025 11:48
Copy link
Contributor
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@AliTalebVelux AliTalebVelux self-requested a review April 23, 2025 11:48
@AliTalebVelux AliTalebVelux changed the title [TC-CLCTRL-3.2] Add python test script based on test plan [TC-CLCTRL-4.1] Add python test script based on test plan Apr 23, 2025
@AliTalebVelux AliTalebVelux marked this pull request as ready for review April 24, 2025 07:46
@AliTalebVelux
Copy link
Contributor

This test script will be validated once the app is finished and added to the CI at the same time.

Copy link
github-actions bot commented Apr 24, 2025

PR #38427: Size comparison from f6c16f6 to 8903172

Full report (3 builds for cc32xx, stm32)
platform target config section f6c16f6 8903172 change % change
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 543890 543890 0 0.0
RAM 205160 205160 0 0.0
lock CC3235SF_LAUNCHXL FLASH 577870 577870 0 0.0
RAM 205408 205408 0 0.0
stm32 light STM32WB5MM-DK FLASH 464432 464432 0 0.0
RAM 141504 141504 0 0.0

def desc_TC_CLCTRL_4_1(self) -> str:
return "[TC_CLCTRL_4_1] MoveTo Command Position Functionality with DUT as Server"

def steps_TC_CLCTRL_4_1(self) -> list[TestStep]:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How are the pre-conditions validated?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TestStep("2c", "TH reads from the DUT the (0xFFFB) AttributeList attribute."),
TestStep("3a", "TH sends command MoveTo with Position = Signature."),
TestStep("3b", "If the attribute is supported on the cluster, TH reads from the DUT the OverallTaget attribute."),
TestStep("3c", "TH waits for PIXIT.CLCTRL.FullMotionDuration seconds."),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be more reliable to rely on the MovementCompleted event to determine that the mouvement is finished than requiring an estimate

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mkardous-silabs Your suggestion is to integrate the Event test steps instead of the PIXIT duration?

Comment on lines 197 to 199
else:
logging.info("OverallTarget attribute is not supported on the cluster, skipping this step.")
return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Attribute is mandatory; if it is missing we should fail.


if is_skipped == True:
logging.info("Test step skipped")
return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this translate to the rest of the test? If i am not mistaken this exits the test without completing?

Copy link
Contributor Author
@uebati-siegenia uebati-siegenia Apr 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mkardous-silabs What is the correct solution? The Testplan said it should be skip.

Copy link

PR #38427: Size comparison from 2708ed0 to ad7cd31

Full report (3 builds for cc32xx, stm32)
platform target config section 2708ed0 ad7cd31 change % change
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 544194 544194 0 0.0
RAM 205160 205160 0 0.0
lock CC3235SF_LAUNCHXL FLASH 578182 578182 0 0.0
RAM 205408 205408 0 0.0
stm32 light STM32WB5MM-DK FLASH 464440 464440 0 0.0
RAM 141504 141504 0 0.0

Copy link

PR #38427: Size comparison from 2708ed0 to 2affba9

Full report (3 builds for cc32xx, stm32)
platform target config section 2708ed0 2affba9 change % change
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 544194 544226 32 0.0
RAM 205160 205160 0 0.0
lock CC3235SF_LAUNCHXL FLASH 578182 578190 8 0.0
RAM 205408 205408 0 0.0
stm32 light STM32WB5MM-DK FLASH 464440 464456 16 0.0
RAM 141504 141504 0 0.0

@uebati-siegenia
Copy link
Contributor Author

This PR is added in the PR #39015.

@uebati-siegenia uebati-siegenia deleted the TC-CLCTRL-3.2 branch July 9, 2025 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0