Android-nRF-Connect
Android-nRF-Connect copied to clipboard
Parameters not recognized in strings in automated testing
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:
- Create a test routine
- Define a parameter using 'set'
- Reference the parameter with ${parameter} inside a longer string in the 'description' or the 'value-string' attribute of a characteristic
- Run the test
- 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
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.