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

Parameters not recognized in strings in automated testing #170

Open
DimebagTom opened this issue Mar 30, 2022 · 1 comment
Open

Parameters not recognized in strings in automated testing #170

DimebagTom opened this issue Mar 30, 2022 · 1 comment

Comments

@DimebagTom
Copy link

DimebagTom commented Mar 30, 2022

When running automated tests, the string parser does not seem to recognize parameters when passing them in longer string attributes, such as 'description' or 'value-string'.

Steps to reproduce the behavior:

  1. Create a test routine
  2. Define a parameter using 'set'
  3. Reference the parameter with ${parameter} inside a longer string in the 'description' or the 'value-string' attribute of a characteristic
  4. Run the test
  5. Check the test result .txt file. If the parameter was referenced within a 'description' attribute, it will still appear as ${parameter} in the string. If it was referenced within a 'value-string' attribute, then converting the hex value to text will show that the attribute was not replaced and it still appears as ${parameter}

Expected behavior
The string parser should be able to replace the referenced value of the parameter inside a string with the one mentioned by the 'set' command.

Versions:

  • Android version: 11
  • Phone model: Samsung Galaxy A41
  • App Version: 4.25.2
@philips77
Copy link
Member

Hi,
I just did a test and this seems to work fine. I added ${PARAM} to all my 'description' and 'value-string' and I'm getting the proper values.

Could you paste here the XML file you're using?

Also, sorry for very long delay. I was busy with other tasks and could just recently look into nRF Connect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants