Coder Social home page Coder Social logo

Comments (7)

ccruzagralopes avatar ccruzagralopes commented on May 24, 2024

TH performs commissioning during the test suite setup before executing the test cases. These parameters should be set in the project config, under the "test_parameters" section. For example:

"test_parameters": {
   "int-arg": "use_pase_only:0",
   "qr-code": "<value>",
   "manual-code": "<value>"
}

As of right now these parameters are expected to have a underscore instead of a hyphen (int-arg, qr-code, manual-code), but soon that is going to be updated and the test_parameters will be expected to be set just like you use in the command line for the python tests.
So, for now, use it like this:

"test_parameters": {
   "int_arg": "use_pase_only:0",
   "qr_code": "<value>",
   "manual_code": "<value>"
}

However, the test cases from the TC_DeviceBasicComposition.py have a known issue that we're working on solving. These test cases don't expect the DUT to be commissioned when executed and TH is performing the commissioning before executing the test cases, which is causing the failure.
Regarding TC_DeviceConformance.py, I've tried running it the arguments you mentioned but it's failing for some reason, we'll have to investigate.
UI_Test_Run_2023_12_15_14_27_15.log

from certification-tool.

cecille avatar cecille commented on May 24, 2024

possibly silly question, but Device composition and conformance both use the data model XMLs from the SDK. Are those available in the TH?

from certification-tool.

ccruzagralopes avatar ccruzagralopes commented on May 24, 2024

possibly silly question, but Device composition and conformance both use the data model XMLs from the SDK. Are those available in the TH?

That's a great point, actually. I believe they're not, I'll check it out.

from certification-tool.

ccruzagralopes avatar ccruzagralopes commented on May 24, 2024

The data model XML files issue has been solved in the following PR:

from certification-tool.

ccruzagralopes avatar ccruzagralopes commented on May 24, 2024

This 2 python script has the below mention test cases, So instead of using these script directly adding the testcases in the UI can be better.

The following PR has updated the parser to show each individual test from a test script in the TH UI and allow them to be run separately:

from certification-tool.

Saravana-kr22 avatar Saravana-kr22 commented on May 24, 2024

@ccruzagralopes Adding the below parameters to the test_parameters make the commission to fail

"test_parameters": {
      "int-arg": "use_pase_only: 0",
      "manual_code": "34970112332"
    }

image

Reference log: TC-SM-1-1.log

from certification-tool.

ccruzagralopes avatar ccruzagralopes commented on May 24, 2024

Hey @Saravana-kr22, there shouldn't be a space between use_pase_only: and the value (0). Please try using:

"test_parameters": {
      "int-arg": "use_pase_only:0",
      "manual_code": "34970112332"
    }

from certification-tool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.