Android-nRF-Connect icon indicating copy to clipboard operation
Android-nRF-Connect copied to clipboard

Cannot use key-value pairs for TIMEOUT parameter

Open yoshiharu-oke opened this issue 1 year ago • 0 comments

Describe the bug Cannot use key-value pairs for TIMEOUT parameter.

To Reproduce Steps to reproduce the behavior:

  1. Make scan.xml(see below)
<?xml version="1.0" encoding="UTF-8"?>
<test-suite>
    <set name="TIMEOUT_MS" value="30000" />
    <test id="try_scan">
        <scan timeout="${TIMEOUT_MS}"/>
    </test>
    <run-test ref="try_scan" />
</test-suite>
  1. Run the test
% adb push scan.xml /sdcard/Android/data/no.nordicsemi.android.mcp/files/Test/
% adb -d shell am startservice -a no.nordicsemi.android.action.START_TEST -e no.nordicsemi.android.test.extra.EXTRA_FILE_PATH "/sdcard/Android/data/no.nordicsemi.android.mcp/files/Test/scan.xml"
  1. Show scan_result.txt
% adb shell cat /sdcard/Android/data/no.nordicsemi.android.mcp/files/Test/scan_result.txt
29-06-2023 20:06:33
Version: 4.26.1
Device: SC-42A, Android version: 11 (RP1A.200720.012.SC42AOMU1BVH1)

Parsing test suite...FAIL
For input string: "${TIMEOUT_MS}"%

Expected behavior Key-value pair can be used for TIMEOUT parameter

Versions (please complete the following information): Occurs on at least two models.

Version: 4.26.1 Device: FIG-LA1, Android version: 8.0.0 (FIG-LA1 8.0.0.139(C635))

Version: 4.26.1 Device: SC-42A, Android version: 11 (RP1A.200720.012.SC42AOMU1BVH1)

yoshiharu-oke avatar Jun 29 '23 11:06 yoshiharu-oke