project-chip / certification-tool

A test harness and tooling designed to simplify development, testing, and certification for devices, guided by the Connectivity Standards Alliance.
https://csa-iot.org/
Apache License 2.0
26 stars 13 forks source link

[TC-OO-3.2] How to run Simulated Test? #267

Open Yinxq opened 1 month ago

Yinxq commented 1 month ago

Describe the bug

I'm testing the switch app. In Simulated Test TC-OO-3.2, you need to commssion the DUT to TH, and then issue a command like on/off to pass the test. However, the parameters required for commissioning are not given in the step, and there is no bind operation for DUT and other device, so I don't know who to send the onoff command to.

May I ask if the Simulated Test is just a reference for us and we don't need to actually test it with TH?

Steps to reproduce the behavior

No response

Expected behavior

No response

Log files

No response

PICS file

No response

Screenshots

OO_3 2

Environment

TH Fall2023

Additional Information

No response

antonio-amjr commented 3 weeks ago

Hi @Yinxq,

It's possible to run the simulated tests, so I'll provide you here a step by step example for TC-OO-3.2 to clarify an execution in practice.

So, first thing is to start two ubuntu terminals in the Raspberry Pi:

  1. In the Terminal1 you may start a app of your choice, like the chip-all-clusters-app for example
  2. In the Terminal2 we will issue DUT commands using the chip-tool, available in the ~/apps/chip-tool

So, in the Terminal2 for the TC-OO-3.2, we'll execute the test case steps like before:

Let me know if this helps.