Skip to content

Latest commit

 

History

History
113 lines (77 loc) · 6.28 KB

lts-results-logs.md

File metadata and controls

113 lines (77 loc) · 6.28 KB

Understanding results and logs

This section describes how to view and interpret IDT result reports and logs.

Viewing results

While running, IDT writes errors to the console, log files, and test reports. After IDT completes the qualification test suite, it writes a test run summary to the console and generates two test reports. These reports can be found in devicetester-extract-location/results/execution-id/. Both reports capture the results from the qualification test suite execution.

The awsiotdevicetester_report.xml is the qualification test report that you submit to AWS to list your device in the AWS Partner Device Catalog. The report contains the following elements:

  • The IDT for FreeRTOS version.
  • The FreeRTOS version that was tested.
  • The features of FreeRTOS that are supported by the device based on the tests passed.
  • The SKU and the device name specified in the device.json file.
  • The features of the device specified in the device.json file.
  • The aggregate summary of test case results.
  • A breakdown of test case results by libraries that were tested based on the device features.

The FRQ_Report.xml is a report in standard JUnit XML format. You can integrate it into CI/CD platforms like Jenkins, Bamboo, and so on. The report contains the following elements:

  • An aggregate summary of test case results.
  • A breakdown of test case results by libraries that were tested based on the device features.

Interpreting IDT for FreeRTOS results

The report section in awsiotdevicetester_report.xml or FRQ_Report.xml lists the results of the tests that are executed.

The first XML tag <testsuites> contains the overall summary of the test execution. For example:

<testsuites name="FRQ results" time="5633" tests="184" failures="0" errors="0" disabled="0"> Attributes used in the <testsuites> tag

** name **
The name of the test suite.

** time **
The time, in seconds, it took to run the qualification suite.

** tests **
The number of test cases executed.

** failures **
The number of test cases that were run, but did not pass.

** errors **
The number of test cases that IDT for FreeRTOS couldn't execute.

** disabled **
This attribute is not used and can be ignored.

If there are no test case failures or errors, your device meets the technical requirements to run FreeRTOS and can interoperate with AWS IoT services. If you choose to list your device in the AWS Partner Device Catalog, you can use this report as qualification evidence.

In the event of test case failures or errors, you can identify the test case that failed by reviewing the <testsuites> XML tags. The <testsuite> XML tags inside the <testsuites> tag shows the test case result summary for a test group.

<testsuite name="FreeRTOSVersion" package="" tests="1" failures="0" time="2" disabled="0" errors="0" skipped="0">

The format is similar to the <testsuites> tag, but with an attribute called skipped that is not used and can be ignored. Inside each <testsuite> XML tag, there are <testcase> tags for each of the test cases that were executed for a test group. For example:

<testcase classname="FRQ FreeRTOSVersion" name="FreeRTOSVersion" attempts="1"></testcase> Attributes used in the <awsproduct> tag

** name **
The name of the product being tested.

** version **
The version of the product being tested.

** features **
The features validated. Features marked as required are required to submit your board for qualification. The following snippet shows how this appears in the awsiotdevicetester_report.xml file.

<feature name="core-freertos" value="not-supported" type="required"></feature>

Features marked as optional are not required for qualification. The following snippets show optional features.

<feature name="ota-dataplane-mqtt" value="not-supported" type="optional"></feature>
<feature name="ota-dataplane-http" value="not-supported" type="optional"></feature>

If there are no test failures or errors for the required features, your device meets the technical requirements to run FreeRTOS and can interoperate with AWS IoT services. If you want to list your device in the AWS Partner Device Catalog, you can use this report as qualification evidence.
In the event of test failures or errors, you can identify the test that failed by reviewing the <testsuites> XML tags. The <testsuite> XML tags inside the <testsuites> tag show the test result summary for a test group. For example:

<testsuite name="FreeRTOSVersion" package="" tests="1" failures="1" time="2" disabled="0" errors="0" skipped="0">

The format is similar to the <testsuites> tag, but has a skipped attribute that is not used and can be ignored. Inside each <testsuite> XML tag, there are <testcase> tags for each executed test for a test group. For example:

<testcase classname="FreeRTOSVersion" name="FreeRTOSVersion"></testcase>
```Attributes used in the `<testcase>` tag

** `name` **  
The name of the test case\.

** `attempts` **  
The number of times IDT for FreeRTOS executed the test case\.

When a test fails or an error occurs, `<failure>` or `<error>` tags are added to the `<testcase>` tag with information for troubleshooting\. For example:

Reason for the test case failure Reason for the test case execution error ```

For more information, see Troubleshooting.

Viewing logs

You can find logs that IDT for FreeRTOS generates from test execution in devicetester-extract-location/results/execution-id/logs. Two sets of logs are generated:

** test_manager.log **
Contains logs generated from IDT for FreeRTOS (for example, logs related configuration and report generation).

** test_group_id__test_case_id.log **
The log file for a test case, including output from the device under test. The log file is named according to the test group and test case that was run.