Skip to content
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

[CERT-TEST-FAILURE] [TC-SEAR-1.2] - Python Test Failure #35196

Closed
Ashwinigrl opened this issue Aug 26, 2024 · 1 comment · Fixed by #35221
Closed

[CERT-TEST-FAILURE] [TC-SEAR-1.2] - Python Test Failure #35196

Ashwinigrl opened this issue Aug 26, 2024 · 1 comment · Fixed by #35221
Assignees
Labels
bug Something isn't working cert blocker needs triage

Comments

@Ashwinigrl
Copy link

Feature Area

Other

Test Case

TC-SEAR-1.2

Reproduction steps

  1. Command used to launch the DUT : ./chip-rvc-app
  2. Command used to run the python script : python3 TC_SEAR_1_2.py --commissioning-method on-network --discriminator 3840 --passcode 20202021 --endpoint 1 --PICS /home/ubuntu/PICS --storage-path admin_storage.json --paa-trust-store-path ../../credentials/development/paa-root-certs/

While executing the TC-SEAR-1.2 Python script, the test is failing at Test Step 5 Read CurrentArea attribute with error Details=CurrentArea 10050 is invalid. SelectedAreas is []., Extras=None.

[MatterTest] 08-26 11:25:20.757 ERROR Exception occurred in test_TC_SEAR_1_2.
Traceback (most recent call last):
File "/home/ubuntu/cntr/connectedhomeip/no/lib/python3.10/site-packages/mobly/base_test.py", line 783, in exec_one_test
test_method()
File "/home/ubuntu/cntr/connectedhomeip/src/python_testing/matter_testing_support.py", line 1819, in async_runner
return _async_runner(body, self, *args, **kwargs)
File "/home/ubuntu/cntr/connectedhomeip/src/python_testing/matter_testing_support.py", line 1807, in _async_runner
return asyncio.run(runner_with_timeout)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/usr/lib/python3.10/asyncio/tasks.py", line 445, in wait_for
return fut.result()
File "/home/ubuntu/cntr/connectedhomeip/src/python_testing/TC_SEAR_1_2.py", line 229, in test_TC_SEAR_1_2
await self.read_and_validate_current_area(step=5)
File "/home/ubuntu/cntr/connectedhomeip/src/python_testing/TC_SEAR_1_2.py", line 143, in read_and_validate_current_area
asserts.assert_true((len(self.selareaid_list) == 0 and current_area is NullValue)
File "/home/ubuntu/cntr/connectedhomeip/no/lib/python3.10/site-packages/mobly/asserts.py", line 353, in assert_true
fail(msg, extras)
File "/home/ubuntu/cntr/connectedhomeip/no/lib/python3.10/site-packages/mobly/asserts.py", line 475, in fail
raise signals.TestFailure(msg, extras)
mobly.signals.TestFailure: Details=CurrentArea 10050 is invalid. SelectedAreas is []., Extras=None
[MatterTest] 08-26 11:25:20.766 INFO ***** Test Failure :
[MatterTest] 08-26 11:25:20.766 INFO Finished test in 96896.0ms
[MatterTest] 08-26 11:25:20.767 ERROR

  • Test test_TC_SEAR_1_2 failed for the following reason:
  • Details=CurrentArea 10050 is invalid. SelectedAreas is []., Extras=None
  • File "/home/ubuntu/cntr/connectedhomeip/no/lib/python3.10/site-packages/mobly/asserts.py", line 475, in fail
  • mobly.signals.TestFailure: Details=CurrentArea 10050 is invalid. SelectedAreas is []., Extras=None

[MatterTest] 08-26 11:25:20.767 INFO [Test] test_TC_SEAR_1_2 FAIL

Bug prevalence

Whenever I do

GitHub hash of the SDK that was being used

a296b66

Platform

raspi

Anything else?

Python Script References:

PICS File used:
ServiceAreaClusterTestPlan.zip

Reference Log:
TC-SEAR-1.2.txt

@hicklin
Copy link
Contributor

hicklin commented Aug 27, 2024

We need to fix the asserts.assert_true at line 143 to compare the current area against the supported areas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cert blocker needs triage
Projects
Archived in project
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants