Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use key-value pairs for TIMEOUT parameter #195

Open
yoshiharu-oke opened this issue Jun 29, 2023 · 0 comments
Open

Cannot use key-value pairs for TIMEOUT parameter #195

yoshiharu-oke opened this issue Jun 29, 2023 · 0 comments

Comments

@yoshiharu-oke
Copy link

yoshiharu-oke commented Jun 29, 2023

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 yoshiharu-oke changed the title Cannot use key-value pairs for TIMEOUT Cannot use key-value pairs for TIMEOUT parameter Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant