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

How to modify the default startup configuration parameters of the th-sdk container? #289

Open xiaojianjian92 opened 2 weeks ago

xiaojianjian92 commented 2 weeks ago

Describe the bug

When I start SDK Python Tests, TH set up SDK container by default configuration just like below. But my Raspberry Pi username is not ubuntu. It can not start with correct file path like test_harness_client.py. How and where I can change configuration of th-sdk container image

image

Steps to reproduce the behavior

No response

Expected behavior

No response

Log files

No response

PICS file

No response

Screenshots

No response

Environment

Version: 2.10+spring2024 Sha: 5f28838

Additional Information

No response

xiaojianjian92 commented 2 weeks ago

I modify the sdk_container.py file and then Sending command to SDK container: python3 /root/python_testing/scripts/sdk/test_harness_client.py commission --trace-to json:log --discriminator 3840 --passcode 20202021 --commissioning-method ble-wifi --paa-trust-store-path /var/paa-root-certs/ --storage-path admin_storage.json It show error: error: missing --wifi-ssid for --commissioning-method ble-wifi! image

But I had set up network param in project config. Pls help me find out there is something that I miss

Kshitijjain21 commented 1 week ago

The way that I am currently doing is to update the test parameter option in the project config. No sure if there is alternate method to do this.

 "test_parameters": {
      "wifi-ssid": "MY-SSID",
      "wifi-passphrase": "MY-PASSWORD",
    }