This statement is to write a string to a textInput component. But if the string get from function “GetVariableValue(Map.myTitle)” contains minus symbol “-“, the string filled in the textInput becomes to “0”. My coworker explained to me that this is because the string is treated as expression and the value “0” is the calculation result.
She gave me a workaround for this kind of problem: to add “quote” around the function as below.
To avoid the expression evaluation, there are 2 ways: 1. Use quote() to quote the string, which works for this special string. 2. Turn off the expression by calling Misc.Expressions(false), which works for the rest of your test script.