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

Parameters not recognized in strings in automated testing

Open DimebagTom opened this issue 2 years ago • 1 comments

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

DimebagTom avatar Mar 30 '22 08:03 DimebagTom

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.

philips77 avatar Aug 11 '22 11:08 philips77